Commit 858f559f authored by Maxime Ripard's avatar Maxime Ripard Committed by Linus Walleij

pinctrl: sunxi: Add common sun5i pinctrl driver

The sun5i SoCs (A10s, A13, GR8) are all based on the same die fit in
different packages. Hence, the pins and functions available are just the
based on the same set, each SoC having a different subset.

Introduce a common pinctrl driver that supports multiple variants to allow
to put as much as we can in common.
Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 578db85f
...@@ -9,6 +9,9 @@ config PINCTRL_SUN4I_A10 ...@@ -9,6 +9,9 @@ config PINCTRL_SUN4I_A10
def_bool MACH_SUN4I def_bool MACH_SUN4I
select PINCTRL_SUNXI select PINCTRL_SUNXI
config PINCTRL_SUN5I
select PINCTRL_SUNXI
config PINCTRL_SUN5I_A10S config PINCTRL_SUN5I_A10S
def_bool MACH_SUN5I def_bool MACH_SUN5I
select PINCTRL_SUNXI select PINCTRL_SUNXI
......
...@@ -3,6 +3,7 @@ obj-y += pinctrl-sunxi.o ...@@ -3,6 +3,7 @@ obj-y += pinctrl-sunxi.o
# SoC Drivers # SoC Drivers
obj-$(CONFIG_PINCTRL_SUN4I_A10) += pinctrl-sun4i-a10.o obj-$(CONFIG_PINCTRL_SUN4I_A10) += pinctrl-sun4i-a10.o
obj-$(CONFIG_PINCTRL_SUN5I) += pinctrl-sun5i.o
obj-$(CONFIG_PINCTRL_SUN5I_A10S) += pinctrl-sun5i-a10s.o obj-$(CONFIG_PINCTRL_SUN5I_A10S) += pinctrl-sun5i-a10s.o
obj-$(CONFIG_PINCTRL_SUN5I_A13) += pinctrl-sun5i-a13.o obj-$(CONFIG_PINCTRL_SUN5I_A13) += pinctrl-sun5i-a13.o
obj-$(CONFIG_PINCTRL_GR8) += pinctrl-gr8.o obj-$(CONFIG_PINCTRL_GR8) += pinctrl-gr8.o
......
This diff is collapsed.
...@@ -82,6 +82,10 @@ ...@@ -82,6 +82,10 @@
#define SUN4I_FUNC_INPUT 0 #define SUN4I_FUNC_INPUT 0
#define SUN4I_FUNC_IRQ 6 #define SUN4I_FUNC_IRQ 6
#define PINCTRL_SUN5I_A10S BIT(1)
#define PINCTRL_SUN5I_A13 BIT(2)
#define PINCTRL_SUN5I_GR8 BIT(3)
struct sunxi_desc_function { struct sunxi_desc_function {
unsigned long variant; unsigned long variant;
const char *name; const char *name;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment