blob: cd13021cda5f74415cc7e6186173c9e75c67950f [file] [log] [blame]
Laurent Pinchartbf98c1e2013-11-09 13:33:48 +01001config ARCH_SHMOBILE
2 bool
3
Magnus Damm1a950ca2014-08-25 12:03:52 +09004config PM_RCAR
5 bool
6
Magnus Damm57cc67d2014-08-25 12:03:34 +09007config ARCH_RCAR_GEN1
8 bool
Magnus Damm1a950ca2014-08-25 12:03:52 +09009 select PM_RCAR if PM || SMP
Magnus Damm57cc67d2014-08-25 12:03:34 +090010 select RENESAS_INTC_IRQPIN
11 select SYS_SUPPORTS_SH_TMU
12
Magnus Damm0d918432014-08-25 12:03:43 +090013config ARCH_RCAR_GEN2
14 bool
Magnus Damm1a950ca2014-08-25 12:03:52 +090015 select PM_RCAR if PM || SMP
Magnus Damm0d918432014-08-25 12:03:43 +090016 select RENESAS_IRQC
17 select SYS_SUPPORTS_SH_CMT
18
Magnus Damm5784b192014-08-25 12:03:25 +090019config ARCH_RMOBILE
20 bool
21 select SYS_SUPPORTS_SH_CMT
22 select SYS_SUPPORTS_SH_TMU
23
Rob Herring21278ae2014-06-10 09:06:10 -050024menuconfig ARCH_SHMOBILE_MULTI
Laurent Pinchart0d9fd612013-11-28 17:27:29 +010025 bool "Renesas ARM SoCs" if ARCH_MULTI_V7
Magnus Dammefacfce2013-07-18 05:31:09 +090026 depends on MMU
Laurent Pinchartbf98c1e2013-11-09 13:33:48 +010027 select ARCH_SHMOBILE
Magnus Dammefacfce2013-07-18 05:31:09 +090028 select HAVE_ARM_SCU if SMP
Rob Herring8b7dfa72014-02-01 16:35:44 -060029 select HAVE_ARM_TWD if SMP
Magnus Dammefacfce2013-07-18 05:31:09 +090030 select ARM_GIC
Magnus Damm4a518562014-02-05 14:36:28 +090031 select ARCH_DMA_ADDR_T_64BIT if ARM_LPAE
Uwe Kleine-Königce816fa2014-04-07 15:39:19 -070032 select NO_IOPORT_MAP
Magnus Dammefacfce2013-07-18 05:31:09 +090033 select PINCTRL
34 select ARCH_REQUIRE_GPIOLIB
Benoit Cousson6596e972014-06-05 12:49:44 +090035 select ARCH_HAS_OPP
Magnus Dammefacfce2013-07-18 05:31:09 +090036
37if ARCH_SHMOBILE_MULTI
38
Rob Herring21278ae2014-06-10 09:06:10 -050039#comment "Renesas ARM SoCs System Type"
Magnus Dammefacfce2013-07-18 05:31:09 +090040
Magnus Dammcbc60e72013-07-18 05:31:18 +090041config ARCH_EMEV2
42 bool "Emma Mobile EV2"
Magnus Dammaeb8fb72014-02-20 12:54:46 +010043 select SYS_SUPPORTS_EM_STI
Magnus Dammcbc60e72013-07-18 05:31:18 +090044
Magnus Damm7d91c462013-11-07 08:31:25 +090045config ARCH_R7S72100
46 bool "RZ/A1H (R7S72100)"
Magnus Dammaeb8fb72014-02-20 12:54:46 +010047 select SYS_SUPPORTS_SH_MTU2
Magnus Damm7d91c462013-11-07 08:31:25 +090048
Simon Horman5016c812014-05-15 20:32:05 +090049config ARCH_R8A7779
50 bool "R-Car H1 (R8A77790)"
Magnus Damm57cc67d2014-08-25 12:03:34 +090051 select ARCH_RCAR_GEN1
Simon Horman5016c812014-05-15 20:32:05 +090052
Laurent Pinchart0ef3cde2013-12-11 15:13:52 +010053config ARCH_R8A7790
54 bool "R-Car H2 (R8A77900)"
Magnus Damm0d918432014-08-25 12:03:43 +090055 select ARCH_RCAR_GEN2
Laurent Pinchart0ef3cde2013-12-11 15:13:52 +010056
Magnus Damm6d75bc62013-11-06 19:40:01 +090057config ARCH_R8A7791
58 bool "R-Car M2 (R8A77910)"
Magnus Damm0d918432014-08-25 12:03:43 +090059 select ARCH_RCAR_GEN2
Magnus Damm6d75bc62013-11-06 19:40:01 +090060
Laurent Pinchart0d9fd612013-11-28 17:27:29 +010061comment "Renesas ARM SoCs Board Type"
Magnus Dammcbc60e72013-07-18 05:31:18 +090062
Magnus Damm7d91c462013-11-07 08:31:25 +090063config MACH_GENMAI
64 bool "Genmai board"
65 depends on ARCH_R7S72100
66
Magnus Damm6d75bc62013-11-06 19:40:01 +090067config MACH_KOELSCH
68 bool "Koelsch board"
69 depends on ARCH_R8A7791
Simon Hormanaefe88b2013-12-26 14:30:38 +090070 select MICREL_PHY if SH_ETH
Magnus Dammfd071b62013-07-18 05:31:27 +090071
Laurent Pinchart0ef3cde2013-12-11 15:13:52 +010072config MACH_LAGER
73 bool "Lager board"
74 depends on ARCH_R8A7790
Sergei Shtylyova2a47592013-12-20 02:20:54 +030075 select MICREL_PHY if SH_ETH
Laurent Pinchart0ef3cde2013-12-11 15:13:52 +010076
Simon Horman5016c812014-05-15 20:32:05 +090077config MACH_MARZEN
78 bool "MARZEN board"
79 depends on ARCH_R8A7779
80 select REGULATOR_FIXED_VOLTAGE if REGULATOR
81
Laurent Pinchart0d9fd612013-11-28 17:27:29 +010082comment "Renesas ARM SoCs System Configuration"
Magnus Dammefacfce2013-07-18 05:31:09 +090083endif
84
Laurent Pinchartbf98c1e2013-11-09 13:33:48 +010085if ARCH_SHMOBILE_LEGACY
Magnus Dammc793c1b2010-02-05 11:14:49 +000086
Laurent Pinchart0d9fd612013-11-28 17:27:29 +010087comment "Renesas ARM SoCs System Type"
Magnus Dammc793c1b2010-02-05 11:14:49 +000088
Magnus Damm2b7eda62010-02-05 11:14:58 +000089config ARCH_SH7372
90 bool "SH-Mobile AP4 (SH7372)"
Magnus Damm5784b192014-08-25 12:03:25 +090091 select ARCH_RMOBILE
Paul Mundt6d72ad32010-11-16 16:10:20 +090092 select ARCH_WANT_OPTIONAL_GPIOLIB
Magnus Damma1ee61b2012-07-11 22:54:05 +020093 select ARM_CPU_SUSPEND if PM || CPU_IDLE
Russell Kingb1b3f492012-10-06 17:12:25 +010094 select CPU_V7
95 select SH_CLK_CPG
Geert Uytterhoeven049d2802014-08-20 15:39:22 +020096 select SH_INTC
Magnus Damm2b7eda62010-02-05 11:14:58 +000097
Magnus Damm6d9598e2010-11-17 10:59:31 +000098config ARCH_SH73A0
99 bool "SH-Mobile AG5 (R8A73A00)"
Magnus Damm5784b192014-08-25 12:03:25 +0900100 select ARCH_RMOBILE
Takashi YOSHII1cdf3702010-11-19 16:47:16 +0900101 select ARCH_WANT_OPTIONAL_GPIOLIB
Magnus Damm6d9598e2010-11-17 10:59:31 +0000102 select ARM_GIC
Russell Kingb1b3f492012-10-06 17:12:25 +0100103 select CPU_V7
Guennadi Liakhovetski99f8bd82011-08-30 16:19:13 +0000104 select I2C
Russell Kingb1b3f492012-10-06 17:12:25 +0100105 select SH_CLK_CPG
Geert Uytterhoeven049d2802014-08-20 15:39:22 +0200106 select SH_INTC
Magnus Damm341eb542013-02-26 12:01:09 +0900107 select RENESAS_INTC_IRQPIN
Magnus Damm6d9598e2010-11-17 10:59:31 +0000108
Magnus Dammeccf0602013-03-26 10:34:24 +0900109config ARCH_R8A73A4
110 bool "R-Mobile APE6 (R8A73A40)"
Magnus Damm5784b192014-08-25 12:03:25 +0900111 select ARCH_RMOBILE
Magnus Dammd313d062013-03-26 10:34:52 +0900112 select ARCH_WANT_OPTIONAL_GPIOLIB
Magnus Dammeccf0602013-03-26 10:34:24 +0900113 select ARM_GIC
114 select CPU_V7
Magnus Dammeccf0602013-03-26 10:34:24 +0900115 select SH_CLK_CPG
Magnus Damm984ca292013-03-26 10:34:42 +0900116 select RENESAS_IRQC
Magnus Dammf2aaf662010-02-05 11:15:07 +0000117
Kuninori Morimoto6c01ba42011-11-10 18:45:52 -0800118config ARCH_R8A7740
119 bool "R-Mobile A1 (R8A77400)"
Magnus Damm5784b192014-08-25 12:03:25 +0900120 select ARCH_RMOBILE
Russell Kingb1b3f492012-10-06 17:12:25 +0100121 select ARCH_WANT_OPTIONAL_GPIOLIB
Bastian Hecht0b7d7822013-03-27 14:54:04 +0100122 select ARM_GIC
Kuninori Morimoto6c01ba42011-11-10 18:45:52 -0800123 select CPU_V7
124 select SH_CLK_CPG
Bastian Hecht0b7d7822013-03-27 14:54:04 +0100125 select RENESAS_INTC_IRQPIN
Kuninori Morimoto6c01ba42011-11-10 18:45:52 -0800126
Kuninori Morimotoccb7cc72013-03-21 03:01:36 -0700127config ARCH_R8A7778
Sergei Shtylyov45fa9292013-05-09 00:05:40 +0000128 bool "R-Car M1A (R8A77781)"
Magnus Damm57cc67d2014-08-25 12:03:34 +0900129 select ARCH_RCAR_GEN1
Kuninori Morimoto369b00b2013-04-12 05:37:50 +0000130 select ARCH_WANT_OPTIONAL_GPIOLIB
Kuninori Morimotoccb7cc72013-03-21 03:01:36 -0700131 select CPU_V7
132 select SH_CLK_CPG
133 select ARM_GIC
Magnus Dammc793c1b2010-02-05 11:14:49 +0000134
Magnus Dammf411fad2011-12-14 01:36:12 +0900135config ARCH_R8A7779
136 bool "R-Car H1 (R8A77790)"
Magnus Damm57cc67d2014-08-25 12:03:34 +0900137 select ARCH_RCAR_GEN1
Russell Kingb1b3f492012-10-06 17:12:25 +0100138 select ARCH_WANT_OPTIONAL_GPIOLIB
139 select ARM_GIC
Magnus Dammf411fad2011-12-14 01:36:12 +0900140 select CPU_V7
141 select SH_CLK_CPG
Magnus Dammf411fad2011-12-14 01:36:12 +0900142
Magnus Damm0468b2d2013-03-28 00:49:34 +0900143config ARCH_R8A7790
144 bool "R-Car H2 (R8A77900)"
Magnus Damm0d918432014-08-25 12:03:43 +0900145 select ARCH_RCAR_GEN2
Magnus Damm69e351d2013-03-28 00:50:03 +0900146 select ARCH_WANT_OPTIONAL_GPIOLIB
Magnus Damm0468b2d2013-03-28 00:49:34 +0900147 select ARM_GIC
148 select CPU_V7
Ben Dooks7e429982013-12-12 18:14:21 +0000149 select MIGHT_HAVE_PCI
Magnus Damm0468b2d2013-03-28 00:49:34 +0900150 select SH_CLK_CPG
Magnus Damm4a518562014-02-05 14:36:28 +0900151 select ARCH_DMA_ADDR_T_64BIT if ARM_LPAE
Magnus Dammc793c1b2010-02-05 11:14:49 +0000152
Hisashi Nakamura0d0771ab2013-09-04 12:45:57 +0900153config ARCH_R8A7791
154 bool "R-Car M2 (R8A77910)"
Magnus Damm0d918432014-08-25 12:03:43 +0900155 select ARCH_RCAR_GEN2
Magnus Dammcc3a17d2013-10-08 12:39:20 +0900156 select ARCH_WANT_OPTIONAL_GPIOLIB
Hisashi Nakamura0d0771ab2013-09-04 12:45:57 +0900157 select ARM_GIC
158 select CPU_V7
Ben Dooks7e429982013-12-12 18:14:21 +0000159 select MIGHT_HAVE_PCI
Hisashi Nakamura0d0771ab2013-09-04 12:45:57 +0900160 select SH_CLK_CPG
Magnus Damm4a518562014-02-05 14:36:28 +0900161 select ARCH_DMA_ADDR_T_64BIT if ARM_LPAE
Hisashi Nakamura0d0771ab2013-09-04 12:45:57 +0900162
Magnus Damm0086df22013-09-19 05:11:11 +0900163config ARCH_R7S72100
164 bool "RZ/A1H (R7S72100)"
Magnus Damm091b2582013-10-10 07:57:42 +0900165 select ARCH_WANT_OPTIONAL_GPIOLIB
Magnus Damm0086df22013-09-19 05:11:11 +0900166 select ARM_GIC
167 select CPU_V7
168 select SH_CLK_CPG
Magnus Dammaeb8fb72014-02-20 12:54:46 +0100169 select SYS_SUPPORTS_SH_MTU2
Magnus Damm0086df22013-09-19 05:11:11 +0900170
Laurent Pinchart0d9fd612013-11-28 17:27:29 +0100171comment "Renesas ARM SoCs Board Type"
Magnus Dammc793c1b2010-02-05 11:14:49 +0000172
Magnus Damm78ded162013-03-29 17:00:02 +0900173config MACH_APE6EVM
174 bool "APE6EVM board"
175 depends on ARCH_R8A73A4
Simon Horman9edaca82014-01-07 15:23:47 +0900176 select SMSC_PHY if SMSC911X
Magnus Damm78ded162013-03-29 17:00:02 +0900177 select USE_OF
178
Guennadi Liakhovetski69f36662013-07-08 18:04:57 +0200179config MACH_APE6EVM_REFERENCE
180 bool "APE6EVM board - Reference Device Tree Implementation"
181 depends on ARCH_R8A73A4
Simon Horman9edaca82014-01-07 15:23:47 +0900182 select SMSC_PHY if SMSC911X
Guennadi Liakhovetski69f36662013-07-08 18:04:57 +0200183 select USE_OF
184 ---help---
185 Use reference implementation of APE6EVM board support
186 which makes a greater use of device tree at the expense
187 of not supporting a number of devices.
188
189 This is intended to aid developers
190
Kuninori Morimoto920adc72010-11-29 02:21:21 +0000191config MACH_MACKEREL
192 bool "mackerel board"
193 depends on ARCH_SH7372
Takashi YOSHII3256c7892010-11-19 16:49:38 +0900194 select ARCH_REQUIRE_GPIOLIB
Guennadi Liakhovetski34767f82012-07-05 15:17:42 +0200195 select REGULATOR_FIXED_VOLTAGE if REGULATOR
Simon Hormanc5c2a292014-01-07 15:23:47 +0900196 select SMSC_PHY if SMSC911X
Russell Kingb1b3f492012-10-06 17:12:25 +0100197 select SND_SOC_AK4642 if SND_SIMPLE_CARD
Nobuhiro Iwamatsu0ce53cd2012-10-24 14:48:00 +0900198 select USE_OF
Magnus Damm6d9598e2010-11-17 10:59:31 +0000199
Kuninori Morimoto4d22e562012-04-06 01:28:59 -0700200config MACH_ARMADILLO800EVA
201 bool "Armadillo-800 EVA board"
202 depends on ARCH_R8A7740
203 select ARCH_REQUIRE_GPIOLIB
Guennadi Liakhovetski34767f82012-07-05 15:17:42 +0200204 select REGULATOR_FIXED_VOLTAGE if REGULATOR
Simon Horman6a517b12014-01-07 15:55:49 +0900205 select SMSC_PHY if SH_ETH
Kuninori Morimoto5389bf72012-06-25 03:32:50 -0700206 select SND_SOC_WM8978 if SND_SIMPLE_CARD
Russell Kingb1b3f492012-10-06 17:12:25 +0100207 select USE_OF
Kuninori Morimoto4d22e562012-04-06 01:28:59 -0700208
Bastian Hecht76b92b42013-04-17 12:34:06 +0200209config MACH_ARMADILLO800EVA_REFERENCE
210 bool "Armadillo-800 EVA board - Reference Device Tree Implementation"
211 depends on ARCH_R8A7740
212 select ARCH_REQUIRE_GPIOLIB
213 select REGULATOR_FIXED_VOLTAGE if REGULATOR
Simon Horman6a517b12014-01-07 15:55:49 +0900214 select SMSC_PHY if SH_ETH
Bastian Hecht76b92b42013-04-17 12:34:06 +0200215 select SND_SOC_WM8978 if SND_SIMPLE_CARD
216 select USE_OF
217 ---help---
Geert Uytterhoeven1668a7a2014-03-18 10:39:23 +0100218 Use reference implementation of Armadillo800 EVA board support
219 which makes greater use of device tree at the expense
Bastian Hecht76b92b42013-04-17 12:34:06 +0200220 of not supporting a number of devices.
221
222 This is intended to aid developers
223
Kuninori Morimoto53e42c22013-03-21 03:03:38 -0700224config MACH_BOCKW
225 bool "BOCK-W platform"
226 depends on ARCH_R8A7778
227 select ARCH_REQUIRE_GPIOLIB
Kuninori Morimotoc9996e52013-07-09 02:07:13 -0700228 select REGULATOR_FIXED_VOLTAGE if REGULATOR
Kuninori Morimoto688e6a62013-08-26 01:52:35 -0700229 select SND_SOC_AK4554 if SND_SIMPLE_CARD
230 select SND_SOC_AK4642 if SND_SIMPLE_CARD
Simon Horman2b2fd272014-01-07 16:40:32 +0900231 select USE_OF
Kuninori Morimoto53e42c22013-03-21 03:03:38 -0700232
Kuninori Morimotocfa66a82013-07-24 00:36:51 -0700233config MACH_BOCKW_REFERENCE
234 bool "BOCK-W - Reference Device Tree Implementation"
235 depends on ARCH_R8A7778
236 select ARCH_REQUIRE_GPIOLIB
Kuninori Morimotocfa66a82013-07-24 00:36:51 -0700237 select REGULATOR_FIXED_VOLTAGE if REGULATOR
238 select USE_OF
239 ---help---
240 Use reference implementation of BockW 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
Magnus Damma4ed4122013-09-19 05:11:29 +0900246config MACH_GENMAI
247 bool "Genmai board"
248 depends on ARCH_R7S72100
249 select USE_OF
250
Magnus Dammf411fad2011-12-14 01:36:12 +0900251config MACH_MARZEN
252 bool "MARZEN board"
253 depends on ARCH_R8A7779
Magnus Damm19c43fc2011-12-14 01:36:22 +0900254 select ARCH_REQUIRE_GPIOLIB
Guennadi Liakhovetski34767f82012-07-05 15:17:42 +0200255 select REGULATOR_FIXED_VOLTAGE if REGULATOR
Magnus Damm7ebbb4a2013-07-24 16:30:42 +0900256 select USE_OF
Magnus Dammf411fad2011-12-14 01:36:12 +0900257
Magnus Damm3cc828f2013-03-29 17:49:37 +0900258config MACH_LAGER
259 bool "Lager board"
260 depends on ARCH_R8A7790
261 select USE_OF
Sergei Shtylyova2a47592013-12-20 02:20:54 +0300262 select MICREL_PHY if SH_ETH
Kuninori Morimotod58922c2014-01-13 18:25:50 -0800263 select SND_SOC_AK4642 if SND_SIMPLE_CARD
Magnus Damm3cc828f2013-03-29 17:49:37 +0900264
Hisashi Nakamura1f52c652013-09-04 12:46:49 +0900265config MACH_KOELSCH
266 bool "Koelsch board"
267 depends on ARCH_R8A7791
268 select USE_OF
Simon Horman89671362013-12-12 21:35:43 +0900269 select MICREL_PHY if SH_ETH
Hisashi Nakamura1f52c652013-09-04 12:46:49 +0900270
Kuninori Morimoto9b93e242012-04-10 20:57:31 -0700271config MACH_KZM9G
272 bool "KZM-A9-GT board"
273 depends on ARCH_SH73A0
274 select ARCH_REQUIRE_GPIOLIB
Guennadi Liakhovetski34767f82012-07-05 15:17:42 +0200275 select REGULATOR_FIXED_VOLTAGE if REGULATOR
Russell Kingb1b3f492012-10-06 17:12:25 +0100276 select SND_SOC_AK4642 if SND_SIMPLE_CARD
277 select USE_OF
Kuninori Morimoto9b93e242012-04-10 20:57:31 -0700278
Simon Hormanb8b82b22012-11-22 00:34:25 +0900279config MACH_KZM9G_REFERENCE
280 bool "KZM-A9-GT board - Reference Device Tree Implementation"
Guennadi Liakhovetskif33d1c32013-01-15 18:23:36 +0100281 depends on ARCH_SH73A0
282 select ARCH_REQUIRE_GPIOLIB
283 select REGULATOR_FIXED_VOLTAGE if REGULATOR
284 select SND_SOC_AK4642 if SND_SIMPLE_CARD
285 select USE_OF
Simon Hormanb8b82b22012-11-22 00:34:25 +0900286 ---help---
287 Use reference implementation of KZM-A9-GT board support
288 which makes as greater use of device tree at the expense
289 of not supporting a number of devices.
290
291 This is intended to aid developers
292
Laurent Pinchart0d9fd612013-11-28 17:27:29 +0100293comment "Renesas ARM SoCs System Configuration"
Magnus Dammc793c1b2010-02-05 11:14:49 +0000294
Rob Herring7f1e7632012-01-17 11:20:23 -0600295config CPU_HAS_INTEVT
296 bool
297 default y
298
Magnus Dammfd071b62013-07-18 05:31:27 +0900299config SH_CLK_CPG
300 bool
301
302source "drivers/sh/Kconfig"
303
304endif
305
Laurent Pinchartbf98c1e2013-11-09 13:33:48 +0100306if ARCH_SHMOBILE
Magnus Dammfd071b62013-07-18 05:31:27 +0900307
Magnus Dammc793c1b2010-02-05 11:14:49 +0000308menu "Timer and clock configuration"
309
Magnus Damm5da3e712010-07-29 14:03:04 +0100310config SHMOBILE_TIMER_HZ
311 int "Kernel HZ (jiffies per second)"
312 range 32 1024
313 default "128"
314 help
315 Allows the configuration of the timer frequency. It is customary
316 to have the timer interrupt run at 1000 Hz or 100 Hz, but in the
317 case of low timer frequencies other values may be more suitable.
Laurent Pinchart0d9fd612013-11-28 17:27:29 +0100318 Renesas ARM SoC systems using a 32768 Hz RCLK for clock events may
319 want to select a HZ value such as 128 that can evenly divide RCLK.
Magnus Damm5da3e712010-07-29 14:03:04 +0100320 A HZ value that does not divide evenly may cause timer drift.
321
Magnus Dammc793c1b2010-02-05 11:14:49 +0000322endmenu
323
Magnus Dammc793c1b2010-02-05 11:14:49 +0000324endif