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