Skip to content

Commit

Permalink
OF: pinctrl: MIPS: lantiq: adds support for FALCON SoC
Browse files Browse the repository at this point in the history
Implement support for pinctrl on lantiq/falcon socs. The FALCON has 5 banks
of up to 32 pins.

Signed-off-by: John Crispin <blogic@openwrt.org>
Signed-off-by: Thomas Langer <thomas.langer@lantiq.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Cc: devicetree-discuss@lists.ozlabs.org
Cc: linux-kernel@vger.kernel.org
  • Loading branch information
John Crispin committed Sep 13, 2012
1 parent 3f8c50c commit e316cb2
Show file tree
Hide file tree
Showing 5 changed files with 479 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/mips/include/asm/mach-lantiq/falcon/lantiq_soc.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ extern __iomem void *ltq_sys1_membase;
#define ltq_sys1_w32_mask(clear, set, reg) \
ltq_sys1_w32((ltq_sys1_r32(reg) & ~(clear)) | (set), reg)

/* allow the gpio and pinctrl drivers to talk to eachother */
extern int pinctrl_falcon_get_range_size(int id);
extern void pinctrl_falcon_add_gpio_range(struct pinctrl_gpio_range *range);

/*
* to keep the irq code generic we need to define this to 0 as falcon
* has no EIU/EBU
Expand Down
1 change: 1 addition & 0 deletions arch/mips/lantiq/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ config SOC_XWAY

config SOC_FALCON
bool "FALCON"
select PINCTRL_FALCON

endchoice

Expand Down
5 changes: 5 additions & 0 deletions drivers/pinctrl/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ config PINCTRL_PXA3xx
bool
select PINMUX

config PINCTRL_FALCON
bool
depends on SOC_FALCON
depends on PINCTRL_LANTIQ

config PINCTRL_MMP2
bool "MMP2 pin controller driver"
depends on ARCH_MMP
Expand Down
1 change: 1 addition & 0 deletions drivers/pinctrl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ obj-$(CONFIG_PINCTRL_IMX51) += pinctrl-imx51.o
obj-$(CONFIG_PINCTRL_IMX53) += pinctrl-imx53.o
obj-$(CONFIG_PINCTRL_IMX6Q) += pinctrl-imx6q.o
obj-$(CONFIG_PINCTRL_PXA3xx) += pinctrl-pxa3xx.o
obj-$(CONFIG_PINCTRL_FALCON) += pinctrl-falcon.o
obj-$(CONFIG_PINCTRL_MMP2) += pinctrl-mmp2.o
obj-$(CONFIG_PINCTRL_MXS) += pinctrl-mxs.o
obj-$(CONFIG_PINCTRL_IMX23) += pinctrl-imx23.o
Expand Down
Loading

0 comments on commit e316cb2

Please sign in to comment.