[U-Boot] [PATCH v1 0/4] drivers: Add a framework for MUX drivers

Jean-Jacques Hiblot jjhiblot at ti.com
Wed Oct 2 12:47:45 UTC 2019


Add a new minimalistic subsystem that handles multiplexer controllers.
It provides the same API as Linux and mux drivers should be portable with
a minimum effort.
This series also includes a port of the Linux's mmio-mux driver.

This series relies on 2 other series [1] and [2] posted earlier.

[1] : https://patchwork.ozlabs.org/project/uboot/list/?series=132923
[2] : https://patchwork.ozlabs.org/project/uboot/list/?series=133713


Jean-Jacques Hiblot (4):
  drivers: Add a new framework for multiplexer devices
  dm: board: complete the initialization of the muxes in initr_dm()
  drivers: mux: mmio-based syscon mux controller
  test: Add tests for the multiplexer framework

 arch/sandbox/dts/test.dts     |  26 +++
 common/board_r.c              |   2 +
 configs/sandbox_defconfig     |   2 +
 drivers/Kconfig               |   2 +
 drivers/Makefile              |   1 +
 drivers/mux/Kconfig           |  22 +++
 drivers/mux/Makefile          |   7 +
 drivers/mux/mmio.c            | 155 ++++++++++++++++++
 drivers/mux/mux-uclass.c      | 296 ++++++++++++++++++++++++++++++++++
 include/dm/uclass-id.h        |   1 +
 include/dt-bindings/mux/mux.h |  17 ++
 include/mux-internal.h        |  80 +++++++++
 include/mux.h                 | 114 +++++++++++++
 test/dm/Makefile              |   1 +
 test/dm/mux-mmio.c            | 143 ++++++++++++++++
 15 files changed, 869 insertions(+)
 create mode 100644 drivers/mux/Kconfig
 create mode 100644 drivers/mux/Makefile
 create mode 100644 drivers/mux/mmio.c
 create mode 100644 drivers/mux/mux-uclass.c
 create mode 100644 include/dt-bindings/mux/mux.h
 create mode 100644 include/mux-internal.h
 create mode 100644 include/mux.h
 create mode 100644 test/dm/mux-mmio.c

-- 
2.17.1



More information about the U-Boot mailing list