blob: 17a4f409f96d6e559d24c17ebed1ba8f24f1078a [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 YOSHII3256c7892010-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 Morimoto27d5f272013-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 Dammf411fad2011-12-14 01:36:12 +0900210config MACH_MARZEN
211 bool "MARZEN board"
212 depends on ARCH_R8A7779
Magnus Damm19c43fc2011-12-14 01:36:22 +0900213 select ARCH_REQUIRE_GPIOLIB
Guennadi Liakhovetski34767f82012-07-05 15:17:42 +0200214 select REGULATOR_FIXED_VOLTAGE if REGULATOR
Magnus Damm7ebbb4a2013-07-24 16:30:42 +0900215 select USE_OF
Magnus Dammf411fad2011-12-14 01:36:12 +0900216
Simon Horman73d6a692013-01-29 11:40:18 +0900217config MACH_MARZEN_REFERENCE
218 bool "MARZEN board - Reference Device Tree Implementation"
219 depends on ARCH_R8A7779
220 select ARCH_REQUIRE_GPIOLIB
221 select REGULATOR_FIXED_VOLTAGE if REGULATOR
222 select USE_OF
223 ---help---
224 Use reference implementation of Marzen board support
225 which makes use of device tree at the expense
226 of not supporting a number of devices.
227
228 This is intended to aid developers
229
Magnus Damm3cc828f2013-03-29 17:49:37 +0900230config MACH_LAGER
231 bool "Lager board"
232 depends on ARCH_R8A7790
233 select USE_OF
234
Simon Horman6dace672013-06-28 13:42:16 +0900235config MACH_LAGER_REFERENCE
236 bool "Lager board - Reference Device Tree Implementation"
237 depends on ARCH_R8A7790
238 select USE_OF
239 ---help---
240 Use reference implementation of Lager board support
241 which makes use of device tree at the expense
242 of not supporting a number of devices.
243
244 This is intended to aid developers
245
Hisashi Nakamura1f52c652013-09-04 12:46:49 +0900246config MACH_KOELSCH
247 bool "Koelsch board"
248 depends on ARCH_R8A7791
249 select USE_OF
250
Magnus Damma2baf192013-10-08 15:30:18 +0900251config MACH_KOELSCH_REFERENCE
252 bool "Koelsch board - Reference Device Tree Implementation"
253 depends on ARCH_R8A7791
254 select USE_OF
255 ---help---
256 Use reference implementation of Koelsch board support
257 which makes use of device tree at the expense
258 of not supporting a number of devices.
259
260 This is intended to aid developers
261
Kuninori Morimoto9b93e242012-04-10 20:57:31 -0700262config MACH_KZM9G
263 bool "KZM-A9-GT board"
264 depends on ARCH_SH73A0
Guennadi Liakhovetskid2347382013-04-05 12:00:38 +0200265 select ARCH_HAS_CPUFREQ
266 select ARCH_HAS_OPP
Kuninori Morimoto9b93e242012-04-10 20:57:31 -0700267 select ARCH_REQUIRE_GPIOLIB
Guennadi Liakhovetski34767f82012-07-05 15:17:42 +0200268 select REGULATOR_FIXED_VOLTAGE if REGULATOR
Russell Kingb1b3f492012-10-06 17:12:25 +0100269 select SND_SOC_AK4642 if SND_SIMPLE_CARD
270 select USE_OF
Kuninori Morimoto9b93e242012-04-10 20:57:31 -0700271
Simon Hormanb8b82b22012-11-22 00:34:25 +0900272config MACH_KZM9G_REFERENCE
273 bool "KZM-A9-GT board - Reference Device Tree Implementation"
Guennadi Liakhovetskif33d1c32013-01-15 18:23:36 +0100274 depends on ARCH_SH73A0
275 select ARCH_REQUIRE_GPIOLIB
276 select REGULATOR_FIXED_VOLTAGE if REGULATOR
277 select SND_SOC_AK4642 if SND_SIMPLE_CARD
278 select USE_OF
Simon Hormanb8b82b22012-11-22 00:34:25 +0900279 ---help---
280 Use reference implementation of KZM-A9-GT board support
281 which makes as greater use of device tree at the expense
282 of not supporting a number of devices.
283
284 This is intended to aid developers
285
Magnus Dammc793c1b2010-02-05 11:14:49 +0000286comment "SH-Mobile System Configuration"
287
Rob Herring7f1e7632012-01-17 11:20:23 -0600288config CPU_HAS_INTEVT
289 bool
290 default y
291
Magnus Dammfd071b62013-07-18 05:31:27 +0900292config SH_CLK_CPG
293 bool
294
295source "drivers/sh/Kconfig"
296
297endif
298
Laurent Pinchartbf98c1e2013-11-09 13:33:48 +0100299if ARCH_SHMOBILE
Magnus Dammfd071b62013-07-18 05:31:27 +0900300
Magnus Dammc793c1b2010-02-05 11:14:49 +0000301menu "Timer and clock configuration"
302
Magnus Damm5da3e712010-07-29 14:03:04 +0100303config SHMOBILE_TIMER_HZ
304 int "Kernel HZ (jiffies per second)"
305 range 32 1024
306 default "128"
307 help
308 Allows the configuration of the timer frequency. It is customary
309 to have the timer interrupt run at 1000 Hz or 100 Hz, but in the
310 case of low timer frequencies other values may be more suitable.
311 SH-Mobile systems using a 32768 Hz RCLK for clock events may want
312 to select a HZ value such as 128 that can evenly divide RCLK.
313 A HZ value that does not divide evenly may cause timer drift.
314
Magnus Dammc793c1b2010-02-05 11:14:49 +0000315config SH_TIMER_CMT
316 bool "CMT timer driver"
317 default y
318 help
319 This enables build of the CMT timer driver.
320
Magnus Damm645e5222010-05-12 09:03:19 +0000321config SH_TIMER_TMU
322 bool "TMU timer driver"
323 default y
324 help
325 This enables build of the TMU timer driver.
326
Magnus Dammb9dbf952012-05-25 16:03:44 +0900327config EM_TIMER_STI
328 bool "STI timer driver"
329 default y
330 help
331 This enables build of the STI timer driver.
332
Magnus Dammc793c1b2010-02-05 11:14:49 +0000333endmenu
334
Magnus Dammc793c1b2010-02-05 11:14:49 +0000335endif