blob: 8bc7308903848f2c589d0ed9e3e523acf0cc2deb [file] [log] [blame]
Laurent Pinchartbf98c1e2013-11-09 13:33:48 +01001config ARCH_SHMOBILE
2 bool
3
Magnus Dammefacfce2013-07-18 05:31:09 +09004config ARCH_SHMOBILE_MULTI
5 bool "SH-Mobile Series" if ARCH_MULTI_V7
6 depends on MMU
Laurent Pinchartbf98c1e2013-11-09 13:33:48 +01007 select ARCH_SHMOBILE
Magnus Dammefacfce2013-07-18 05:31:09 +09008 select CPU_V7
9 select GENERIC_CLOCKEVENTS
10 select HAVE_ARM_SCU if SMP
11 select HAVE_ARM_TWD if LOCAL_TIMERS
12 select HAVE_SMP
13 select ARM_GIC
14 select MIGHT_HAVE_CACHE_L2X0
15 select NO_IOPORT
16 select PINCTRL
17 select ARCH_REQUIRE_GPIOLIB
18 select CLKDEV_LOOKUP
19
20if ARCH_SHMOBILE_MULTI
21
22comment "SH-Mobile System Type"
23
Magnus Dammcbc60e72013-07-18 05:31:18 +090024config ARCH_EMEV2
25 bool "Emma Mobile EV2"
26
Magnus Damm6d75bc62013-11-06 19:40:01 +090027config ARCH_R8A7791
28 bool "R-Car M2 (R8A77910)"
29 select RENESAS_IRQC
30
Magnus Dammcbc60e72013-07-18 05:31:18 +090031comment "SH-Mobile Board Type"
32
Magnus Damm6d75bc62013-11-06 19:40:01 +090033config MACH_KOELSCH
34 bool "Koelsch board"
35 depends on ARCH_R8A7791
36
Magnus Damm3ae970a2013-10-01 19:33:15 +090037config MACH_KZM9D
38 bool "KZM9D board"
Magnus Dammcbc60e72013-07-18 05:31:18 +090039 depends on ARCH_EMEV2
40 select REGULATOR_FIXED_VOLTAGE if REGULATOR
Magnus Dammfd071b62013-07-18 05:31:27 +090041
42comment "SH-Mobile System Configuration"
Magnus Dammefacfce2013-07-18 05:31:09 +090043endif
44
Laurent Pinchartbf98c1e2013-11-09 13:33:48 +010045if ARCH_SHMOBILE_LEGACY
Magnus Dammc793c1b2010-02-05 11:14:49 +000046
47comment "SH-Mobile System Type"
48
Magnus Damm2b7eda62010-02-05 11:14:58 +000049config ARCH_SH7372
50 bool "SH-Mobile AP4 (SH7372)"
Paul Mundt6d72ad32010-11-16 16:10:20 +090051 select ARCH_WANT_OPTIONAL_GPIOLIB
Magnus Damma1ee61b2012-07-11 22:54:05 +020052 select ARM_CPU_SUSPEND if PM || CPU_IDLE
Russell Kingb1b3f492012-10-06 17:12:25 +010053 select CPU_V7
54 select SH_CLK_CPG
Magnus Damm2b7eda62010-02-05 11:14:58 +000055
Magnus Damm6d9598e2010-11-17 10:59:31 +000056config ARCH_SH73A0
57 bool "SH-Mobile AG5 (R8A73A00)"
Takashi YOSHII1cdf3702010-11-19 16:47:16 +090058 select ARCH_WANT_OPTIONAL_GPIOLIB
Magnus Damm6d9598e2010-11-17 10:59:31 +000059 select ARM_GIC
Russell Kingb1b3f492012-10-06 17:12:25 +010060 select CPU_V7
Guennadi Liakhovetski99f8bd82011-08-30 16:19:13 +000061 select I2C
Russell Kingb1b3f492012-10-06 17:12:25 +010062 select SH_CLK_CPG
Magnus Damm341eb542013-02-26 12:01:09 +090063 select RENESAS_INTC_IRQPIN
Magnus Damm6d9598e2010-11-17 10:59:31 +000064
Magnus Dammeccf0602013-03-26 10:34:24 +090065config ARCH_R8A73A4
66 bool "R-Mobile APE6 (R8A73A40)"
Magnus Dammd313d062013-03-26 10:34:52 +090067 select ARCH_WANT_OPTIONAL_GPIOLIB
Magnus Dammeccf0602013-03-26 10:34:24 +090068 select ARM_GIC
69 select CPU_V7
Magnus Dammeccf0602013-03-26 10:34:24 +090070 select SH_CLK_CPG
Magnus Damm984ca292013-03-26 10:34:42 +090071 select RENESAS_IRQC
Guennadi Liakhovetski181135e2013-05-22 11:12:37 +020072 select ARCH_HAS_CPUFREQ
73 select ARCH_HAS_OPP
Magnus Dammf2aaf662010-02-05 11:15:07 +000074
Kuninori Morimoto6c01ba42011-11-10 18:45:52 -080075config ARCH_R8A7740
76 bool "R-Mobile A1 (R8A77400)"
Russell Kingb1b3f492012-10-06 17:12:25 +010077 select ARCH_WANT_OPTIONAL_GPIOLIB
Bastian Hecht0b7d7822013-03-27 14:54:04 +010078 select ARM_GIC
Kuninori Morimoto6c01ba42011-11-10 18:45:52 -080079 select CPU_V7
80 select SH_CLK_CPG
Bastian Hecht0b7d7822013-03-27 14:54:04 +010081 select RENESAS_INTC_IRQPIN
Kuninori Morimoto6c01ba42011-11-10 18:45:52 -080082
Kuninori Morimotoccb7cc72013-03-21 03:01:36 -070083config ARCH_R8A7778
Sergei Shtylyov45fa9292013-05-09 00:05:40 +000084 bool "R-Car M1A (R8A77781)"
Kuninori Morimoto369b00b2013-04-12 05:37:50 +000085 select ARCH_WANT_OPTIONAL_GPIOLIB
Kuninori Morimotoccb7cc72013-03-21 03:01:36 -070086 select CPU_V7
87 select SH_CLK_CPG
88 select ARM_GIC
Sergei Shtylyov02474a42013-06-09 00:36:05 +040089 select USB_ARCH_HAS_EHCI
90 select USB_ARCH_HAS_OHCI
Magnus Dammc793c1b2010-02-05 11:14:49 +000091
Magnus Dammf411fad2011-12-14 01:36:12 +090092config ARCH_R8A7779
93 bool "R-Car H1 (R8A77790)"
Russell Kingb1b3f492012-10-06 17:12:25 +010094 select ARCH_WANT_OPTIONAL_GPIOLIB
95 select ARM_GIC
Magnus Dammf411fad2011-12-14 01:36:12 +090096 select CPU_V7
97 select SH_CLK_CPG
Kuninori Morimoto94e1f7f2012-10-29 01:15:34 -070098 select USB_ARCH_HAS_EHCI
Kuninori Morimotoac7c4ea2012-10-29 01:15:43 -070099 select USB_ARCH_HAS_OHCI
Magnus Damm8e56e6d2013-02-26 12:01:18 +0900100 select RENESAS_INTC_IRQPIN
Magnus Dammf411fad2011-12-14 01:36:12 +0900101
Magnus Damm0468b2d2013-03-28 00:49:34 +0900102config ARCH_R8A7790
103 bool "R-Car H2 (R8A77900)"
Magnus Damm69e351d2013-03-28 00:50:03 +0900104 select ARCH_WANT_OPTIONAL_GPIOLIB
Magnus Damm0468b2d2013-03-28 00:49:34 +0900105 select ARM_GIC
106 select CPU_V7
Magnus Damm0468b2d2013-03-28 00:49:34 +0900107 select SH_CLK_CPG
Magnus Damm8f5ec0a2013-03-28 00:49:54 +0900108 select RENESAS_IRQC
Magnus Dammc793c1b2010-02-05 11:14:49 +0000109
Hisashi Nakamura0d0771ab2013-09-04 12:45:57 +0900110config ARCH_R8A7791
111 bool "R-Car M2 (R8A77910)"
Magnus Dammcc3a17d2013-10-08 12:39:20 +0900112 select ARCH_WANT_OPTIONAL_GPIOLIB
Hisashi Nakamura0d0771ab2013-09-04 12:45:57 +0900113 select ARM_GIC
114 select CPU_V7
115 select SH_CLK_CPG
Magnus Damme08d2872013-10-08 12:16:08 +0900116 select RENESAS_IRQC
Hisashi Nakamura0d0771ab2013-09-04 12:45:57 +0900117
Magnus Damm7f627f02012-05-16 15:44:58 +0900118config ARCH_EMEV2
119 bool "Emma Mobile EV2"
Magnus Damm088efd92012-05-16 15:45:34 +0900120 select ARCH_WANT_OPTIONAL_GPIOLIB
Russell Kingb1b3f492012-10-06 17:12:25 +0100121 select ARM_GIC
122 select CPU_V7
Magnus Damm81fd1b62013-11-08 19:09:34 +0900123 select USE_OF
Simon Horman42a1ba52013-12-10 16:43:16 +0900124 select AUTO_ZRELADDR
Magnus Damm7f627f02012-05-16 15:44:58 +0900125
Magnus Damm0086df22013-09-19 05:11:11 +0900126config ARCH_R7S72100
127 bool "RZ/A1H (R7S72100)"
Magnus Damm091b2582013-10-10 07:57:42 +0900128 select ARCH_WANT_OPTIONAL_GPIOLIB
Magnus Damm0086df22013-09-19 05:11:11 +0900129 select ARM_GIC
130 select CPU_V7
131 select SH_CLK_CPG
132
Magnus Dammc793c1b2010-02-05 11:14:49 +0000133comment "SH-Mobile Board Type"
134
Magnus Damm78ded162013-03-29 17:00:02 +0900135config MACH_APE6EVM
136 bool "APE6EVM board"
137 depends on ARCH_R8A73A4
138 select USE_OF
139
Guennadi Liakhovetski69f36662013-07-08 18:04:57 +0200140config MACH_APE6EVM_REFERENCE
141 bool "APE6EVM board - Reference Device Tree Implementation"
142 depends on ARCH_R8A73A4
143 select USE_OF
144 ---help---
145 Use reference implementation of APE6EVM board support
146 which makes a greater use of device tree at the expense
147 of not supporting a number of devices.
148
149 This is intended to aid developers
150
Kuninori Morimoto920adc72010-11-29 02:21:21 +0000151config MACH_MACKEREL
152 bool "mackerel board"
153 depends on ARCH_SH7372
Takashi YOSHII3256c782010-11-19 16:49:38 +0900154 select ARCH_REQUIRE_GPIOLIB
Guennadi Liakhovetski34767f82012-07-05 15:17:42 +0200155 select REGULATOR_FIXED_VOLTAGE if REGULATOR
Russell Kingb1b3f492012-10-06 17:12:25 +0100156 select SND_SOC_AK4642 if SND_SIMPLE_CARD
Nobuhiro Iwamatsu0ce53cd2012-10-24 14:48:00 +0900157 select USE_OF
Magnus Damm6d9598e2010-11-17 10:59:31 +0000158
Kuninori Morimoto4d22e562012-04-06 01:28:59 -0700159config MACH_ARMADILLO800EVA
160 bool "Armadillo-800 EVA board"
161 depends on ARCH_R8A7740
162 select ARCH_REQUIRE_GPIOLIB
Guennadi Liakhovetski34767f82012-07-05 15:17:42 +0200163 select REGULATOR_FIXED_VOLTAGE if REGULATOR
Kuninori Morimoto5389bf72012-06-25 03:32:50 -0700164 select SND_SOC_WM8978 if SND_SIMPLE_CARD
Russell Kingb1b3f492012-10-06 17:12:25 +0100165 select USE_OF
Kuninori Morimoto4d22e562012-04-06 01:28:59 -0700166
Bastian Hecht76b92b42013-04-17 12:34:06 +0200167config MACH_ARMADILLO800EVA_REFERENCE
168 bool "Armadillo-800 EVA board - Reference Device Tree Implementation"
169 depends on ARCH_R8A7740
170 select ARCH_REQUIRE_GPIOLIB
171 select REGULATOR_FIXED_VOLTAGE if REGULATOR
172 select SND_SOC_WM8978 if SND_SIMPLE_CARD
173 select USE_OF
174 ---help---
175 Use reference implementation of Aramdillo800 EVA board support
176 which makes a greater use of device tree at the expense
177 of not supporting a number of devices.
178
179 This is intended to aid developers
180
Kuninori Morimoto53e42c22013-03-21 03:03:38 -0700181config MACH_BOCKW
182 bool "BOCK-W platform"
183 depends on ARCH_R8A7778
184 select ARCH_REQUIRE_GPIOLIB
Kuninori Morimoto27d5f27e2013-04-01 21:20:02 -0700185 select RENESAS_INTC_IRQPIN
Kuninori Morimotoc9996e52013-07-09 02:07:13 -0700186 select REGULATOR_FIXED_VOLTAGE if REGULATOR
Kuninori Morimoto53e42c22013-03-21 03:03:38 -0700187 select USE_OF
Kuninori Morimoto688e6a62013-08-26 01:52:35 -0700188 select SND_SOC_AK4554 if SND_SIMPLE_CARD
189 select SND_SOC_AK4642 if SND_SIMPLE_CARD
Kuninori Morimoto53e42c22013-03-21 03:03:38 -0700190
Kuninori Morimotocfa66a82013-07-24 00:36:51 -0700191config MACH_BOCKW_REFERENCE
192 bool "BOCK-W - Reference Device Tree Implementation"
193 depends on ARCH_R8A7778
194 select ARCH_REQUIRE_GPIOLIB
195 select RENESAS_INTC_IRQPIN
196 select REGULATOR_FIXED_VOLTAGE if REGULATOR
197 select USE_OF
198 ---help---
199 Use reference implementation of BockW board support
200 which makes use of device tree at the expense
201 of not supporting a number of devices.
202
203 This is intended to aid developers
204
Magnus Damma4ed4122013-09-19 05:11:29 +0900205config MACH_GENMAI
206 bool "Genmai board"
207 depends on ARCH_R7S72100
208 select USE_OF
209
Magnus Dammc4e337f2013-11-07 08:31:16 +0900210config MACH_GENMAI_REFERENCE
211 bool "Genmai board - Reference Device Tree Implementation"
212 depends on ARCH_R7S72100
213 select USE_OF
214 ---help---
215 Use reference implementation of Genmai board support
216 which makes use of device tree at the expense
217 of not supporting a number of devices.
218
219 This is intended to aid developers
220
Magnus Dammf411fad2011-12-14 01:36:12 +0900221config MACH_MARZEN
222 bool "MARZEN board"
223 depends on ARCH_R8A7779
Magnus Damm19c43fc2011-12-14 01:36:22 +0900224 select ARCH_REQUIRE_GPIOLIB
Guennadi Liakhovetski34767f82012-07-05 15:17:42 +0200225 select REGULATOR_FIXED_VOLTAGE if REGULATOR
Magnus Damm7ebbb4a2013-07-24 16:30:42 +0900226 select USE_OF
Magnus Dammf411fad2011-12-14 01:36:12 +0900227
Simon Horman73d6a692013-01-29 11:40:18 +0900228config MACH_MARZEN_REFERENCE
229 bool "MARZEN board - Reference Device Tree Implementation"
230 depends on ARCH_R8A7779
231 select ARCH_REQUIRE_GPIOLIB
232 select REGULATOR_FIXED_VOLTAGE if REGULATOR
233 select USE_OF
234 ---help---
235 Use reference implementation of Marzen board support
236 which makes use of device tree at the expense
237 of not supporting a number of devices.
238
239 This is intended to aid developers
240
Magnus Damm3cc828f2013-03-29 17:49:37 +0900241config MACH_LAGER
242 bool "Lager board"
243 depends on ARCH_R8A7790
244 select USE_OF
245
Simon Horman6dace672013-06-28 13:42:16 +0900246config MACH_LAGER_REFERENCE
247 bool "Lager board - Reference Device Tree Implementation"
248 depends on ARCH_R8A7790
249 select USE_OF
250 ---help---
251 Use reference implementation of Lager board support
252 which makes use of device tree at the expense
253 of not supporting a number of devices.
254
255 This is intended to aid developers
256
Hisashi Nakamura1f52c652013-09-04 12:46:49 +0900257config MACH_KOELSCH
258 bool "Koelsch board"
259 depends on ARCH_R8A7791
260 select USE_OF
261
Magnus Damma2baf192013-10-08 15:30:18 +0900262config MACH_KOELSCH_REFERENCE
263 bool "Koelsch board - Reference Device Tree Implementation"
264 depends on ARCH_R8A7791
265 select USE_OF
266 ---help---
267 Use reference implementation of Koelsch board support
268 which makes use of device tree at the expense
269 of not supporting a number of devices.
270
271 This is intended to aid developers
272
Kuninori Morimoto9b93e242012-04-10 20:57:31 -0700273config MACH_KZM9G
274 bool "KZM-A9-GT board"
275 depends on ARCH_SH73A0
Guennadi Liakhovetskid2347382013-04-05 12:00:38 +0200276 select ARCH_HAS_CPUFREQ
277 select ARCH_HAS_OPP
Kuninori Morimoto9b93e242012-04-10 20:57:31 -0700278 select ARCH_REQUIRE_GPIOLIB
Guennadi Liakhovetski34767f82012-07-05 15:17:42 +0200279 select REGULATOR_FIXED_VOLTAGE if REGULATOR
Russell Kingb1b3f492012-10-06 17:12:25 +0100280 select SND_SOC_AK4642 if SND_SIMPLE_CARD
281 select USE_OF
Kuninori Morimoto9b93e242012-04-10 20:57:31 -0700282
Simon Hormanb8b82b22012-11-22 00:34:25 +0900283config MACH_KZM9G_REFERENCE
284 bool "KZM-A9-GT board - Reference Device Tree Implementation"
Guennadi Liakhovetskif33d1c32013-01-15 18:23:36 +0100285 depends on ARCH_SH73A0
286 select ARCH_REQUIRE_GPIOLIB
287 select REGULATOR_FIXED_VOLTAGE if REGULATOR
288 select SND_SOC_AK4642 if SND_SIMPLE_CARD
289 select USE_OF
Simon Hormanb8b82b22012-11-22 00:34:25 +0900290 ---help---
291 Use reference implementation of KZM-A9-GT board support
292 which makes as greater use of device tree at the expense
293 of not supporting a number of devices.
294
295 This is intended to aid developers
296
Magnus Dammc793c1b2010-02-05 11:14:49 +0000297comment "SH-Mobile System Configuration"
298
Rob Herring7f1e76372012-01-17 11:20:23 -0600299config CPU_HAS_INTEVT
300 bool
301 default y
302
Magnus Dammfd071b62013-07-18 05:31:27 +0900303config SH_CLK_CPG
304 bool
305
306source "drivers/sh/Kconfig"
307
308endif
309
Laurent Pinchartbf98c1e2013-11-09 13:33:48 +0100310if ARCH_SHMOBILE
Magnus Dammfd071b62013-07-18 05:31:27 +0900311
Magnus Dammc793c1b2010-02-05 11:14:49 +0000312menu "Timer and clock configuration"
313
Magnus Damm5da3e712010-07-29 14:03:04 +0100314config SHMOBILE_TIMER_HZ
315 int "Kernel HZ (jiffies per second)"
316 range 32 1024
317 default "128"
318 help
319 Allows the configuration of the timer frequency. It is customary
320 to have the timer interrupt run at 1000 Hz or 100 Hz, but in the
321 case of low timer frequencies other values may be more suitable.
322 SH-Mobile systems using a 32768 Hz RCLK for clock events may want
323 to select a HZ value such as 128 that can evenly divide RCLK.
324 A HZ value that does not divide evenly may cause timer drift.
325
Magnus Dammc793c1b2010-02-05 11:14:49 +0000326config SH_TIMER_CMT
327 bool "CMT timer driver"
328 default y
329 help
330 This enables build of the CMT timer driver.
331
Magnus Damm645e5222010-05-12 09:03:19 +0000332config SH_TIMER_TMU
333 bool "TMU timer driver"
334 default y
335 help
336 This enables build of the TMU timer driver.
337
Magnus Dammb9dbf952012-05-25 16:03:44 +0900338config EM_TIMER_STI
339 bool "STI timer driver"
340 default y
341 help
342 This enables build of the STI timer driver.
343
Magnus Dammc793c1b2010-02-05 11:14:49 +0000344endmenu
345
Magnus Dammc793c1b2010-02-05 11:14:49 +0000346endif