[PATCH v2 0/9] Introduce UCLASS_SOC
Dave Gerlach
d-gerlach at ti.com
Thu Jul 16 06:39:55 CEST 2020
Hi,
This is v2 of the series to introduce UCLASS_SOC to be used for SOC
identification and attribute matching based on SoC ID info. The first
version of this series can be found at [1].
Biggest change is the addition of a patch to add documentation for the
SOC ID framework as requested by several folks. Otherwise, several
comments were addressed in the patch to introduce the UCLASS_SOC
implementation:
* Renamed soc_device_attribute to soc_attr.
* Added inline docs for same struct.
* Moved ifdef for CONFIG_SOC_DEVICE to only include functions
* Documented NULL return possiblity for soc_device_match.
And a change to SOC Revision macro naming in the soc_ti_k3 driver
to use SR consistently instead of PG.
Regards,
Dave
[1] https://lists.denx.de/pipermail/u-boot/2020-June/418109.html
Dave Gerlach (9):
doc: Add new doc for soc ID driver model
dm: soc: Introduce UCLASS_SOC for SOC ID and attribute matching
test: Add tests for SOC uclass
dm: soc: Introduce soc_ti_k3 driver for TI K3 SoCs
arm: dts: k3-am65-wakeup: Introduce chipid node
arm: dts: k3-j721e-mcu-wakeup: Introduce chipid node
configs: am65x_evm: Enable CONFIG_SOC_DEVICE and
CONFIG_SOC_DEVICE_TI_K3
configs: j721e_evm: Enable CONFIG_SOC_DEVICE and
CONFIG_SOC_DEVICE_TI_K3
arm: mach-k3: Use SOC driver for device identification
arch/arm/dts/k3-am65-wakeup.dtsi | 5 +
arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 4 +
.../k3-j721e-common-proc-board-u-boot.dtsi | 4 +
arch/arm/dts/k3-j721e-mcu-wakeup.dtsi | 5 +
arch/arm/mach-k3/common.c | 48 +++---
arch/arm/mach-k3/common.h | 6 -
arch/arm/mach-k3/include/mach/hardware.h | 1 -
arch/sandbox/dts/test.dts | 4 +
configs/am65x_evm_a53_defconfig | 2 +
configs/am65x_evm_r5_defconfig | 2 +
configs/am65x_hs_evm_a53_defconfig | 2 +
configs/am65x_hs_evm_r5_defconfig | 2 +
configs/j721e_evm_a72_defconfig | 2 +
configs/j721e_evm_r5_defconfig | 2 +
configs/j721e_hs_evm_a72_defconfig | 2 +
configs/j721e_hs_evm_r5_defconfig | 2 +
configs/sandbox64_defconfig | 1 +
configs/sandbox_defconfig | 1 +
configs/sandbox_flattree_defconfig | 1 +
configs/sandbox_spl_defconfig | 1 +
doc/driver-model/index.rst | 1 +
doc/driver-model/soc-framework.rst | 68 ++++++++
drivers/soc/Kconfig | 16 ++
drivers/soc/Makefile | 3 +
drivers/soc/soc-uclass.c | 102 ++++++++++++
drivers/soc/soc_sandbox.c | 56 +++++++
drivers/soc/soc_ti_k3.c | 124 +++++++++++++++
include/dm/uclass-id.h | 1 +
include/soc.h | 145 ++++++++++++++++++
test/dm/Makefile | 1 +
test/dm/soc.c | 120 +++++++++++++++
31 files changed, 698 insertions(+), 36 deletions(-)
create mode 100644 doc/driver-model/soc-framework.rst
create mode 100644 drivers/soc/soc-uclass.c
create mode 100644 drivers/soc/soc_sandbox.c
create mode 100644 drivers/soc/soc_ti_k3.c
create mode 100644 include/soc.h
create mode 100644 test/dm/soc.c
--
2.20.1
More information about the U-Boot
mailing list