]> git.dujemihanovic.xyz Git - u-boot.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)
commit6426a26f4c314ad59d833456932312ce574e9b71
tree7a0249024b2f6e4aac57683a2a6477a2e8d68a74
parent41c1a693e5c2b6c74f9ef5824dbb1c3115b618c9
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]