Merge tag 'renesas-boards-for-v3.17' of git://git.kernel.org/pub/scm/linux/kernel...
[sfrench/cifs-2.6.git] / arch / arm / mach-shmobile / Kconfig
1 config ARCH_SHMOBILE
2         bool
3
4 menuconfig 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_R8A7790
31         bool "R-Car H2 (R8A77900)"
32         select RENESAS_IRQC
33         select SYS_SUPPORTS_SH_CMT
34
35 config ARCH_R8A7791
36         bool "R-Car M2 (R8A77910)"
37         select RENESAS_IRQC
38         select SYS_SUPPORTS_SH_CMT
39
40 comment "Renesas ARM SoCs Board Type"
41
42 config MACH_GENMAI
43         bool "Genmai board"
44         depends on ARCH_R7S72100
45
46 config MACH_KOELSCH
47         bool "Koelsch board"
48         depends on ARCH_R8A7791
49         select MICREL_PHY if SH_ETH
50
51 config MACH_LAGER
52         bool "Lager board"
53         depends on ARCH_R8A7790
54         select MICREL_PHY if SH_ETH
55
56 comment "Renesas ARM SoCs System Configuration"
57 endif
58
59 if ARCH_SHMOBILE_LEGACY
60
61 comment "Renesas ARM SoCs System Type"
62
63 config ARCH_SH7372
64         bool "SH-Mobile AP4 (SH7372)"
65         select ARCH_WANT_OPTIONAL_GPIOLIB
66         select ARM_CPU_SUSPEND if PM || CPU_IDLE
67         select CPU_V7
68         select SH_CLK_CPG
69         select SYS_SUPPORTS_SH_CMT
70         select SYS_SUPPORTS_SH_TMU
71
72 config ARCH_SH73A0
73         bool "SH-Mobile AG5 (R8A73A00)"
74         select ARCH_WANT_OPTIONAL_GPIOLIB
75         select ARM_GIC
76         select CPU_V7
77         select I2C
78         select SH_CLK_CPG
79         select RENESAS_INTC_IRQPIN
80         select SYS_SUPPORTS_SH_CMT
81         select SYS_SUPPORTS_SH_TMU
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_OPP
91         select SYS_SUPPORTS_SH_CMT
92         select SYS_SUPPORTS_SH_TMU
93
94 config ARCH_R8A7740
95         bool "R-Mobile A1 (R8A77400)"
96         select ARCH_WANT_OPTIONAL_GPIOLIB
97         select ARM_GIC
98         select CPU_V7
99         select SH_CLK_CPG
100         select RENESAS_INTC_IRQPIN
101         select SYS_SUPPORTS_SH_CMT
102         select SYS_SUPPORTS_SH_TMU
103
104 config ARCH_R8A7778
105         bool "R-Car M1A (R8A77781)"
106         select ARCH_WANT_OPTIONAL_GPIOLIB
107         select CPU_V7
108         select SH_CLK_CPG
109         select ARM_GIC
110         select SYS_SUPPORTS_SH_TMU
111         select RENESAS_INTC_IRQPIN
112
113 config ARCH_R8A7779
114         bool "R-Car H1 (R8A77790)"
115         select ARCH_WANT_OPTIONAL_GPIOLIB
116         select ARM_GIC
117         select CPU_V7
118         select SH_CLK_CPG
119         select RENESAS_INTC_IRQPIN
120         select SYS_SUPPORTS_SH_TMU
121
122 config ARCH_R8A7790
123         bool "R-Car H2 (R8A77900)"
124         select ARCH_WANT_OPTIONAL_GPIOLIB
125         select ARM_GIC
126         select CPU_V7
127         select MIGHT_HAVE_PCI
128         select SH_CLK_CPG
129         select RENESAS_IRQC
130         select SYS_SUPPORTS_SH_CMT
131         select ARCH_DMA_ADDR_T_64BIT if ARM_LPAE
132
133 config ARCH_R8A7791
134         bool "R-Car M2 (R8A77910)"
135         select ARCH_WANT_OPTIONAL_GPIOLIB
136         select ARM_GIC
137         select CPU_V7
138         select MIGHT_HAVE_PCI
139         select SH_CLK_CPG
140         select RENESAS_IRQC
141         select SYS_SUPPORTS_SH_CMT
142         select ARCH_DMA_ADDR_T_64BIT if ARM_LPAE
143
144 config ARCH_R7S72100
145         bool "RZ/A1H (R7S72100)"
146         select ARCH_WANT_OPTIONAL_GPIOLIB
147         select ARM_GIC
148         select CPU_V7
149         select SH_CLK_CPG
150         select SYS_SUPPORTS_SH_MTU2
151
152 comment "Renesas ARM SoCs Board Type"
153
154 config MACH_APE6EVM
155         bool "APE6EVM board"
156         depends on ARCH_R8A73A4
157         select SMSC_PHY if SMSC911X
158         select USE_OF
159
160 config MACH_APE6EVM_REFERENCE
161         bool "APE6EVM board - Reference Device Tree Implementation"
162         depends on ARCH_R8A73A4
163         select SMSC_PHY if SMSC911X
164         select USE_OF
165         ---help---
166            Use reference implementation of APE6EVM board support
167            which makes a greater use of device tree at the expense
168            of not supporting a number of devices.
169
170            This is intended to aid developers
171
172 config MACH_MACKEREL
173         bool "mackerel board"
174         depends on ARCH_SH7372
175         select ARCH_REQUIRE_GPIOLIB
176         select REGULATOR_FIXED_VOLTAGE if REGULATOR
177         select SMSC_PHY if SMSC911X
178         select SND_SOC_AK4642 if SND_SIMPLE_CARD
179         select USE_OF
180
181 config MACH_ARMADILLO800EVA
182         bool "Armadillo-800 EVA board"
183         depends on ARCH_R8A7740
184         select ARCH_REQUIRE_GPIOLIB
185         select REGULATOR_FIXED_VOLTAGE if REGULATOR
186         select SMSC_PHY if SH_ETH
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 SMSC_PHY if SH_ETH
196         select SND_SOC_WM8978 if SND_SIMPLE_CARD
197         select USE_OF
198         ---help---
199            Use reference implementation of Armadillo800 EVA board support
200            which makes greater use of device tree at the expense
201            of not supporting a number of devices.
202
203            This is intended to aid developers
204
205 config MACH_BOCKW
206         bool "BOCK-W platform"
207         depends on ARCH_R8A7778
208         select ARCH_REQUIRE_GPIOLIB
209         select REGULATOR_FIXED_VOLTAGE if REGULATOR
210         select SND_SOC_AK4554 if SND_SIMPLE_CARD
211         select SND_SOC_AK4642 if SND_SIMPLE_CARD
212         select USE_OF
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 REGULATOR_FIXED_VOLTAGE if REGULATOR
219         select USE_OF
220         ---help---
221            Use reference implementation of BockW board support
222            which makes use of device tree at the expense
223            of not supporting a number of devices.
224
225            This is intended to aid developers
226
227 config MACH_GENMAI
228         bool "Genmai board"
229         depends on ARCH_R7S72100
230         select USE_OF
231
232 config MACH_MARZEN
233         bool "MARZEN board"
234         depends on ARCH_R8A7779
235         select ARCH_REQUIRE_GPIOLIB
236         select REGULATOR_FIXED_VOLTAGE if REGULATOR
237         select USE_OF
238
239 config MACH_MARZEN_REFERENCE
240         bool "MARZEN board - Reference Device Tree Implementation"
241         depends on ARCH_R8A7779
242         select ARCH_REQUIRE_GPIOLIB
243         select REGULATOR_FIXED_VOLTAGE if REGULATOR
244         select USE_OF
245         ---help---
246            Use reference implementation of Marzen board support
247            which makes use of device tree at the expense
248            of not supporting a number of devices.
249
250            This is intended to aid developers
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_OPP
269         select ARCH_REQUIRE_GPIOLIB
270         select REGULATOR_FIXED_VOLTAGE if REGULATOR
271         select SND_SOC_AK4642 if SND_SIMPLE_CARD
272         select USE_OF
273
274 config MACH_KZM9G_REFERENCE
275         bool "KZM-A9-GT board - Reference Device Tree Implementation"
276         depends on ARCH_SH73A0
277         select ARCH_REQUIRE_GPIOLIB
278         select REGULATOR_FIXED_VOLTAGE if REGULATOR
279         select SND_SOC_AK4642 if SND_SIMPLE_CARD
280         select USE_OF
281         ---help---
282            Use reference implementation of KZM-A9-GT board support
283            which makes as greater use of device tree at the expense
284            of not supporting a number of devices.
285
286            This is intended to aid developers
287
288 comment "Renesas ARM SoCs System Configuration"
289
290 config CPU_HAS_INTEVT
291         bool
292         default y
293
294 config SH_CLK_CPG
295         bool
296
297 source "drivers/sh/Kconfig"
298
299 endif
300
301 if ARCH_SHMOBILE
302
303 menu "Timer and clock configuration"
304
305 config SHMOBILE_TIMER_HZ
306         int "Kernel HZ (jiffies per second)"
307         range 32 1024
308         default "128"
309         help
310           Allows the configuration of the timer frequency. It is customary
311           to have the timer interrupt run at 1000 Hz or 100 Hz, but in the
312           case of low timer frequencies other values may be more suitable.
313           Renesas ARM SoC systems using a 32768 Hz RCLK for clock events may
314           want to select a HZ value such as 128 that can evenly divide RCLK.
315           A HZ value that does not divide evenly may cause timer drift.
316
317 endmenu
318
319 endif