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

Dave Gerlach d-gerlach at ti.com
Wed Jul 8 23:28:32 CEST 2020


Tom,
On 6/30/20 7:43 AM, Tom Rini wrote:
> 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!
> 

Yes, will add for v2, thanks for the suggestion.

Regards,
Dave


More information about the U-Boot mailing list