[PATCH 1/8] dm: soc: Introduce UCLASS_SOC for SOC ID and attribute matching

Tom Rini trini at konsulko.com
Tue Jun 30 14:43:15 CEST 2020


On Mon, Jun 29, 2020 at 11:38:46PM -0500, Dave Gerlach wrote:

> 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.
> 
> Signed-off-by: Dave Gerlach <d-gerlach at ti.com>
> ---
>  drivers/soc/Kconfig      |   9 +++
>  drivers/soc/Makefile     |   1 +
>  drivers/soc/soc-uclass.c | 102 ++++++++++++++++++++++++++++++
>  include/dm/uclass-id.h   |   1 +
>  include/soc.h            | 132 +++++++++++++++++++++++++++++++++++++++
>  5 files changed, 245 insertions(+)
>  create mode 100644 drivers/soc/soc-uclass.c
>  create mode 100644 include/soc.h

Can we please get a write-up in doc/driver-model/ as well for this?
Thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200630/d03f452e/attachment.sig>


More information about the U-Boot mailing list