]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
pinctrl: sunxi: Add SoC ID definitions for A10, A20 and R40 SoCs
authorIcenowy Zheng <icenowy@aosc.io>
Sat, 27 May 2017 10:23:00 +0000 (18:23 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 29 May 2017 16:31:56 +0000 (18:31 +0200)
Allwinner A10, A20 and R40 SoCs have similar GPIO layout.

Add SoC definitions in pinctrl-sunxi.h, in order to merge A20 support
into A10 driver, and add R40 support into it.

Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/sunxi/pinctrl-sunxi.h

index a9d315a1256cdfcc25f0a93bd5c1879492a7d577..1bfc0d8a55df47b3e243d3a977a3cb47bf9bcbf7 100644 (file)
@@ -87,6 +87,9 @@
 #define PINCTRL_SUN5I_GR8      BIT(3)
 #define PINCTRL_SUN6I_A31      BIT(4)
 #define PINCTRL_SUN6I_A31S     BIT(5)
+#define PINCTRL_SUN4I_A10      BIT(6)
+#define PINCTRL_SUN7I_A20      BIT(7)
+#define PINCTRL_SUN8I_R40      BIT(8)
 
 struct sunxi_desc_function {
        unsigned long   variant;