blob: 2f36c85eec4b201e4ab1016a2c9501a433758e65 [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
Geert Uytterhoeven2173fc72014-12-03 14:41:45 +010010 select PM_GENERIC_DOMAINS
Magnus Dammabebbc42014-08-25 12:04:01 +090011
Magnus Damm57cc67d2014-08-25 12:03:34 +090012config ARCH_RCAR_GEN1
13 bool
Magnus Damm1a950ca2014-08-25 12:03:52 +090014 select PM_RCAR if PM || SMP
Magnus Damm57cc67d2014-08-25 12:03:34 +090015 select RENESAS_INTC_IRQPIN
16 select SYS_SUPPORTS_SH_TMU
17
Magnus Damm0d918432014-08-25 12:03:43 +090018config ARCH_RCAR_GEN2
19 bool
Magnus Damm1a950ca2014-08-25 12:03:52 +090020 select PM_RCAR if PM || SMP
Magnus Damm0d918432014-08-25 12:03:43 +090021 select RENESAS_IRQC
22 select SYS_SUPPORTS_SH_CMT
Phil Edworthy950a3f02014-11-04 17:38:28 +000023 select PCI_DOMAINS if PCI
Magnus Damm0d918432014-08-25 12:03:43 +090024
Magnus Damm5784b192014-08-25 12:03:25 +090025config ARCH_RMOBILE
26 bool
Geert Uytterhoeven2173fc72014-12-03 14:41:45 +010027 select PM_RMOBILE if PM
Magnus Damm5784b192014-08-25 12:03:25 +090028 select SYS_SUPPORTS_SH_CMT
29 select SYS_SUPPORTS_SH_TMU
30
Rob Herring21278ae2014-06-10 09:06:10 -050031menuconfig ARCH_SHMOBILE_MULTI
Laurent Pinchart0d9fd612013-11-28 17:27:29 +010032 bool "Renesas ARM SoCs" if ARCH_MULTI_V7
Magnus Dammefacfce2013-07-18 05:31:09 +090033 depends on MMU
Laurent Pinchartbf98c1e2013-11-09 13:33:48 +010034 select ARCH_SHMOBILE
Magnus Dammefacfce2013-07-18 05:31:09 +090035 select HAVE_ARM_SCU if SMP
Rob Herring8b7dfa72014-02-01 16:35:44 -060036 select HAVE_ARM_TWD if SMP
Magnus Dammefacfce2013-07-18 05:31:09 +090037 select ARM_GIC
Magnus Damm4a518562014-02-05 14:36:28 +090038 select ARCH_DMA_ADDR_T_64BIT if ARM_LPAE
Uwe Kleine-Königce816fa2014-04-07 15:39:19 -070039 select NO_IOPORT_MAP
Magnus Dammefacfce2013-07-18 05:31:09 +090040 select PINCTRL
41 select ARCH_REQUIRE_GPIOLIB
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
Ulrich Hecht39695882014-12-17 17:18:17 +010055config ARCH_R8A73A4
56 bool "R-Mobile APE6 (R8A73A40)"
57 select ARCH_RMOBILE
58 select RENESAS_IRQC
59
Magnus Dammc41215b2014-08-25 12:36:53 +090060config ARCH_R8A7740
61 bool "R-Mobile A1 (R8A77400)"
62 select ARCH_RMOBILE
63 select RENESAS_INTC_IRQPIN
64
Simon Horman5016c812014-05-15 20:32:05 +090065config ARCH_R8A7779
66 bool "R-Car H1 (R8A77790)"
Magnus Damm57cc67d2014-08-25 12:03:34 +090067 select ARCH_RCAR_GEN1
Simon Horman5016c812014-05-15 20:32:05 +090068
Laurent Pinchart0ef3cde2013-12-11 15:13:52 +010069config ARCH_R8A7790
70 bool "R-Car H2 (R8A77900)"
Magnus Damm0d918432014-08-25 12:03:43 +090071 select ARCH_RCAR_GEN2
Laurent Pinchart0ef3cde2013-12-11 15:13:52 +010072
Magnus Damm6d75bc62013-11-06 19:40:01 +090073config ARCH_R8A7791
Geert Uytterhoeven13298fb2014-08-28 10:28:09 +020074 bool "R-Car M2-W (R8A77910)"
Magnus Damm0d918432014-08-25 12:03:43 +090075 select ARCH_RCAR_GEN2
Magnus Damm6d75bc62013-11-06 19:40:01 +090076
Ulrich Hecht5923abb22014-09-04 16:02:28 +020077config ARCH_R8A7794
78 bool "R-Car E2 (R8A77940)"
79 select ARCH_RCAR_GEN2
Magnus Dammcbc60e72013-07-18 05:31:18 +090080
Magnus Dammcbc60e72013-07-18 05:31:18 +090081comment "Renesas ARM SoCs Board Type"
Magnus Damm7d91c462013-11-07 08:31:25 +090082
Simon Horman5016c812014-05-15 20:32:05 +090083config MACH_MARZEN
84 bool "MARZEN board"
85 depends on ARCH_R8A7779
86 select REGULATOR_FIXED_VOLTAGE if REGULATOR
87
Laurent Pinchart0d9fd612013-11-28 17:27:29 +010088comment "Renesas ARM SoCs System Configuration"
Magnus Dammefacfce2013-07-18 05:31:09 +090089endif
90
Laurent Pinchartbf98c1e2013-11-09 13:33:48 +010091if ARCH_SHMOBILE_LEGACY
Magnus Dammc793c1b2010-02-05 11:14:49 +000092
Laurent Pinchart0d9fd612013-11-28 17:27:29 +010093comment "Renesas ARM SoCs System Type"
Magnus Dammc793c1b2010-02-05 11:14:49 +000094
Magnus Damm2b7eda62010-02-05 11:14:58 +000095config ARCH_SH7372
96 bool "SH-Mobile AP4 (SH7372)"
Magnus Damm5784b192014-08-25 12:03:25 +090097 select ARCH_RMOBILE
Paul Mundt6d72ad32010-11-16 16:10:20 +090098 select ARCH_WANT_OPTIONAL_GPIOLIB
Magnus Damma1ee61b2012-07-11 22:54:05 +020099 select ARM_CPU_SUSPEND if PM || CPU_IDLE
Geert Uytterhoeven049d2802014-08-20 15:39:22 +0200100 select SH_INTC
Magnus Damm2b7eda62010-02-05 11:14:58 +0000101
Magnus Damm6d9598e2010-11-17 10:59:31 +0000102config ARCH_SH73A0
103 bool "SH-Mobile AG5 (R8A73A00)"
Magnus Damm5784b192014-08-25 12:03:25 +0900104 select ARCH_RMOBILE
Takashi YOSHII1cdf3702010-11-19 16:47:16 +0900105 select ARCH_WANT_OPTIONAL_GPIOLIB
Magnus Damm6d9598e2010-11-17 10:59:31 +0000106 select ARM_GIC
Guennadi Liakhovetski99f8bd82011-08-30 16:19:13 +0000107 select I2C
Geert Uytterhoeven049d2802014-08-20 15:39:22 +0200108 select SH_INTC
Magnus Damm341eb542013-02-26 12:01:09 +0900109 select RENESAS_INTC_IRQPIN
Magnus Damm6d9598e2010-11-17 10:59:31 +0000110
Magnus Dammeccf0602013-03-26 10:34:24 +0900111config ARCH_R8A73A4
112 bool "R-Mobile APE6 (R8A73A40)"
Magnus Damm5784b192014-08-25 12:03:25 +0900113 select ARCH_RMOBILE
Magnus Dammd313d062013-03-26 10:34:52 +0900114 select ARCH_WANT_OPTIONAL_GPIOLIB
Magnus Dammeccf0602013-03-26 10:34:24 +0900115 select ARM_GIC
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
Bastian Hecht0b7d7822013-03-27 14:54:04 +0100123 select RENESAS_INTC_IRQPIN
Kuninori Morimoto6c01ba42011-11-10 18:45:52 -0800124
Kuninori Morimotoccb7cc72013-03-21 03:01:36 -0700125config ARCH_R8A7778
Sergei Shtylyov45fa9292013-05-09 00:05:40 +0000126 bool "R-Car M1A (R8A77781)"
Magnus Damm57cc67d2014-08-25 12:03:34 +0900127 select ARCH_RCAR_GEN1
Kuninori Morimoto369b00b2013-04-12 05:37:50 +0000128 select ARCH_WANT_OPTIONAL_GPIOLIB
Kuninori Morimotoccb7cc72013-03-21 03:01:36 -0700129 select ARM_GIC
Magnus Dammc793c1b2010-02-05 11:14:49 +0000130
Magnus Dammf411fad2011-12-14 01:36:12 +0900131config ARCH_R8A7779
132 bool "R-Car H1 (R8A77790)"
Magnus Damm57cc67d2014-08-25 12:03:34 +0900133 select ARCH_RCAR_GEN1
Russell Kingb1b3f492012-10-06 17:12:25 +0100134 select ARCH_WANT_OPTIONAL_GPIOLIB
135 select ARM_GIC
Magnus Dammf411fad2011-12-14 01:36:12 +0900136
Laurent Pinchart0d9fd612013-11-28 17:27:29 +0100137comment "Renesas ARM SoCs Board Type"
Magnus Dammc793c1b2010-02-05 11:14:49 +0000138
Magnus Damm78ded162013-03-29 17:00:02 +0900139config MACH_APE6EVM
140 bool "APE6EVM board"
141 depends on ARCH_R8A73A4
Simon Horman9edaca82014-01-07 15:23:47 +0900142 select SMSC_PHY if SMSC911X
Magnus Damm78ded162013-03-29 17:00:02 +0900143 select USE_OF
144
Guennadi Liakhovetski69f36662013-07-08 18:04:57 +0200145config MACH_APE6EVM_REFERENCE
146 bool "APE6EVM board - Reference Device Tree Implementation"
147 depends on ARCH_R8A73A4
Simon Horman9edaca82014-01-07 15:23:47 +0900148 select SMSC_PHY if SMSC911X
Guennadi Liakhovetski69f36662013-07-08 18:04:57 +0200149 select USE_OF
150 ---help---
151 Use reference implementation of APE6EVM board support
152 which makes a greater use of device tree at the expense
153 of not supporting a number of devices.
154
155 This is intended to aid developers
156
Kuninori Morimoto920adc72010-11-29 02:21:21 +0000157config MACH_MACKEREL
158 bool "mackerel board"
159 depends on ARCH_SH7372
Takashi YOSHII3256c782010-11-19 16:49:38 +0900160 select ARCH_REQUIRE_GPIOLIB
Guennadi Liakhovetski34767f82012-07-05 15:17:42 +0200161 select REGULATOR_FIXED_VOLTAGE if REGULATOR
Simon Hormanc5c2a292014-01-07 15:23:47 +0900162 select SMSC_PHY if SMSC911X
Russell Kingb1b3f492012-10-06 17:12:25 +0100163 select SND_SOC_AK4642 if SND_SIMPLE_CARD
Nobuhiro Iwamatsu0ce53cd2012-10-24 14:48:00 +0900164 select USE_OF
Magnus Damm6d9598e2010-11-17 10:59:31 +0000165
Kuninori Morimoto4d22e562012-04-06 01:28:59 -0700166config MACH_ARMADILLO800EVA
167 bool "Armadillo-800 EVA board"
168 depends on ARCH_R8A7740
169 select ARCH_REQUIRE_GPIOLIB
Guennadi Liakhovetski34767f82012-07-05 15:17:42 +0200170 select REGULATOR_FIXED_VOLTAGE if REGULATOR
Simon Horman6a517b12014-01-07 15:55:49 +0900171 select SMSC_PHY if SH_ETH
Kuninori Morimoto5389bf72012-06-25 03:32:50 -0700172 select SND_SOC_WM8978 if SND_SIMPLE_CARD
Russell Kingb1b3f492012-10-06 17:12:25 +0100173 select USE_OF
Kuninori Morimoto4d22e562012-04-06 01:28:59 -0700174
Kuninori Morimoto53e42c22013-03-21 03:03:38 -0700175config MACH_BOCKW
176 bool "BOCK-W platform"
177 depends on ARCH_R8A7778
178 select ARCH_REQUIRE_GPIOLIB
Kuninori Morimotoc9996e52013-07-09 02:07:13 -0700179 select REGULATOR_FIXED_VOLTAGE if REGULATOR
Kuninori Morimoto688e6a62013-08-26 01:52:35 -0700180 select SND_SOC_AK4554 if SND_SIMPLE_CARD
181 select SND_SOC_AK4642 if SND_SIMPLE_CARD
Simon Horman2b2fd272014-01-07 16:40:32 +0900182 select USE_OF
Kuninori Morimoto53e42c22013-03-21 03:03:38 -0700183
Kuninori Morimotocfa66a82013-07-24 00:36:51 -0700184config MACH_BOCKW_REFERENCE
185 bool "BOCK-W - Reference Device Tree Implementation"
186 depends on ARCH_R8A7778
187 select ARCH_REQUIRE_GPIOLIB
Kuninori Morimotocfa66a82013-07-24 00:36:51 -0700188 select REGULATOR_FIXED_VOLTAGE if REGULATOR
189 select USE_OF
190 ---help---
191 Use reference implementation of BockW board support
192 which makes use of device tree at the expense
193 of not supporting a number of devices.
194
195 This is intended to aid developers
196
Magnus Dammf411fad2011-12-14 01:36:12 +0900197config MACH_MARZEN
198 bool "MARZEN board"
199 depends on ARCH_R8A7779
Magnus Damm19c43fc2011-12-14 01:36:22 +0900200 select ARCH_REQUIRE_GPIOLIB
Guennadi Liakhovetski34767f82012-07-05 15:17:42 +0200201 select REGULATOR_FIXED_VOLTAGE if REGULATOR
Magnus Damm7ebbb4a2013-07-24 16:30:42 +0900202 select USE_OF
Magnus Dammf411fad2011-12-14 01:36:12 +0900203
Kuninori Morimoto9b93e242012-04-10 20:57:31 -0700204config MACH_KZM9G
205 bool "KZM-A9-GT board"
206 depends on ARCH_SH73A0
207 select ARCH_REQUIRE_GPIOLIB
Guennadi Liakhovetski34767f82012-07-05 15:17:42 +0200208 select REGULATOR_FIXED_VOLTAGE if REGULATOR
Russell Kingb1b3f492012-10-06 17:12:25 +0100209 select SND_SOC_AK4642 if SND_SIMPLE_CARD
210 select USE_OF
Kuninori Morimoto9b93e242012-04-10 20:57:31 -0700211
Simon Hormanb8b82b22012-11-22 00:34:25 +0900212config MACH_KZM9G_REFERENCE
213 bool "KZM-A9-GT board - Reference Device Tree Implementation"
Guennadi Liakhovetskif33d1c32013-01-15 18:23:36 +0100214 depends on ARCH_SH73A0
215 select ARCH_REQUIRE_GPIOLIB
216 select REGULATOR_FIXED_VOLTAGE if REGULATOR
217 select SND_SOC_AK4642 if SND_SIMPLE_CARD
218 select USE_OF
Simon Hormanb8b82b22012-11-22 00:34:25 +0900219 ---help---
220 Use reference implementation of KZM-A9-GT board support
221 which makes as greater use of device tree at the expense
222 of not supporting a number of devices.
223
224 This is intended to aid developers
225
Laurent Pinchart0d9fd612013-11-28 17:27:29 +0100226comment "Renesas ARM SoCs System Configuration"
Magnus Dammc793c1b2010-02-05 11:14:49 +0000227
Rob Herring7f1e76372012-01-17 11:20:23 -0600228config CPU_HAS_INTEVT
229 bool
230 default y
231
Magnus Dammfd071b62013-07-18 05:31:27 +0900232config SH_CLK_CPG
233 bool
234
235source "drivers/sh/Kconfig"
236
237endif
238
Laurent Pinchartbf98c1e2013-11-09 13:33:48 +0100239if ARCH_SHMOBILE
Magnus Dammfd071b62013-07-18 05:31:27 +0900240
Magnus Dammc793c1b2010-02-05 11:14:49 +0000241menu "Timer and clock configuration"
242
Magnus Damm5da3e712010-07-29 14:03:04 +0100243config SHMOBILE_TIMER_HZ
244 int "Kernel HZ (jiffies per second)"
245 range 32 1024
246 default "128"
247 help
248 Allows the configuration of the timer frequency. It is customary
249 to have the timer interrupt run at 1000 Hz or 100 Hz, but in the
250 case of low timer frequencies other values may be more suitable.
Laurent Pinchart0d9fd612013-11-28 17:27:29 +0100251 Renesas ARM SoC systems using a 32768 Hz RCLK for clock events may
252 want to select a HZ value such as 128 that can evenly divide RCLK.
Magnus Damm5da3e712010-07-29 14:03:04 +0100253 A HZ value that does not divide evenly may cause timer drift.
254
Magnus Dammc793c1b2010-02-05 11:14:49 +0000255endmenu
256
Magnus Dammc793c1b2010-02-05 11:14:49 +0000257endif