From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dave Gerlach Date: Wed, 8 Jul 2020 16:28:32 -0500 Subject: [PATCH 1/8] dm: soc: Introduce UCLASS_SOC for SOC ID and attribute matching In-Reply-To: <20200630124315.GE1306@bill-the-cat> References: <20200630043853.13276-1-d-gerlach@ti.com> <20200630043853.13276-2-d-gerlach@ti.com> <20200630124315.GE1306@bill-the-cat> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 >> --- >> 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