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