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