blob: 347b6a58fc3e033138c6e5ba98088902cd24723f [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
Geert Uytterhoeven663fbb52015-03-09 20:50:40 +010072 select I2C
Laurent Pinchart0ef3cde2013-12-11 15:13:52 +010073
Magnus Damm6d75bc62013-11-06 19:40:01 +090074config ARCH_R8A7791
Geert Uytterhoeven13298fb2014-08-28 10:28:09 +020075 bool "R-Car M2-W (R8A77910)"
Magnus Damm0d918432014-08-25 12:03:43 +090076 select ARCH_RCAR_GEN2
Geert Uytterhoeven663fbb52015-03-09 20:50:40 +010077 select I2C
Magnus Damm6d75bc62013-11-06 19:40:01 +090078
Ulrich Hecht5923abb22014-09-04 16:02:28 +020079config ARCH_R8A7794
80 bool "R-Car E2 (R8A77940)"
81 select ARCH_RCAR_GEN2
Magnus Dammcbc60e72013-07-18 05:31:18 +090082
Magnus Dammcbc60e72013-07-18 05:31:18 +090083comment "Renesas ARM SoCs Board Type"
Magnus Damm7d91c462013-11-07 08:31:25 +090084
Simon Horman5016c812014-05-15 20:32:05 +090085config MACH_MARZEN
86 bool "MARZEN board"
87 depends on ARCH_R8A7779
88 select REGULATOR_FIXED_VOLTAGE if REGULATOR
89
Laurent Pinchart0d9fd612013-11-28 17:27:29 +010090comment "Renesas ARM SoCs System Configuration"
Magnus Dammefacfce2013-07-18 05:31:09 +090091endif
92
Laurent Pinchartbf98c1e2013-11-09 13:33:48 +010093if ARCH_SHMOBILE_LEGACY
Magnus Dammc793c1b2010-02-05 11:14:49 +000094
Laurent Pinchart0d9fd612013-11-28 17:27:29 +010095comment "Renesas ARM SoCs System Type"
Magnus Dammc793c1b2010-02-05 11:14:49 +000096
Magnus Damm2b7eda62010-02-05 11:14:58 +000097config ARCH_SH7372
98 bool "SH-Mobile AP4 (SH7372)"
Magnus Damm5784b192014-08-25 12:03:25 +090099 select ARCH_RMOBILE
Paul Mundt6d72ad32010-11-16 16:10:20 +0900100 select ARCH_WANT_OPTIONAL_GPIOLIB
Magnus Damma1ee61b2012-07-11 22:54:05 +0200101 select ARM_CPU_SUSPEND if PM || CPU_IDLE
Geert Uytterhoeven049d2802014-08-20 15:39:22 +0200102 select SH_INTC
Magnus Damm2b7eda62010-02-05 11:14:58 +0000103
Magnus Damm6d9598e2010-11-17 10:59:31 +0000104config ARCH_SH73A0
105 bool "SH-Mobile AG5 (R8A73A00)"
Magnus Damm5784b192014-08-25 12:03:25 +0900106 select ARCH_RMOBILE
Takashi YOSHII1cdf3702010-11-19 16:47:16 +0900107 select ARCH_WANT_OPTIONAL_GPIOLIB
Magnus Damm6d9598e2010-11-17 10:59:31 +0000108 select ARM_GIC
Guennadi Liakhovetski99f8bd82011-08-30 16:19:13 +0000109 select I2C
Geert Uytterhoeven049d2802014-08-20 15:39:22 +0200110 select SH_INTC
Magnus Damm341eb542013-02-26 12:01:09 +0900111 select RENESAS_INTC_IRQPIN
Magnus Damm6d9598e2010-11-17 10:59:31 +0000112
Magnus Dammeccf0602013-03-26 10:34:24 +0900113config ARCH_R8A73A4
114 bool "R-Mobile APE6 (R8A73A40)"
Magnus Damm5784b192014-08-25 12:03:25 +0900115 select ARCH_RMOBILE
Magnus Dammd313d062013-03-26 10:34:52 +0900116 select ARCH_WANT_OPTIONAL_GPIOLIB
Magnus Dammeccf0602013-03-26 10:34:24 +0900117 select ARM_GIC
Magnus Damm984ca292013-03-26 10:34:42 +0900118 select RENESAS_IRQC
Magnus Dammf2aaf662010-02-05 11:15:07 +0000119
Kuninori Morimoto6c01ba42011-11-10 18:45:52 -0800120config ARCH_R8A7740
121 bool "R-Mobile A1 (R8A77400)"
Magnus Damm5784b192014-08-25 12:03:25 +0900122 select ARCH_RMOBILE
Russell Kingb1b3f492012-10-06 17:12:25 +0100123 select ARCH_WANT_OPTIONAL_GPIOLIB
Bastian Hecht0b7d7822013-03-27 14:54:04 +0100124 select ARM_GIC
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 ARM_GIC
Magnus Dammc793c1b2010-02-05 11:14:49 +0000132
Magnus Dammf411fad2011-12-14 01:36:12 +0900133config ARCH_R8A7779
134 bool "R-Car H1 (R8A77790)"
Magnus Damm57cc67d2014-08-25 12:03:34 +0900135 select ARCH_RCAR_GEN1
Russell Kingb1b3f492012-10-06 17:12:25 +0100136 select ARCH_WANT_OPTIONAL_GPIOLIB
137 select ARM_GIC
Magnus Dammf411fad2011-12-14 01:36:12 +0900138
Laurent Pinchart0d9fd612013-11-28 17:27:29 +0100139comment "Renesas ARM SoCs Board Type"
Magnus Dammc793c1b2010-02-05 11:14:49 +0000140
Magnus Damm78ded162013-03-29 17:00:02 +0900141config MACH_APE6EVM
142 bool "APE6EVM board"
143 depends on ARCH_R8A73A4
Simon Horman9edaca82014-01-07 15:23:47 +0900144 select SMSC_PHY if SMSC911X
Magnus Damm78ded162013-03-29 17:00:02 +0900145 select USE_OF
146
Guennadi Liakhovetski69f36662013-07-08 18:04:57 +0200147config MACH_APE6EVM_REFERENCE
148 bool "APE6EVM board - Reference Device Tree Implementation"
149 depends on ARCH_R8A73A4
Simon Horman9edaca82014-01-07 15:23:47 +0900150 select SMSC_PHY if SMSC911X
Guennadi Liakhovetski69f36662013-07-08 18:04:57 +0200151 select USE_OF
152 ---help---
153 Use reference implementation of APE6EVM board support
154 which makes a greater use of device tree at the expense
155 of not supporting a number of devices.
156
157 This is intended to aid developers
158
Kuninori Morimoto920adc72010-11-29 02:21:21 +0000159config MACH_MACKEREL
160 bool "mackerel board"
161 depends on ARCH_SH7372
Takashi YOSHII3256c7892010-11-19 16:49:38 +0900162 select ARCH_REQUIRE_GPIOLIB
Guennadi Liakhovetski34767f82012-07-05 15:17:42 +0200163 select REGULATOR_FIXED_VOLTAGE if REGULATOR
Simon Hormanc5c2a292014-01-07 15:23:47 +0900164 select SMSC_PHY if SMSC911X
Russell Kingb1b3f492012-10-06 17:12:25 +0100165 select SND_SOC_AK4642 if SND_SIMPLE_CARD
Nobuhiro Iwamatsu0ce53cd2012-10-24 14:48:00 +0900166 select USE_OF
Magnus Damm6d9598e2010-11-17 10:59:31 +0000167
Kuninori Morimoto4d22e562012-04-06 01:28:59 -0700168config MACH_ARMADILLO800EVA
169 bool "Armadillo-800 EVA board"
170 depends on ARCH_R8A7740
171 select ARCH_REQUIRE_GPIOLIB
Guennadi Liakhovetski34767f82012-07-05 15:17:42 +0200172 select REGULATOR_FIXED_VOLTAGE if REGULATOR
Simon Horman6a517b12014-01-07 15:55:49 +0900173 select SMSC_PHY if SH_ETH
Kuninori Morimoto5389bf72012-06-25 03:32:50 -0700174 select SND_SOC_WM8978 if SND_SIMPLE_CARD
Russell Kingb1b3f492012-10-06 17:12:25 +0100175 select USE_OF
Kuninori Morimoto4d22e562012-04-06 01:28:59 -0700176
Kuninori Morimoto53e42c22013-03-21 03:03:38 -0700177config MACH_BOCKW
178 bool "BOCK-W platform"
179 depends on ARCH_R8A7778
180 select ARCH_REQUIRE_GPIOLIB
Kuninori Morimotoc9996e52013-07-09 02:07:13 -0700181 select REGULATOR_FIXED_VOLTAGE if REGULATOR
Kuninori Morimoto688e6a62013-08-26 01:52:35 -0700182 select SND_SOC_AK4554 if SND_SIMPLE_CARD
183 select SND_SOC_AK4642 if SND_SIMPLE_CARD
Simon Horman2b2fd272014-01-07 16:40:32 +0900184 select USE_OF
Kuninori Morimoto53e42c22013-03-21 03:03:38 -0700185
Kuninori Morimotocfa66a82013-07-24 00:36:51 -0700186config MACH_BOCKW_REFERENCE
187 bool "BOCK-W - Reference Device Tree Implementation"
188 depends on ARCH_R8A7778
189 select ARCH_REQUIRE_GPIOLIB
Kuninori Morimotocfa66a82013-07-24 00:36:51 -0700190 select REGULATOR_FIXED_VOLTAGE if REGULATOR
191 select USE_OF
192 ---help---
193 Use reference implementation of BockW board support
194 which makes use of device tree at the expense
195 of not supporting a number of devices.
196
197 This is intended to aid developers
198
Magnus Dammf411fad2011-12-14 01:36:12 +0900199config MACH_MARZEN
200 bool "MARZEN board"
201 depends on ARCH_R8A7779
Magnus Damm19c43fc2011-12-14 01:36:22 +0900202 select ARCH_REQUIRE_GPIOLIB
Guennadi Liakhovetski34767f82012-07-05 15:17:42 +0200203 select REGULATOR_FIXED_VOLTAGE if REGULATOR
Magnus Damm7ebbb4a2013-07-24 16:30:42 +0900204 select USE_OF
Magnus Dammf411fad2011-12-14 01:36:12 +0900205
Kuninori Morimoto9b93e242012-04-10 20:57:31 -0700206config MACH_KZM9G
207 bool "KZM-A9-GT board"
208 depends on ARCH_SH73A0
209 select ARCH_REQUIRE_GPIOLIB
Guennadi Liakhovetski34767f82012-07-05 15:17:42 +0200210 select REGULATOR_FIXED_VOLTAGE if REGULATOR
Russell Kingb1b3f492012-10-06 17:12:25 +0100211 select SND_SOC_AK4642 if SND_SIMPLE_CARD
212 select USE_OF
Kuninori Morimoto9b93e242012-04-10 20:57:31 -0700213
Simon Hormanb8b82b22012-11-22 00:34:25 +0900214config MACH_KZM9G_REFERENCE
215 bool "KZM-A9-GT board - Reference Device Tree Implementation"
Guennadi Liakhovetskif33d1c32013-01-15 18:23:36 +0100216 depends on ARCH_SH73A0
217 select ARCH_REQUIRE_GPIOLIB
218 select REGULATOR_FIXED_VOLTAGE if REGULATOR
219 select SND_SOC_AK4642 if SND_SIMPLE_CARD
220 select USE_OF
Simon Hormanb8b82b22012-11-22 00:34:25 +0900221 ---help---
222 Use reference implementation of KZM-A9-GT board support
223 which makes as greater use of device tree at the expense
224 of not supporting a number of devices.
225
226 This is intended to aid developers
227
Laurent Pinchart0d9fd612013-11-28 17:27:29 +0100228comment "Renesas ARM SoCs System Configuration"
Magnus Dammc793c1b2010-02-05 11:14:49 +0000229
Rob Herring7f1e7632012-01-17 11:20:23 -0600230config CPU_HAS_INTEVT
231 bool
232 default y
233
Magnus Dammfd071b62013-07-18 05:31:27 +0900234config SH_CLK_CPG
235 bool
236
237source "drivers/sh/Kconfig"
238
239endif
240
Laurent Pinchartbf98c1e2013-11-09 13:33:48 +0100241if ARCH_SHMOBILE
Magnus Dammfd071b62013-07-18 05:31:27 +0900242
Magnus Dammc793c1b2010-02-05 11:14:49 +0000243menu "Timer and clock configuration"
244
Magnus Damm5da3e712010-07-29 14:03:04 +0100245config SHMOBILE_TIMER_HZ
246 int "Kernel HZ (jiffies per second)"
247 range 32 1024
248 default "128"
249 help
250 Allows the configuration of the timer frequency. It is customary
251 to have the timer interrupt run at 1000 Hz or 100 Hz, but in the
252 case of low timer frequencies other values may be more suitable.
Laurent Pinchart0d9fd612013-11-28 17:27:29 +0100253 Renesas ARM SoC systems using a 32768 Hz RCLK for clock events may
254 want to select a HZ value such as 128 that can evenly divide RCLK.
Magnus Damm5da3e712010-07-29 14:03:04 +0100255 A HZ value that does not divide evenly may cause timer drift.
256
Magnus Dammc793c1b2010-02-05 11:14:49 +0000257endmenu
258
Magnus Dammc793c1b2010-02-05 11:14:49 +0000259endif