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