]> git.baikalelectronics.ru Git - uboot.git/commit
dm: soc: Introduce UCLASS_SOC for SOC ID and attribute matching
authorDave Gerlach <d-gerlach@ti.com>
Thu, 16 Jul 2020 04:39:57 +0000 (23:39 -0500)
committerSimon Glass <sjg@chromium.org>
Mon, 20 Jul 2020 17:37:47 +0000 (11:37 -0600)
commitf4d0112b3754f01b951850e941f87b0eeaa3c310
tree7a0249024b2f6e4aac57683a2a6477a2e8d68a74
parentb2ac7966ff60fcf13a9f9bdde952d65bab7a9b01
dm: soc: Introduce UCLASS_SOC for SOC ID and attribute matching

Introduce UCLASS_SOC to be used for SOC identification and attribute
matching based on the SoC ID info. This allows drivers to be provided
for SoCs to retrieve SoC identifying information and also for matching
device attributes for selecting SoC specific data.

This is useful for other device drivers that may need different
parameters or quirks enabled depending on the specific device variant in
use.

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
drivers/soc/Kconfig
drivers/soc/Makefile
drivers/soc/soc-uclass.c [new file with mode: 0644]
include/dm/uclass-id.h
include/soc.h [new file with mode: 0644]