]> 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>
Sat, 25 Jul 2020 20:46:57 +0000 (14:46 -0600)
commit6d3b82df832908675fe4cf4c829779f3abc34999
tree2c8be8def4d315905b9a1ac3b11881f081a85ed4
parent726eb121b8ba8a4bc6c58072e551ec93c09165ec
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]