Skip to content

Commit

Permalink
pinctrl: armada-37xx: Add pin controller support for Armada 37xx
Browse files Browse the repository at this point in the history
The Armada 37xx SoC come with 2 pin controllers: one on the south
bridge (managing 28 pins) and one on the north bridge (managing 36 pins).

At the hardware level the controller configure the pins by group and not
pin by pin. This constraint is reflected in the design of the driver:
only the group related functions are implemented.

Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
  • Loading branch information
Gregory CLEMENT authored and Linus Walleij committed Apr 24, 2017
1 parent f13980e commit 87466cc
Show file tree
Hide file tree
Showing 4 changed files with 658 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/pinctrl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ obj-y += bcm/
obj-$(CONFIG_PINCTRL_BERLIN) += berlin/
obj-y += freescale/
obj-$(CONFIG_X86) += intel/
obj-$(CONFIG_PINCTRL_MVEBU) += mvebu/
obj-y += mvebu/
obj-y += nomadik/
obj-$(CONFIG_PINCTRL_PXA) += pxa/
obj-$(CONFIG_ARCH_QCOM) += qcom/
Expand Down
7 changes: 7 additions & 0 deletions drivers/pinctrl/mvebu/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,10 @@ config PINCTRL_ORION
select PINCTRL_MVEBU

endif

config PINCTRL_ARMADA_37XX
bool
select GENERIC_PINCONF
select MFD_SYSCON
select PINCONF
select PINMUX
3 changes: 2 additions & 1 deletion drivers/pinctrl/mvebu/Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
obj-y += pinctrl-mvebu.o
obj-$(CONFIG_PINCTRL_MVEBU) += pinctrl-mvebu.o
obj-$(CONFIG_PINCTRL_DOVE) += pinctrl-dove.o
obj-$(CONFIG_PINCTRL_KIRKWOOD) += pinctrl-kirkwood.o
obj-$(CONFIG_PINCTRL_ARMADA_370) += pinctrl-armada-370.o
obj-$(CONFIG_PINCTRL_ARMADA_375) += pinctrl-armada-375.o
obj-$(CONFIG_PINCTRL_ARMADA_38X) += pinctrl-armada-38x.o
obj-$(CONFIG_PINCTRL_ARMADA_39X) += pinctrl-armada-39x.o
obj-$(CONFIG_PINCTRL_ARMADA_XP) += pinctrl-armada-xp.o
obj-$(CONFIG_PINCTRL_ARMADA_37XX) += pinctrl-armada-37xx.o
obj-$(CONFIG_PINCTRL_ORION) += pinctrl-orion.o
Loading

0 comments on commit 87466cc

Please sign in to comment.