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