blob: b0a9e1a7955a20f1cbf06a0c237f5d38952f8905 [file] [log] [blame]
Laurent Pinchartbf98c1e2013-11-09 13:33:48 +01001config ARCH_SHMOBILE
2 bool
Laurent Pinchart37947052014-10-23 17:38:31 +03003 select ZONE_DMA if ARM_LPAE
Laurent Pinchartbf98c1e2013-11-09 13:33:48 +01004
Magnus Damm1a950ca2014-08-25 12:03:52 +09005config PM_RCAR
6 bool
7
Magnus Dammabebbc42014-08-25 12:04:01 +09008config PM_RMOBILE
9 bool
10
Magnus Damm57cc67d2014-08-25 12:03:34 +090011config ARCH_RCAR_GEN1
12 bool
Magnus Damm1a950ca2014-08-25 12:03:52 +090013 select PM_RCAR if PM || SMP
Magnus Damm57cc67d2014-08-25 12:03:34 +090014 select RENESAS_INTC_IRQPIN
15 select SYS_SUPPORTS_SH_TMU
16
Magnus Damm0d918432014-08-25 12:03:43 +090017config ARCH_RCAR_GEN2
18 bool
Magnus Damm1a950ca2014-08-25 12:03:52 +090019 select PM_RCAR if PM || SMP
Magnus Damm0d918432014-08-25 12:03:43 +090020 select RENESAS_IRQC
21 select SYS_SUPPORTS_SH_CMT
Phil Edworthy950a3f02014-11-04 17:38:28 +000022 select PCI_DOMAINS if PCI
Magnus Damm0d918432014-08-25 12:03:43 +090023
Magnus Damm5784b192014-08-25 12:03:25 +090024config ARCH_RMOBILE
25 bool
Magnus Damm46bff9d2014-08-25 12:36:44 +090026 select PM_RMOBILE if PM && !ARCH_SHMOBILE_MULTI
Magnus Damm5784b192014-08-25 12:03:25 +090027 select SYS_SUPPORTS_SH_CMT
28 select SYS_SUPPORTS_SH_TMU
29
Rob Herring21278ae2014-06-10 09:06:10 -050030menuconfig ARCH_SHMOBILE_MULTI
Laurent Pinchart0d9fd612013-11-28 17:27:29 +010031 bool "Renesas ARM SoCs" if ARCH_MULTI_V7
Magnus Dammefacfce2013-07-18 05:31:09 +090032 depends on MMU
Laurent Pinchartbf98c1e2013-11-09 13:33:48 +010033 select ARCH_SHMOBILE
Magnus Dammefacfce2013-07-18 05:31:09 +090034 select HAVE_ARM_SCU if SMP
Rob Herring8b7dfa72014-02-01 16:35:44 -060035 select HAVE_ARM_TWD if SMP
Magnus Dammefacfce2013-07-18 05:31:09 +090036 select ARM_GIC
Magnus Damm4a518562014-02-05 14:36:28 +090037 select ARCH_DMA_ADDR_T_64BIT if ARM_LPAE
Uwe Kleine-Königce816fa2014-04-07 15:39:19 -070038 select NO_IOPORT_MAP
Magnus Dammefacfce2013-07-18 05:31:09 +090039 select PINCTRL
40 select ARCH_REQUIRE_GPIOLIB
Benoit Cousson6596e972014-06-05 12:49:44 +090041 select ARCH_HAS_OPP
Magnus Dammefacfce2013-07-18 05:31:09 +090042
43if ARCH_SHMOBILE_MULTI
44
Rob Herring21278ae2014-06-10 09:06:10 -050045#comment "Renesas ARM SoCs System Type"
Magnus Dammefacfce2013-07-18 05:31:09 +090046
Magnus Dammcbc60e72013-07-18 05:31:18 +090047config ARCH_EMEV2
48 bool "Emma Mobile EV2"
Magnus Dammaeb8fb72014-02-20 12:54:46 +010049 select SYS_SUPPORTS_EM_STI
Magnus Dammcbc60e72013-07-18 05:31:18 +090050
Magnus Damm7d91c462013-11-07 08:31:25 +090051config ARCH_R7S72100
52 bool "RZ/A1H (R7S72100)"
Magnus Dammaeb8fb72014-02-20 12:54:46 +010053 select SYS_SUPPORTS_SH_MTU2
Magnus Damm7d91c462013-11-07 08:31:25 +090054
Magnus Dammc41215b2014-08-25 12:36:53 +090055config ARCH_R8A7740
56 bool "R-Mobile A1 (R8A77400)"
57 select ARCH_RMOBILE
58 select RENESAS_INTC_IRQPIN
59
Simon Horman5016c812014-05-15 20:32:05 +090060config ARCH_R8A7779
61 bool "R-Car H1 (R8A77790)"
Magnus Damm57cc67d2014-08-25 12:03:34 +090062 select ARCH_RCAR_GEN1
Simon Horman5016c812014-05-15 20:32:05 +090063
Laurent Pinchart0ef3cde2013-12-11 15:13:52 +010064config ARCH_R8A7790
65 bool "R-Car H2 (R8A77900)"
Magnus Damm0d918432014-08-25 12:03:43 +090066 select ARCH_RCAR_GEN2
Laurent Pinchart0ef3cde2013-12-11 15:13:52 +010067
Magnus Damm6d75bc62013-11-06 19:40:01 +090068config ARCH_R8A7791
Geert Uytterhoeven13298fb2014-08-28 10:28:09 +020069 bool "R-Car M2-W (R8A77910)"
Magnus Damm0d918432014-08-25 12:03:43 +090070 select ARCH_RCAR_GEN2
Magnus Damm6d75bc62013-11-06 19:40:01 +090071
Ulrich Hecht5923abb22014-09-04 16:02:28 +020072config ARCH_R8A7794
73 bool "R-Car E2 (R8A77940)"
74 select ARCH_RCAR_GEN2
Magnus Dammcbc60e72013-07-18 05:31:18 +090075
Magnus Dammcbc60e72013-07-18 05:31:18 +090076comment "Renesas ARM SoCs Board Type"
Magnus Damm7d91c462013-11-07 08:31:25 +090077
Magnus Damm6d75bc62013-11-06 19:40:01 +090078config MACH_KOELSCH
79 bool "Koelsch board"
80 depends on ARCH_R8A7791
Simon Hormanaefe88b2013-12-26 14:30:38 +090081 select MICREL_PHY if SH_ETH
Magnus Dammfd071b62013-07-18 05:31:27 +090082
Laurent Pinchart0ef3cde2013-12-11 15:13:52 +010083config MACH_LAGER
84 bool "Lager board"
85 depends on ARCH_R8A7790
Sergei Shtylyova2a47592013-12-20 02:20:54 +030086 select MICREL_PHY if SH_ETH
Laurent Pinchart0ef3cde2013-12-11 15:13:52 +010087
Simon Horman5016c812014-05-15 20:32:05 +090088config MACH_MARZEN
89 bool "MARZEN board"
90 depends on ARCH_R8A7779
91 select REGULATOR_FIXED_VOLTAGE if REGULATOR
92
Laurent Pinchart0d9fd612013-11-28 17:27:29 +010093comment "Renesas ARM SoCs System Configuration"
Magnus Dammefacfce2013-07-18 05:31:09 +090094endif
95
Laurent Pinchartbf98c1e2013-11-09 13:33:48 +010096if ARCH_SHMOBILE_LEGACY
Magnus Dammc793c1b2010-02-05 11:14:49 +000097
Laurent Pinchart0d9fd612013-11-28 17:27:29 +010098comment "Renesas ARM SoCs System Type"
Magnus Dammc793c1b2010-02-05 11:14:49 +000099
Magnus Damm2b7eda62010-02-05 11:14:58 +0000100config ARCH_SH7372
101 bool "SH-Mobile AP4 (SH7372)"
Magnus Damm5784b192014-08-25 12:03:25 +0900102 select ARCH_RMOBILE
Paul Mundt6d72ad32010-11-16 16:10:20 +0900103 select ARCH_WANT_OPTIONAL_GPIOLIB
Magnus Damma1ee61b2012-07-11 22:54:05 +0200104 select ARM_CPU_SUSPEND if PM || CPU_IDLE
Geert Uytterhoeven049d2802014-08-20 15:39:22 +0200105 select SH_INTC
Magnus Damm2b7eda62010-02-05 11:14:58 +0000106
Magnus Damm6d9598e2010-11-17 10:59:31 +0000107config ARCH_SH73A0
108 bool "SH-Mobile AG5 (R8A73A00)"
Magnus Damm5784b192014-08-25 12:03:25 +0900109 select ARCH_RMOBILE
Takashi YOSHII1cdf3702010-11-19 16:47:16 +0900110 select ARCH_WANT_OPTIONAL_GPIOLIB
Magnus Damm6d9598e2010-11-17 10:59:31 +0000111 select ARM_GIC
Guennadi Liakhovetski99f8bd82011-08-30 16:19:13 +0000112 select I2C
Geert Uytterhoeven049d2802014-08-20 15:39:22 +0200113 select SH_INTC
Magnus Damm341eb542013-02-26 12:01:09 +0900114 select RENESAS_INTC_IRQPIN
Magnus Damm6d9598e2010-11-17 10:59:31 +0000115
Magnus Dammeccf0602013-03-26 10:34:24 +0900116config ARCH_R8A73A4
117 bool "R-Mobile APE6 (R8A73A40)"
Magnus Damm5784b192014-08-25 12:03:25 +0900118 select ARCH_RMOBILE
Magnus Dammd313d062013-03-26 10:34:52 +0900119 select ARCH_WANT_OPTIONAL_GPIOLIB
Magnus Dammeccf0602013-03-26 10:34:24 +0900120 select ARM_GIC
Magnus Damm984ca292013-03-26 10:34:42 +0900121 select RENESAS_IRQC
Magnus Dammf2aaf662010-02-05 11:15:07 +0000122
Kuninori Morimoto6c01ba42011-11-10 18:45:52 -0800123config ARCH_R8A7740
124 bool "R-Mobile A1 (R8A77400)"
Magnus Damm5784b192014-08-25 12:03:25 +0900125 select ARCH_RMOBILE
Russell Kingb1b3f492012-10-06 17:12:25 +0100126 select ARCH_WANT_OPTIONAL_GPIOLIB
Bastian Hecht0b7d7822013-03-27 14:54:04 +0100127 select ARM_GIC
Bastian Hecht0b7d7822013-03-27 14:54:04 +0100128 select RENESAS_INTC_IRQPIN
Kuninori Morimoto6c01ba42011-11-10 18:45:52 -0800129
Kuninori Morimotoccb7cc72013-03-21 03:01:36 -0700130config ARCH_R8A7778
Sergei Shtylyov45fa9292013-05-09 00:05:40 +0000131 bool "R-Car M1A (R8A77781)"
Magnus Damm57cc67d2014-08-25 12:03:34 +0900132 select ARCH_RCAR_GEN1
Kuninori Morimoto369b00b2013-04-12 05:37:50 +0000133 select ARCH_WANT_OPTIONAL_GPIOLIB
Kuninori Morimotoccb7cc72013-03-21 03:01:36 -0700134 select ARM_GIC
Magnus Dammc793c1b2010-02-05 11:14:49 +0000135
Magnus Dammf411fad2011-12-14 01:36:12 +0900136config ARCH_R8A7779
137 bool "R-Car H1 (R8A77790)"
Magnus Damm57cc67d2014-08-25 12:03:34 +0900138 select ARCH_RCAR_GEN1
Russell Kingb1b3f492012-10-06 17:12:25 +0100139 select ARCH_WANT_OPTIONAL_GPIOLIB
140 select ARM_GIC
Magnus Dammf411fad2011-12-14 01:36:12 +0900141
Magnus Damm0468b2d2013-03-28 00:49:34 +0900142config ARCH_R8A7790
143 bool "R-Car H2 (R8A77900)"
Magnus Damm0d918432014-08-25 12:03:43 +0900144 select ARCH_RCAR_GEN2
Magnus Damm69e351d2013-03-28 00:50:03 +0900145 select ARCH_WANT_OPTIONAL_GPIOLIB
Magnus Damm0468b2d2013-03-28 00:49:34 +0900146 select ARM_GIC
Ben Dooks7e429982013-12-12 18:14:21 +0000147 select MIGHT_HAVE_PCI
Magnus Damm4a518562014-02-05 14:36:28 +0900148 select ARCH_DMA_ADDR_T_64BIT if ARM_LPAE
Magnus Dammc793c1b2010-02-05 11:14:49 +0000149
Hisashi Nakamura0d0771ab2013-09-04 12:45:57 +0900150config ARCH_R8A7791
Geert Uytterhoeven13298fb2014-08-28 10:28:09 +0200151 bool "R-Car M2-W (R8A77910)"
Magnus Damm0d918432014-08-25 12:03:43 +0900152 select ARCH_RCAR_GEN2
Magnus Dammcc3a17d2013-10-08 12:39:20 +0900153 select ARCH_WANT_OPTIONAL_GPIOLIB
Hisashi Nakamura0d0771ab2013-09-04 12:45:57 +0900154 select ARM_GIC
Ben Dooks7e429982013-12-12 18:14:21 +0000155 select MIGHT_HAVE_PCI
Magnus Damm4a518562014-02-05 14:36:28 +0900156 select ARCH_DMA_ADDR_T_64BIT if ARM_LPAE
Hisashi Nakamura0d0771ab2013-09-04 12:45:57 +0900157
Laurent Pinchart0d9fd612013-11-28 17:27:29 +0100158comment "Renesas ARM SoCs Board Type"
Magnus Dammc793c1b2010-02-05 11:14:49 +0000159
Magnus Damm78ded162013-03-29 17:00:02 +0900160config MACH_APE6EVM
161 bool "APE6EVM board"
162 depends on ARCH_R8A73A4
Simon Horman9edaca82014-01-07 15:23:47 +0900163 select SMSC_PHY if SMSC911X
Magnus Damm78ded162013-03-29 17:00:02 +0900164 select USE_OF
165
Guennadi Liakhovetski69f36662013-07-08 18:04:57 +0200166config MACH_APE6EVM_REFERENCE
167 bool "APE6EVM board - Reference Device Tree Implementation"
168 depends on ARCH_R8A73A4
Simon Horman9edaca82014-01-07 15:23:47 +0900169 select SMSC_PHY if SMSC911X
Guennadi Liakhovetski69f36662013-07-08 18:04:57 +0200170 select USE_OF
171 ---help---
172 Use reference implementation of APE6EVM board support
173 which makes a greater use of device tree at the expense
174 of not supporting a number of devices.
175
176 This is intended to aid developers
177
Kuninori Morimoto920adc72010-11-29 02:21:21 +0000178config MACH_MACKEREL
179 bool "mackerel board"
180 depends on ARCH_SH7372
Takashi YOSHII3256c7892010-11-19 16:49:38 +0900181 select ARCH_REQUIRE_GPIOLIB
Guennadi Liakhovetski34767f82012-07-05 15:17:42 +0200182 select REGULATOR_FIXED_VOLTAGE if REGULATOR
Simon Hormanc5c2a292014-01-07 15:23:47 +0900183 select SMSC_PHY if SMSC911X
Russell Kingb1b3f492012-10-06 17:12:25 +0100184 select SND_SOC_AK4642 if SND_SIMPLE_CARD
Nobuhiro Iwamatsu0ce53cd2012-10-24 14:48:00 +0900185 select USE_OF
Magnus Damm6d9598e2010-11-17 10:59:31 +0000186
Kuninori Morimoto4d22e562012-04-06 01:28:59 -0700187config MACH_ARMADILLO800EVA
188 bool "Armadillo-800 EVA board"
189 depends on ARCH_R8A7740
190 select ARCH_REQUIRE_GPIOLIB
Guennadi Liakhovetski34767f82012-07-05 15:17:42 +0200191 select REGULATOR_FIXED_VOLTAGE if REGULATOR
Simon Horman6a517b12014-01-07 15:55:49 +0900192 select SMSC_PHY if SH_ETH
Kuninori Morimoto5389bf72012-06-25 03:32:50 -0700193 select SND_SOC_WM8978 if SND_SIMPLE_CARD
Russell Kingb1b3f492012-10-06 17:12:25 +0100194 select USE_OF
Kuninori Morimoto4d22e562012-04-06 01:28:59 -0700195
Kuninori Morimoto53e42c22013-03-21 03:03:38 -0700196config MACH_BOCKW
197 bool "BOCK-W platform"
198 depends on ARCH_R8A7778
199 select ARCH_REQUIRE_GPIOLIB
Kuninori Morimotoc9996e52013-07-09 02:07:13 -0700200 select REGULATOR_FIXED_VOLTAGE if REGULATOR
Kuninori Morimoto688e6a62013-08-26 01:52:35 -0700201 select SND_SOC_AK4554 if SND_SIMPLE_CARD
202 select SND_SOC_AK4642 if SND_SIMPLE_CARD
Simon Horman2b2fd272014-01-07 16:40:32 +0900203 select USE_OF
Kuninori Morimoto53e42c22013-03-21 03:03:38 -0700204
Kuninori Morimotocfa66a82013-07-24 00:36:51 -0700205config MACH_BOCKW_REFERENCE
206 bool "BOCK-W - Reference Device Tree Implementation"
207 depends on ARCH_R8A7778
208 select ARCH_REQUIRE_GPIOLIB
Kuninori Morimotocfa66a82013-07-24 00:36:51 -0700209 select REGULATOR_FIXED_VOLTAGE if REGULATOR
210 select USE_OF
211 ---help---
212 Use reference implementation of BockW board support
213 which makes use of device tree at the expense
214 of not supporting a number of devices.
215
216 This is intended to aid developers
217
Magnus Dammf411fad2011-12-14 01:36:12 +0900218config MACH_MARZEN
219 bool "MARZEN board"
220 depends on ARCH_R8A7779
Magnus Damm19c43fc2011-12-14 01:36:22 +0900221 select ARCH_REQUIRE_GPIOLIB
Guennadi Liakhovetski34767f82012-07-05 15:17:42 +0200222 select REGULATOR_FIXED_VOLTAGE if REGULATOR
Magnus Damm7ebbb4a2013-07-24 16:30:42 +0900223 select USE_OF
Magnus Dammf411fad2011-12-14 01:36:12 +0900224
Magnus Damm3cc828f2013-03-29 17:49:37 +0900225config MACH_LAGER
226 bool "Lager board"
227 depends on ARCH_R8A7790
228 select USE_OF
Sergei Shtylyova2a47592013-12-20 02:20:54 +0300229 select MICREL_PHY if SH_ETH
Kuninori Morimotod58922c2014-01-13 18:25:50 -0800230 select SND_SOC_AK4642 if SND_SIMPLE_CARD
Magnus Damm3cc828f2013-03-29 17:49:37 +0900231
Hisashi Nakamura1f52c652013-09-04 12:46:49 +0900232config MACH_KOELSCH
233 bool "Koelsch board"
234 depends on ARCH_R8A7791
235 select USE_OF
Simon Horman89671362013-12-12 21:35:43 +0900236 select MICREL_PHY if SH_ETH
Hisashi Nakamura1f52c652013-09-04 12:46:49 +0900237
Kuninori Morimoto9b93e242012-04-10 20:57:31 -0700238config MACH_KZM9G
239 bool "KZM-A9-GT board"
240 depends on ARCH_SH73A0
241 select ARCH_REQUIRE_GPIOLIB
Guennadi Liakhovetski34767f82012-07-05 15:17:42 +0200242 select REGULATOR_FIXED_VOLTAGE if REGULATOR
Russell Kingb1b3f492012-10-06 17:12:25 +0100243 select SND_SOC_AK4642 if SND_SIMPLE_CARD
244 select USE_OF
Kuninori Morimoto9b93e242012-04-10 20:57:31 -0700245
Simon Hormanb8b82b22012-11-22 00:34:25 +0900246config MACH_KZM9G_REFERENCE
247 bool "KZM-A9-GT board - Reference Device Tree Implementation"
Guennadi Liakhovetskif33d1c32013-01-15 18:23:36 +0100248 depends on ARCH_SH73A0
249 select ARCH_REQUIRE_GPIOLIB
250 select REGULATOR_FIXED_VOLTAGE if REGULATOR
251 select SND_SOC_AK4642 if SND_SIMPLE_CARD
252 select USE_OF
Simon Hormanb8b82b22012-11-22 00:34:25 +0900253 ---help---
254 Use reference implementation of KZM-A9-GT board support
255 which makes as greater use of device tree at the expense
256 of not supporting a number of devices.
257
258 This is intended to aid developers
259
Laurent Pinchart0d9fd612013-11-28 17:27:29 +0100260comment "Renesas ARM SoCs System Configuration"
Magnus Dammc793c1b2010-02-05 11:14:49 +0000261
Rob Herring7f1e7632012-01-17 11:20:23 -0600262config CPU_HAS_INTEVT
263 bool
264 default y
265
Magnus Dammfd071b62013-07-18 05:31:27 +0900266config SH_CLK_CPG
267 bool
268
269source "drivers/sh/Kconfig"
270
271endif
272
Laurent Pinchartbf98c1e2013-11-09 13:33:48 +0100273if ARCH_SHMOBILE
Magnus Dammfd071b62013-07-18 05:31:27 +0900274
Magnus Dammc793c1b2010-02-05 11:14:49 +0000275menu "Timer and clock configuration"
276
Magnus Damm5da3e712010-07-29 14:03:04 +0100277config SHMOBILE_TIMER_HZ
278 int "Kernel HZ (jiffies per second)"
279 range 32 1024
280 default "128"
281 help
282 Allows the configuration of the timer frequency. It is customary
283 to have the timer interrupt run at 1000 Hz or 100 Hz, but in the
284 case of low timer frequencies other values may be more suitable.
Laurent Pinchart0d9fd612013-11-28 17:27:29 +0100285 Renesas ARM SoC systems using a 32768 Hz RCLK for clock events may
286 want to select a HZ value such as 128 that can evenly divide RCLK.
Magnus Damm5da3e712010-07-29 14:03:04 +0100287 A HZ value that does not divide evenly may cause timer drift.
288
Magnus Dammc793c1b2010-02-05 11:14:49 +0000289endmenu
290
Magnus Dammc793c1b2010-02-05 11:14:49 +0000291endif