blob: f7aae200ee158ffe2334255c9448aefc75ae4818 [file] [log] [blame]
David Brazdil0f672f62019-12-10 10:32:29 +00001# SPDX-License-Identifier: GPL-2.0-only
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00002if ARCH_SUNXI
3
4config PINCTRL_SUNXI
5 bool
6 select PINMUX
7 select GENERIC_PINCONF
8 select GPIOLIB
9
David Brazdil0f672f62019-12-10 10:32:29 +000010config PINCTRL_SUNIV_F1C100S
11 def_bool MACH_SUNIV
12 select PINCTRL_SUNXI
13
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000014config PINCTRL_SUN4I_A10
David Brazdil0f672f62019-12-10 10:32:29 +000015 bool "Support for the Allwinner A10, A20 and R40 PIO"
16 default MACH_SUN4I || MACH_SUN7I || MACH_SUN8I
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000017 select PINCTRL_SUNXI
18
19config PINCTRL_SUN5I
David Brazdil0f672f62019-12-10 10:32:29 +000020 bool "Support for the Allwinner A10s, A13, R8 and NextThing GR8 PIO"
21 default MACH_SUN5I
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000022 select PINCTRL_SUNXI
23
24config PINCTRL_SUN6I_A31
David Brazdil0f672f62019-12-10 10:32:29 +000025 bool "Support for the Allwinner A31 PIO"
26 default MACH_SUN6I
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000027 select PINCTRL_SUNXI
28
29config PINCTRL_SUN6I_A31_R
David Brazdil0f672f62019-12-10 10:32:29 +000030 bool "Support for the Allwinner A31 R-PIO"
31 default MACH_SUN6I
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000032 depends on RESET_CONTROLLER
33 select PINCTRL_SUNXI
34
35config PINCTRL_SUN8I_A23
David Brazdil0f672f62019-12-10 10:32:29 +000036 bool "Support for the Allwinner A23 PIO"
37 default MACH_SUN8I
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000038 select PINCTRL_SUNXI
39
40config PINCTRL_SUN8I_A33
David Brazdil0f672f62019-12-10 10:32:29 +000041 bool "Support for the Allwinner A33 PIO"
42 default MACH_SUN8I
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000043 select PINCTRL_SUNXI
44
45config PINCTRL_SUN8I_A83T
David Brazdil0f672f62019-12-10 10:32:29 +000046 bool "Support for the Allwinner A83T PIO"
47 default MACH_SUN8I
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000048 select PINCTRL_SUNXI
49
50config PINCTRL_SUN8I_A83T_R
David Brazdil0f672f62019-12-10 10:32:29 +000051 bool "Support for the Allwinner A83T R-PIO"
52 default MACH_SUN8I
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000053 select PINCTRL_SUNXI
54
55config PINCTRL_SUN8I_A23_R
David Brazdil0f672f62019-12-10 10:32:29 +000056 bool "Support for the Allwinner A23 and A33 R-PIO"
57 default MACH_SUN8I
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000058 depends on RESET_CONTROLLER
59 select PINCTRL_SUNXI
60
61config PINCTRL_SUN8I_H3
David Brazdil0f672f62019-12-10 10:32:29 +000062 bool "Support for the Allwinner H3 PIO"
63 default MACH_SUN8I
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000064 select PINCTRL_SUNXI
65
66config PINCTRL_SUN8I_H3_R
David Brazdil0f672f62019-12-10 10:32:29 +000067 bool "Support for the Allwinner H3 and H5 R-PIO"
68 default MACH_SUN8I || (ARM64 && ARCH_SUNXI)
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000069 select PINCTRL_SUNXI
70
71config PINCTRL_SUN8I_V3S
David Brazdil0f672f62019-12-10 10:32:29 +000072 bool "Support for the Allwinner V3s PIO"
73 default MACH_SUN8I
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000074 select PINCTRL_SUNXI
75
76config PINCTRL_SUN9I_A80
David Brazdil0f672f62019-12-10 10:32:29 +000077 bool "Support for the Allwinner A80 PIO"
78 default MACH_SUN9I
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000079 select PINCTRL_SUNXI
80
81config PINCTRL_SUN9I_A80_R
David Brazdil0f672f62019-12-10 10:32:29 +000082 bool "Support for the Allwinner A80 R-PIO"
83 default MACH_SUN9I
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000084 depends on RESET_CONTROLLER
85 select PINCTRL_SUNXI
86
87config PINCTRL_SUN50I_A64
David Brazdil0f672f62019-12-10 10:32:29 +000088 bool "Support for the Allwinner A64 PIO"
89 default ARM64 && ARCH_SUNXI
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000090 select PINCTRL_SUNXI
91
92config PINCTRL_SUN50I_A64_R
David Brazdil0f672f62019-12-10 10:32:29 +000093 bool "Support for the Allwinner A64 R-PIO"
94 default ARM64 && ARCH_SUNXI
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000095 select PINCTRL_SUNXI
96
97config PINCTRL_SUN50I_H5
David Brazdil0f672f62019-12-10 10:32:29 +000098 bool "Support for the Allwinner H5 PIO"
99 default ARM64 && ARCH_SUNXI
Andrew Scullb4b6d4a2019-01-02 15:54:55 +0000100 select PINCTRL_SUNXI
101
102config PINCTRL_SUN50I_H6
David Brazdil0f672f62019-12-10 10:32:29 +0000103 bool "Support for the Allwinner H6 PIO"
104 default ARM64 && ARCH_SUNXI
Andrew Scullb4b6d4a2019-01-02 15:54:55 +0000105 select PINCTRL_SUNXI
106
107config PINCTRL_SUN50I_H6_R
David Brazdil0f672f62019-12-10 10:32:29 +0000108 bool "Support for the Allwinner H6 R-PIO"
109 default ARM64 && ARCH_SUNXI
Andrew Scullb4b6d4a2019-01-02 15:54:55 +0000110 select PINCTRL_SUNXI
111
112endif