[U-Boot] [PATCH 0/4] Add Linux-compatible syscon_to_regmap API

Masahiro Yamada yamada.masahiro at socionext.com
Wed Apr 18 02:38:41 UTC 2018


The current syscon in U-Boot works differently from Linux.
Therefore, DT files imported from Linux do not work for U-Boot.

The current usage of syscon in U-Boot should be discouraged because
using different DT-binding across projects is a significant problem.



Masahiro Yamada (4):
  regmap: clean up regmap allocation
  dm: ofnode: add ofnode_device_is_compatible() helper
  regmap: change regmap_init_mem() to take ofnode instead udevice
  syscon: add Linux-compatible syscon API

 arch/arm/mach-aspeed/ast2500/sdram_ast2500.c |  2 +-
 drivers/core/device.c                        |  8 +---
 drivers/core/ofnode.c                        | 11 +++++
 drivers/core/regmap.c                        | 42 ++++++------------
 drivers/core/syscon-uclass.c                 | 65 +++++++++++++++++++++++++++-
 drivers/phy/meson-gxl-usb2.c                 |  2 +-
 drivers/phy/meson-gxl-usb3.c                 |  2 +-
 drivers/ram/rockchip/dmc-rk3368.c            |  2 +-
 drivers/ram/rockchip/sdram_rk3188.c          |  2 +-
 drivers/ram/rockchip/sdram_rk322x.c          |  2 +-
 drivers/ram/rockchip/sdram_rk3288.c          |  2 +-
 drivers/ram/rockchip/sdram_rk3399.c          |  2 +-
 drivers/ram/stm32mp1/stm32mp1_ram.c          |  2 +-
 drivers/reset/reset-meson.c                  |  2 +-
 include/dm/ofnode.h                          | 11 +++++
 include/regmap.h                             | 11 ++---
 include/syscon.h                             |  8 ++++
 17 files changed, 123 insertions(+), 53 deletions(-)

-- 
2.7.4



More information about the U-Boot mailing list