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