[PATCH v3 0/4] Add Renesas SoC identification driver support

Biju Das biju.das.jz at bp.renesas.com
Wed Nov 4 11:56:12 CET 2020


This patch series aims to support Renesas SoC identification driver.

Added a helper function of_match_node to find the matching of_match structure.
This helper function can be used to replace the following code in u-boot [1] and [2]

[1] https://elixir.bootlin.com/u-boot/latest/source/drivers/serial/serial_uniphier.c#L129
[2] https://elixir.bootlin.com/u-boot/latest/source/drivers/usb/phy/rockchip_usb2_phy.c#L77

Also added soc_id attribute support in UCLASS_SOC which is required for Renesas
SoC identification driver similar to mainline linux.

Biju Das (4):
  dm: core: Add of_match_node helper function
  soc: Fix comments from SOC to SoC
  dm: soc: Add SoC id for attribute matching
  dm: soc: SoC identification driver for Renesas SoC's

 drivers/core/device.c     |  21 ++++
 drivers/soc/Kconfig       |   7 ++
 drivers/soc/Makefile      |   1 +
 drivers/soc/soc-uclass.c  |  19 ++-
 drivers/soc/soc_renesas.c | 239 ++++++++++++++++++++++++++++++++++++++
 drivers/soc/soc_sandbox.c |   8 ++
 include/dm/device.h       |  13 +++
 include/soc.h             |  39 ++++++-
 test/dm/core.c            |  31 +++++
 test/dm/soc.c             |   8 ++
 10 files changed, 379 insertions(+), 7 deletions(-)
 create mode 100644 drivers/soc/soc_renesas.c

-- 
2.17.1



More information about the U-Boot mailing list