usb: phy: rcar-gen2-usb: always use 'dev' variable in probe() method
[platform/adaptation/renesas_rcar/renesas_kernel.git] / arch / arm / mach-shmobile / Kconfig
1 config ARCH_SHMOBILE
2         bool
3
4 config ARCH_SHMOBILE_MULTI
5         bool "Renesas ARM SoCs" if ARCH_MULTI_V7
6         depends on MMU
7         select ARCH_SHMOBILE
8         select HAVE_ARM_SCU if SMP
9         select HAVE_ARM_TWD if SMP
10         select ARM_GIC
11         select ARCH_DMA_ADDR_T_64BIT if ARM_LPAE
12         select NO_IOPORT_MAP
13         select PINCTRL
14         select ARCH_REQUIRE_GPIOLIB
15         select ARCH_HAS_CPUFREQ
16         select ARCH_HAS_OPP
17
18 if ARCH_SHMOBILE_MULTI
19
20 comment "Renesas ARM SoCs System Type"
21
22 config ARCH_EMEV2
23         bool "Emma Mobile EV2"
24         select SYS_SUPPORTS_EM_STI
25
26 config ARCH_R7S72100
27         bool "RZ/A1H (R7S72100)"
28         select SYS_SUPPORTS_SH_MTU2
29
30 config ARCH_R8A7779
31         bool "R-Car H1 (R8A77790)"
32         select RENESAS_INTC_IRQPIN
33         select SYS_SUPPORTS_SH_TMU
34
35 config ARCH_R8A7790
36         bool "R-Car H2 (R8A77900)"
37         select RENESAS_IRQC
38         select SYS_SUPPORTS_SH_CMT
39
40 config ARCH_R8A7791
41         bool "R-Car M2 (R8A77910)"
42         select RENESAS_IRQC
43         select SYS_SUPPORTS_SH_CMT
44
45 comment "Renesas ARM SoCs Board Type"
46
47 config MACH_GENMAI
48         bool "Genmai board"
49         depends on ARCH_R7S72100
50
51 config MACH_KOELSCH
52         bool "Koelsch board"
53         depends on ARCH_R8A7791
54         select MICREL_PHY if SH_ETH
55
56 config MACH_LAGER
57         bool "Lager board"
58         depends on ARCH_R8A7790
59         select MICREL_PHY if SH_ETH
60
61 config MACH_MARZEN
62         bool "MARZEN board"
63         depends on ARCH_R8A7779
64         select REGULATOR_FIXED_VOLTAGE if REGULATOR
65
66 comment "Renesas ARM SoCs System Configuration"
67 endif
68
69 if ARCH_SHMOBILE_LEGACY
70
71 comment "Renesas ARM SoCs System Type"
72
73 config ARCH_SH7372
74         bool "SH-Mobile AP4 (SH7372)"
75         select ARCH_WANT_OPTIONAL_GPIOLIB
76         select ARM_CPU_SUSPEND if PM || CPU_IDLE
77         select CPU_V7
78         select SH_CLK_CPG
79         select SH_INTC
80         select SYS_SUPPORTS_SH_CMT
81         select SYS_SUPPORTS_SH_TMU
82
83 config ARCH_SH73A0
84         bool "SH-Mobile AG5 (R8A73A00)"
85         select ARCH_WANT_OPTIONAL_GPIOLIB
86         select ARM_GIC
87         select CPU_V7
88         select I2C
89         select SH_CLK_CPG
90         select SH_INTC
91         select RENESAS_INTC_IRQPIN
92         select SYS_SUPPORTS_SH_CMT
93         select SYS_SUPPORTS_SH_TMU
94
95 config ARCH_R8A73A4
96         bool "R-Mobile APE6 (R8A73A40)"
97         select ARCH_WANT_OPTIONAL_GPIOLIB
98         select ARM_GIC
99         select CPU_V7
100         select SH_CLK_CPG
101         select RENESAS_IRQC
102         select ARCH_HAS_CPUFREQ
103         select ARCH_HAS_OPP
104         select SYS_SUPPORTS_SH_CMT
105         select SYS_SUPPORTS_SH_TMU
106
107 config ARCH_R8A7740
108         bool "R-Mobile A1 (R8A77400)"
109         select ARCH_WANT_OPTIONAL_GPIOLIB
110         select ARM_GIC
111         select CPU_V7
112         select SH_CLK_CPG
113         select RENESAS_INTC_IRQPIN
114         select SYS_SUPPORTS_SH_CMT
115         select SYS_SUPPORTS_SH_TMU
116
117 config ARCH_R8A7778
118         bool "R-Car M1A (R8A77781)"
119         select ARCH_WANT_OPTIONAL_GPIOLIB
120         select CPU_V7
121         select SH_CLK_CPG
122         select ARM_GIC
123         select SYS_SUPPORTS_SH_TMU
124         select RENESAS_INTC_IRQPIN
125
126 config ARCH_R8A7779
127         bool "R-Car H1 (R8A77790)"
128         select ARCH_WANT_OPTIONAL_GPIOLIB
129         select ARM_GIC
130         select CPU_V7
131         select SH_CLK_CPG
132         select RENESAS_INTC_IRQPIN
133         select SYS_SUPPORTS_SH_TMU
134
135 config ARCH_R8A7790
136         bool "R-Car H2 (R8A77900)"
137         select ARCH_WANT_OPTIONAL_GPIOLIB
138         select ARM_GIC
139         select CPU_V7
140         select MIGHT_HAVE_PCI
141         select SH_CLK_CPG
142         select RENESAS_IRQC
143         select ARCH_DMA_ADDR_T_64BIT if ARM_LPAE
144         select SYS_SUPPORTS_SH_CMT
145
146 config ARCH_R8A7791
147         bool "R-Car M2 (R8A77910)"
148         select ARCH_WANT_OPTIONAL_GPIOLIB
149         select ARM_GIC
150         select CPU_V7
151         select MIGHT_HAVE_PCI
152         select SH_CLK_CPG
153         select RENESAS_IRQC
154         select ARCH_DMA_ADDR_T_64BIT if ARM_LPAE
155         select SYS_SUPPORTS_SH_CMT
156
157 config ARCH_R7S72100
158         bool "RZ/A1H (R7S72100)"
159         select ARCH_WANT_OPTIONAL_GPIOLIB
160         select ARM_GIC
161         select CPU_V7
162         select SH_CLK_CPG
163         select SYS_SUPPORTS_SH_MTU2
164
165 comment "Renesas ARM SoCs Board Type"
166
167 config MACH_APE6EVM
168         bool "APE6EVM board"
169         depends on ARCH_R8A73A4
170         select SMSC_PHY if SMSC911X
171         select USE_OF
172
173 config MACH_APE6EVM_REFERENCE
174         bool "APE6EVM board - Reference Device Tree Implementation"
175         depends on ARCH_R8A73A4
176         select SMSC_PHY if SMSC911X
177         select USE_OF
178         ---help---
179            Use reference implementation of APE6EVM board support
180            which makes a greater use of device tree at the expense
181            of not supporting a number of devices.
182
183            This is intended to aid developers
184
185 config MACH_MACKEREL
186         bool "mackerel board"
187         depends on ARCH_SH7372
188         select ARCH_REQUIRE_GPIOLIB
189         select REGULATOR_FIXED_VOLTAGE if REGULATOR
190         select SMSC_PHY if SMSC911X
191         select SND_SOC_AK4642 if SND_SIMPLE_CARD
192         select USE_OF
193
194 config MACH_ARMADILLO800EVA
195         bool "Armadillo-800 EVA board"
196         depends on ARCH_R8A7740
197         select ARCH_REQUIRE_GPIOLIB
198         select REGULATOR_FIXED_VOLTAGE if REGULATOR
199         select SMSC_PHY if SH_ETH
200         select SND_SOC_WM8978 if SND_SIMPLE_CARD
201         select USE_OF
202
203 config MACH_ARMADILLO800EVA_REFERENCE
204         bool "Armadillo-800 EVA board - Reference Device Tree Implementation"
205         depends on ARCH_R8A7740
206         select ARCH_REQUIRE_GPIOLIB
207         select REGULATOR_FIXED_VOLTAGE if REGULATOR
208         select SMSC_PHY if SH_ETH
209         select SND_SOC_WM8978 if SND_SIMPLE_CARD
210         select USE_OF
211         ---help---
212            Use reference implementation of Armadillo800 EVA board support
213            which makes greater use of device tree at the expense
214            of not supporting a number of devices.
215
216            This is intended to aid developers
217
218 config MACH_BOCKW
219         bool "BOCK-W platform"
220         depends on ARCH_R8A7778
221         select ARCH_REQUIRE_GPIOLIB
222         select REGULATOR_FIXED_VOLTAGE if REGULATOR
223         select SND_SOC_AK4554 if SND_SIMPLE_CARD
224         select SND_SOC_AK4642 if SND_SIMPLE_CARD
225         select USE_OF
226
227 config MACH_BOCKW_REFERENCE
228         bool "BOCK-W  - Reference Device Tree Implementation"
229         depends on ARCH_R8A7778
230         select ARCH_REQUIRE_GPIOLIB
231         select REGULATOR_FIXED_VOLTAGE if REGULATOR
232         select USE_OF
233         ---help---
234            Use reference implementation of BockW board support
235            which makes use of device tree at the expense
236            of not supporting a number of devices.
237
238            This is intended to aid developers
239
240 config MACH_GENMAI
241         bool "Genmai board"
242         depends on ARCH_R7S72100
243         select USE_OF
244
245 config MACH_MARZEN
246         bool "MARZEN board"
247         depends on ARCH_R8A7779
248         select ARCH_REQUIRE_GPIOLIB
249         select REGULATOR_FIXED_VOLTAGE if REGULATOR
250         select USE_OF
251
252 config MACH_LAGER
253         bool "Lager board"
254         depends on ARCH_R8A7790
255         select USE_OF
256         select MICREL_PHY if SH_ETH
257         select SND_SOC_AK4642 if SND_SIMPLE_CARD
258
259 config MACH_KOELSCH
260         bool "Koelsch board"
261         depends on ARCH_R8A7791
262         select USE_OF
263         select MICREL_PHY if SH_ETH
264
265 config MACH_KZM9G
266         bool "KZM-A9-GT board"
267         depends on ARCH_SH73A0
268         select ARCH_HAS_CPUFREQ
269         select ARCH_HAS_OPP
270         select ARCH_REQUIRE_GPIOLIB
271         select REGULATOR_FIXED_VOLTAGE if REGULATOR
272         select SND_SOC_AK4642 if SND_SIMPLE_CARD
273         select USE_OF
274
275 config MACH_KZM9G_REFERENCE
276         bool "KZM-A9-GT board - Reference Device Tree Implementation"
277         depends on ARCH_SH73A0
278         select ARCH_REQUIRE_GPIOLIB
279         select REGULATOR_FIXED_VOLTAGE if REGULATOR
280         select SND_SOC_AK4642 if SND_SIMPLE_CARD
281         select USE_OF
282         ---help---
283            Use reference implementation of KZM-A9-GT board support
284            which makes as greater use of device tree at the expense
285            of not supporting a number of devices.
286
287            This is intended to aid developers
288
289 comment "Renesas ARM SoCs System Configuration"
290
291 config CPU_HAS_INTEVT
292         bool
293         default y
294
295 config SH_CLK_CPG
296         bool
297
298 source "drivers/sh/Kconfig"
299
300 endif
301
302 if ARCH_SHMOBILE
303
304 menu "Timer and clock configuration"
305
306 config SHMOBILE_TIMER_HZ
307         int "Kernel HZ (jiffies per second)"
308         range 32 1024
309         default "128"
310         help
311           Allows the configuration of the timer frequency. It is customary
312           to have the timer interrupt run at 1000 Hz or 100 Hz, but in the
313           case of low timer frequencies other values may be more suitable.
314           Renesas ARM SoC systems using a 32768 Hz RCLK for clock events may
315           want to select a HZ value such as 128 that can evenly divide RCLK.
316           A HZ value that does not divide evenly may cause timer drift.
317
318 endmenu
319
320 endif