blob: 8ee2f281f2a3dd6aa9bc14d0ba9bca6217acea29 [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 Damm8e8bfff2015-01-09 14:08:50 +010081config ARCH_SH73A0
82 bool "SH-Mobile AG5 (R8A73A00)"
83 select ARCH_RMOBILE
84 select RENESAS_INTC_IRQPIN
85
Magnus Dammcbc60e72013-07-18 05:31:18 +090086comment "Renesas ARM SoCs Board Type"
Magnus Damm7d91c462013-11-07 08:31:25 +090087
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
Laurent Pinchart0d9fd612013-11-28 17:27:29 +0100142comment "Renesas ARM SoCs Board Type"
Magnus Dammc793c1b2010-02-05 11:14:49 +0000143
Magnus Damm78ded162013-03-29 17:00:02 +0900144config MACH_APE6EVM
145 bool "APE6EVM board"
146 depends on ARCH_R8A73A4
Simon Horman9edaca82014-01-07 15:23:47 +0900147 select SMSC_PHY if SMSC911X
Magnus Damm78ded162013-03-29 17:00:02 +0900148 select USE_OF
149
Guennadi Liakhovetski69f36662013-07-08 18:04:57 +0200150config MACH_APE6EVM_REFERENCE
151 bool "APE6EVM board - Reference Device Tree Implementation"
152 depends on ARCH_R8A73A4
Simon Horman9edaca82014-01-07 15:23:47 +0900153 select SMSC_PHY if SMSC911X
Guennadi Liakhovetski69f36662013-07-08 18:04:57 +0200154 select USE_OF
155 ---help---
156 Use reference implementation of APE6EVM board support
157 which makes a greater use of device tree at the expense
158 of not supporting a number of devices.
159
160 This is intended to aid developers
161
Kuninori Morimoto920adc72010-11-29 02:21:21 +0000162config MACH_MACKEREL
163 bool "mackerel board"
164 depends on ARCH_SH7372
Takashi YOSHII3256c782010-11-19 16:49:38 +0900165 select ARCH_REQUIRE_GPIOLIB
Guennadi Liakhovetski34767f82012-07-05 15:17:42 +0200166 select REGULATOR_FIXED_VOLTAGE if REGULATOR
Simon Hormanc5c2a292014-01-07 15:23:47 +0900167 select SMSC_PHY if SMSC911X
Russell Kingb1b3f492012-10-06 17:12:25 +0100168 select SND_SOC_AK4642 if SND_SIMPLE_CARD
Nobuhiro Iwamatsu0ce53cd2012-10-24 14:48:00 +0900169 select USE_OF
Magnus Damm6d9598e2010-11-17 10:59:31 +0000170
Kuninori Morimoto4d22e562012-04-06 01:28:59 -0700171config MACH_ARMADILLO800EVA
172 bool "Armadillo-800 EVA board"
173 depends on ARCH_R8A7740
174 select ARCH_REQUIRE_GPIOLIB
Guennadi Liakhovetski34767f82012-07-05 15:17:42 +0200175 select REGULATOR_FIXED_VOLTAGE if REGULATOR
Simon Horman6a517b12014-01-07 15:55:49 +0900176 select SMSC_PHY if SH_ETH
Kuninori Morimoto5389bf72012-06-25 03:32:50 -0700177 select SND_SOC_WM8978 if SND_SIMPLE_CARD
Russell Kingb1b3f492012-10-06 17:12:25 +0100178 select USE_OF
Kuninori Morimoto4d22e562012-04-06 01:28:59 -0700179
Kuninori Morimoto53e42c22013-03-21 03:03:38 -0700180config MACH_BOCKW
181 bool "BOCK-W platform"
182 depends on ARCH_R8A7778
183 select ARCH_REQUIRE_GPIOLIB
Kuninori Morimotoc9996e52013-07-09 02:07:13 -0700184 select REGULATOR_FIXED_VOLTAGE if REGULATOR
Kuninori Morimoto688e6a62013-08-26 01:52:35 -0700185 select SND_SOC_AK4554 if SND_SIMPLE_CARD
186 select SND_SOC_AK4642 if SND_SIMPLE_CARD
Simon Horman2b2fd272014-01-07 16:40:32 +0900187 select USE_OF
Kuninori Morimoto53e42c22013-03-21 03:03:38 -0700188
Kuninori Morimotocfa66a82013-07-24 00:36:51 -0700189config MACH_BOCKW_REFERENCE
190 bool "BOCK-W - Reference Device Tree Implementation"
191 depends on ARCH_R8A7778
192 select ARCH_REQUIRE_GPIOLIB
Kuninori Morimotocfa66a82013-07-24 00:36:51 -0700193 select REGULATOR_FIXED_VOLTAGE if REGULATOR
194 select USE_OF
195 ---help---
196 Use reference implementation of BockW board support
197 which makes use of device tree at the expense
198 of not supporting a number of devices.
199
200 This is intended to aid developers
201
Magnus Dammf411fad2011-12-14 01:36:12 +0900202config MACH_MARZEN
203 bool "MARZEN board"
204 depends on ARCH_R8A7779
Magnus Damm19c43fc2011-12-14 01:36:22 +0900205 select ARCH_REQUIRE_GPIOLIB
Guennadi Liakhovetski34767f82012-07-05 15:17:42 +0200206 select REGULATOR_FIXED_VOLTAGE if REGULATOR
Magnus Damm7ebbb4a2013-07-24 16:30:42 +0900207 select USE_OF
Magnus Dammf411fad2011-12-14 01:36:12 +0900208
Kuninori Morimoto9b93e242012-04-10 20:57:31 -0700209config MACH_KZM9G
210 bool "KZM-A9-GT board"
211 depends on ARCH_SH73A0
212 select ARCH_REQUIRE_GPIOLIB
Guennadi Liakhovetski34767f82012-07-05 15:17:42 +0200213 select REGULATOR_FIXED_VOLTAGE if REGULATOR
Russell Kingb1b3f492012-10-06 17:12:25 +0100214 select SND_SOC_AK4642 if SND_SIMPLE_CARD
215 select USE_OF
Kuninori Morimoto9b93e242012-04-10 20:57:31 -0700216
Simon Hormanb8b82b22012-11-22 00:34:25 +0900217config MACH_KZM9G_REFERENCE
218 bool "KZM-A9-GT board - Reference Device Tree Implementation"
Guennadi Liakhovetskif33d1c32013-01-15 18:23:36 +0100219 depends on ARCH_SH73A0
220 select ARCH_REQUIRE_GPIOLIB
221 select REGULATOR_FIXED_VOLTAGE if REGULATOR
222 select SND_SOC_AK4642 if SND_SIMPLE_CARD
223 select USE_OF
Simon Hormanb8b82b22012-11-22 00:34:25 +0900224 ---help---
225 Use reference implementation of KZM-A9-GT board support
226 which makes as greater use of device tree at the expense
227 of not supporting a number of devices.
228
229 This is intended to aid developers
230
Laurent Pinchart0d9fd612013-11-28 17:27:29 +0100231comment "Renesas ARM SoCs System Configuration"
Magnus Dammc793c1b2010-02-05 11:14:49 +0000232
Rob Herring7f1e76372012-01-17 11:20:23 -0600233config CPU_HAS_INTEVT
234 bool
235 default y
236
Magnus Dammfd071b62013-07-18 05:31:27 +0900237config SH_CLK_CPG
238 bool
239
240source "drivers/sh/Kconfig"
241
242endif
243
Laurent Pinchartbf98c1e2013-11-09 13:33:48 +0100244if ARCH_SHMOBILE
Magnus Dammfd071b62013-07-18 05:31:27 +0900245
Magnus Dammc793c1b2010-02-05 11:14:49 +0000246menu "Timer and clock configuration"
247
Magnus Damm5da3e712010-07-29 14:03:04 +0100248config SHMOBILE_TIMER_HZ
249 int "Kernel HZ (jiffies per second)"
250 range 32 1024
251 default "128"
252 help
253 Allows the configuration of the timer frequency. It is customary
254 to have the timer interrupt run at 1000 Hz or 100 Hz, but in the
255 case of low timer frequencies other values may be more suitable.
Laurent Pinchart0d9fd612013-11-28 17:27:29 +0100256 Renesas ARM SoC systems using a 32768 Hz RCLK for clock events may
257 want to select a HZ value such as 128 that can evenly divide RCLK.
Magnus Damm5da3e712010-07-29 14:03:04 +0100258 A HZ value that does not divide evenly may cause timer drift.
259
Magnus Dammc793c1b2010-02-05 11:14:49 +0000260endmenu
261
Magnus Dammc793c1b2010-02-05 11:14:49 +0000262endif