[PATCH] pinctrl support

Sascha Hauer s.hauer at pengutronix.de
Tue Apr 23 03:55:25 EDT 2013


This adds some initial pinctrl support. I don't want to go the
way of adding full fledged pinctrl support, but still we will
need some instance which parses the devicetree for pinctrl
setup. The following does not parse the pinctrl devicetree
setup into internal data structures, but instead only calls
the pinmux driver with the devicetree node containing the
setup for a device. Turning this into register values is
completely up the pinmux driver then. The device core
will automatically call the pinctrl default setup before
probing a device so that we normally do not have to add
pinctrl code to device drivers.

Sascha

----------------------------------------------------------------
Sascha Hauer (4):
      Add initial pinctrl support
      pinctrl: switch i.MX iomux-v3 support to pinctrl
      pinctrl: move imx-iomux-v2 to drivers/pinctrl/
      pinctrl: move imx-iomux-v1 to drivers/pinctrl/

 arch/arm/mach-imx/Kconfig                          |   9 +
 arch/arm/mach-imx/Makefile                         |  18 +-
 arch/arm/mach-imx/iomux-v3.c                       | 107 -----------
 drivers/Kconfig                                    |   1 +
 drivers/Makefile                                   |   1 +
 drivers/base/driver.c                              |   3 +
 drivers/pinctrl/Kconfig                            |  28 +++
 drivers/pinctrl/Makefile                           |   4 +
 .../iomux-v1.c => drivers/pinctrl/imx-iomux-v1.c   |   0
 .../iomux-v2.c => drivers/pinctrl/imx-iomux-v2.c   |   0
 drivers/pinctrl/imx-iomux-v3.c                     | 212 +++++++++++++++++++++
 drivers/pinctrl/pinctrl.c                          | 149 +++++++++++++++
 include/pinctrl.h                                  |  35 ++++
 13 files changed, 451 insertions(+), 116 deletions(-)
 delete mode 100644 arch/arm/mach-imx/iomux-v3.c
 create mode 100644 drivers/pinctrl/Kconfig
 create mode 100644 drivers/pinctrl/Makefile
 rename arch/arm/mach-imx/iomux-v1.c => drivers/pinctrl/imx-iomux-v1.c (100%)
 rename arch/arm/mach-imx/iomux-v2.c => drivers/pinctrl/imx-iomux-v2.c (100%)
 create mode 100644 drivers/pinctrl/imx-iomux-v3.c
 create mode 100644 drivers/pinctrl/pinctrl.c
 create mode 100644 include/pinctrl.h



More information about the barebox mailing list