提交 858f559f 编写于 作者: M Maxime Ripard 提交者: 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: NMaxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
上级 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
......
此差异已折叠。
...@@ -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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册