treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / drivers / pinctrl / sh-pfc / Kconfig
blobcf0e0dc42b84c06f972fb6b32206358a9c73db1f
1 # SPDX-License-Identifier: GPL-2.0
3 # Renesas SH and SH Mobile PINCTRL drivers
6 config PINCTRL_SH_PFC
7         bool "Renesas SoC pin control support" if COMPILE_TEST && !(ARCH_RENESAS || SUPERH)
8         default y if ARCH_RENESAS || SUPERH
9         select PINMUX
10         select PINCONF
11         select GENERIC_PINCONF
12         select PINCTRL_PFC_EMEV2 if ARCH_EMEV2
13         select PINCTRL_PFC_R8A73A4 if ARCH_R8A73A4
14         select PINCTRL_PFC_R8A7740 if ARCH_R8A7740
15         select PINCTRL_PFC_R8A7743 if ARCH_R8A7743
16         select PINCTRL_PFC_R8A7744 if ARCH_R8A7744
17         select PINCTRL_PFC_R8A7745 if ARCH_R8A7745
18         select PINCTRL_PFC_R8A77470 if ARCH_R8A77470
19         select PINCTRL_PFC_R8A774A1 if ARCH_R8A774A1
20         select PINCTRL_PFC_R8A774B1 if ARCH_R8A774B1
21         select PINCTRL_PFC_R8A774C0 if ARCH_R8A774C0
22         select PINCTRL_PFC_R8A7778 if ARCH_R8A7778
23         select PINCTRL_PFC_R8A7779 if ARCH_R8A7779
24         select PINCTRL_PFC_R8A7790 if ARCH_R8A7790
25         select PINCTRL_PFC_R8A7791 if ARCH_R8A7791
26         select PINCTRL_PFC_R8A7792 if ARCH_R8A7792
27         select PINCTRL_PFC_R8A7793 if ARCH_R8A7793
28         select PINCTRL_PFC_R8A7794 if ARCH_R8A7794
29         select PINCTRL_PFC_R8A77950 if ARCH_R8A77950 || ARCH_R8A7795
30         select PINCTRL_PFC_R8A77951 if ARCH_R8A77951 || ARCH_R8A7795
31         select PINCTRL_PFC_R8A77960 if ARCH_R8A77960
32         select PINCTRL_PFC_R8A77961 if ARCH_R8A77961
33         select PINCTRL_PFC_R8A77965 if ARCH_R8A77965
34         select PINCTRL_PFC_R8A77970 if ARCH_R8A77970
35         select PINCTRL_PFC_R8A77980 if ARCH_R8A77980
36         select PINCTRL_PFC_R8A77990 if ARCH_R8A77990
37         select PINCTRL_PFC_R8A77995 if ARCH_R8A77995
38         select PINCTRL_PFC_SH7203 if CPU_SUBTYPE_SH7203
39         select PINCTRL_PFC_SH7264 if CPU_SUBTYPE_SH7264
40         select PINCTRL_PFC_SH7269 if CPU_SUBTYPE_SH7269
41         select PINCTRL_PFC_SH73A0 if ARCH_SH73A0
42         select PINCTRL_PFC_SH7720 if CPU_SUBTYPE_SH7720
43         select PINCTRL_PFC_SH7722 if CPU_SUBTYPE_SH7722
44         select PINCTRL_PFC_SH7723 if CPU_SUBTYPE_SH7723
45         select PINCTRL_PFC_SH7724 if CPU_SUBTYPE_SH7724
46         select PINCTRL_PFC_SH7734 if CPU_SUBTYPE_SH7734
47         select PINCTRL_PFC_SH7757 if CPU_SUBTYPE_SH7757
48         select PINCTRL_PFC_SH7785 if CPU_SUBTYPE_SH7785
49         select PINCTRL_PFC_SH7786 if CPU_SUBTYPE_SH7786
50         select PINCTRL_PFC_SHX3 if CPU_SUBTYPE_SHX3
51         help
52           This enables pin control drivers for Renesas SuperH and ARM platforms
54 config PINCTRL_SH_PFC_GPIO
55         select GPIOLIB
56         bool
57         help
58           This enables pin control and GPIO drivers for SH/SH Mobile platforms
60 config PINCTRL_SH_FUNC_GPIO
61         select PINCTRL_SH_PFC_GPIO
62         bool
63         help
64           This enables legacy function GPIOs for SH platforms
66 config PINCTRL_PFC_EMEV2
67         bool "Emma Mobile AV2 pin control support" if COMPILE_TEST
69 config PINCTRL_PFC_R8A73A4
70         bool "R-Mobile APE6 pin control support" if COMPILE_TEST
71         select PINCTRL_SH_PFC_GPIO
73 config PINCTRL_PFC_R8A7740
74         bool "R-Mobile A1 pin control support" if COMPILE_TEST
75         select PINCTRL_SH_PFC_GPIO
77 config PINCTRL_PFC_R8A7743
78         bool "RZ/G1M pin control support" if COMPILE_TEST
80 config PINCTRL_PFC_R8A7744
81         bool "RZ/G1N pin control support" if COMPILE_TEST
83 config PINCTRL_PFC_R8A7745
84         bool "RZ/G1E pin control support" if COMPILE_TEST
86 config PINCTRL_PFC_R8A77470
87         bool "RZ/G1C pin control support" if COMPILE_TEST
89 config PINCTRL_PFC_R8A774A1
90         bool "RZ/G2M pin control support" if COMPILE_TEST
92 config PINCTRL_PFC_R8A774B1
93         bool "RZ/G2N pin control support" if COMPILE_TEST
95 config PINCTRL_PFC_R8A774C0
96         bool "RZ/G2E pin control support" if COMPILE_TEST
98 config PINCTRL_PFC_R8A7778
99         bool "R-Car M1A pin control support" if COMPILE_TEST
101 config PINCTRL_PFC_R8A7779
102         bool "R-Car H1 pin control support" if COMPILE_TEST
104 config PINCTRL_PFC_R8A7790
105         bool "R-Car H2 pin control support" if COMPILE_TEST
107 config PINCTRL_PFC_R8A7791
108         bool "R-Car M2-W pin control support" if COMPILE_TEST
110 config PINCTRL_PFC_R8A7792
111         bool "R-Car V2H pin control support" if COMPILE_TEST
113 config PINCTRL_PFC_R8A7793
114         bool "R-Car M2-N pin control support" if COMPILE_TEST
116 config PINCTRL_PFC_R8A7794
117         bool "R-Car E2 pin control support" if COMPILE_TEST
119 config PINCTRL_PFC_R8A77950
120         bool "R-Car H3 ES1.x pin control support" if COMPILE_TEST
122 config PINCTRL_PFC_R8A77951
123         bool "R-Car H3 ES2.0+ pin control support" if COMPILE_TEST
125 config PINCTRL_PFC_R8A77960
126         bool "R-Car M3-W pin control support" if COMPILE_TEST
128 config PINCTRL_PFC_R8A77961
129         bool "R-Car M3-W+ pin control support" if COMPILE_TEST
131 config PINCTRL_PFC_R8A77965
132         bool "R-Car M3-N pin control support" if COMPILE_TEST
134 config PINCTRL_PFC_R8A77970
135         bool "R-Car V3M pin control support" if COMPILE_TEST
137 config PINCTRL_PFC_R8A77980
138         bool "R-Car V3H pin control support" if COMPILE_TEST
140 config PINCTRL_PFC_R8A77990
141         bool "R-Car E3 pin control support" if COMPILE_TEST
143 config PINCTRL_PFC_R8A77995
144         bool "R-Car D3 pin control support" if COMPILE_TEST
146 config PINCTRL_PFC_SH7203
147         bool "SH7203 pin control support" if COMPILE_TEST
148         select PINCTRL_SH_FUNC_GPIO
150 config PINCTRL_PFC_SH7264
151         bool "SH7264 pin control support" if COMPILE_TEST
152         select PINCTRL_SH_FUNC_GPIO
154 config PINCTRL_PFC_SH7269
155         bool "SH7269 pin control support" if COMPILE_TEST
156         select PINCTRL_SH_FUNC_GPIO
158 config PINCTRL_PFC_SH73A0
159         bool "SH-Mobile AG5 pin control support" if COMPILE_TEST
160         select PINCTRL_SH_PFC_GPIO
161         select REGULATOR
163 config PINCTRL_PFC_SH7720
164         bool "SH7720 pin control support" if COMPILE_TEST
165         select PINCTRL_SH_FUNC_GPIO
167 config PINCTRL_PFC_SH7722
168         bool "SH7722 pin control support" if COMPILE_TEST
169         select PINCTRL_SH_FUNC_GPIO
171 config PINCTRL_PFC_SH7723
172         bool "SH-Mobile R2 pin control support" if COMPILE_TEST
173         select PINCTRL_SH_FUNC_GPIO
175 config PINCTRL_PFC_SH7724
176         bool "SH-Mobile R2R pin control support" if COMPILE_TEST
177         select PINCTRL_SH_FUNC_GPIO
179 config PINCTRL_PFC_SH7734
180         bool "SH7734 pin control support" if COMPILE_TEST
181         select PINCTRL_SH_FUNC_GPIO
183 config PINCTRL_PFC_SH7757
184         bool "SH7757 pin control support" if COMPILE_TEST
185         select PINCTRL_SH_FUNC_GPIO
187 config PINCTRL_PFC_SH7785
188         bool "SH7785 pin control support" if COMPILE_TEST
189         select PINCTRL_SH_FUNC_GPIO
191 config PINCTRL_PFC_SH7786
192         bool "SH7786 pin control support" if COMPILE_TEST
193         select PINCTRL_SH_FUNC_GPIO
195 config PINCTRL_PFC_SHX3
196         bool "SH-X3 pin control support" if COMPILE_TEST
197         select PINCTRL_SH_FUNC_GPIO