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