blob: 45006479d4617bf3b862eb98147323b216573dfd [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
Ulrich Hecht3915d36f2015-02-26 17:42:13 +010065config ARCH_R8A7778
66 bool "R-Car M1A (R8A77781)"
67 select ARCH_RCAR_GEN1
68
Simon Horman5016c812014-05-15 20:32:05 +090069config ARCH_R8A7779
70 bool "R-Car H1 (R8A77790)"
Magnus Damm57cc67d2014-08-25 12:03:34 +090071 select ARCH_RCAR_GEN1
Simon Horman5016c812014-05-15 20:32:05 +090072
Laurent Pinchart0ef3cde2013-12-11 15:13:52 +010073config ARCH_R8A7790
74 bool "R-Car H2 (R8A77900)"
Magnus Damm0d918432014-08-25 12:03:43 +090075 select ARCH_RCAR_GEN2
Geert Uytterhoeven663fbb52015-03-09 20:50:40 +010076 select I2C
Laurent Pinchart0ef3cde2013-12-11 15:13:52 +010077
Magnus Damm6d75bc62013-11-06 19:40:01 +090078config ARCH_R8A7791
Geert Uytterhoeven13298fb2014-08-28 10:28:09 +020079 bool "R-Car M2-W (R8A77910)"
Magnus Damm0d918432014-08-25 12:03:43 +090080 select ARCH_RCAR_GEN2
Geert Uytterhoeven663fbb52015-03-09 20:50:40 +010081 select I2C
Magnus Damm6d75bc62013-11-06 19:40:01 +090082
Ulrich Hecht5923abb22014-09-04 16:02:28 +020083config ARCH_R8A7794
84 bool "R-Car E2 (R8A77940)"
85 select ARCH_RCAR_GEN2
Magnus Dammcbc60e72013-07-18 05:31:18 +090086
Magnus Damm8e8bfff2015-01-09 14:08:50 +010087config ARCH_SH73A0
88 bool "SH-Mobile AG5 (R8A73A00)"
89 select ARCH_RMOBILE
90 select RENESAS_INTC_IRQPIN
91
Magnus Dammcbc60e72013-07-18 05:31:18 +090092comment "Renesas ARM SoCs Board Type"
Magnus Damm7d91c462013-11-07 08:31:25 +090093
Simon Horman5016c812014-05-15 20:32:05 +090094config MACH_MARZEN
95 bool "MARZEN board"
96 depends on ARCH_R8A7779
97 select REGULATOR_FIXED_VOLTAGE if REGULATOR
98
Laurent Pinchart0d9fd612013-11-28 17:27:29 +010099comment "Renesas ARM SoCs System Configuration"
Magnus Dammefacfce2013-07-18 05:31:09 +0900100endif
101
Laurent Pinchartbf98c1e2013-11-09 13:33:48 +0100102if ARCH_SHMOBILE_LEGACY
Magnus Dammc793c1b2010-02-05 11:14:49 +0000103
Laurent Pinchart0d9fd612013-11-28 17:27:29 +0100104comment "Renesas ARM SoCs System Type"
Magnus Dammc793c1b2010-02-05 11:14:49 +0000105
Magnus Damm6d9598e2010-11-17 10:59:31 +0000106config ARCH_SH73A0
107 bool "SH-Mobile AG5 (R8A73A00)"
Magnus Damm5784b192014-08-25 12:03:25 +0900108 select ARCH_RMOBILE
Takashi YOSHII1cdf3702010-11-19 16:47:16 +0900109 select ARCH_WANT_OPTIONAL_GPIOLIB
Magnus Damm6d9598e2010-11-17 10:59:31 +0000110 select ARM_GIC
Guennadi Liakhovetski99f8bd82011-08-30 16:19:13 +0000111 select I2C
Geert Uytterhoeven049d2802014-08-20 15:39:22 +0200112 select SH_INTC
Magnus Damm341eb542013-02-26 12:01:09 +0900113 select RENESAS_INTC_IRQPIN
Magnus Damm6d9598e2010-11-17 10:59:31 +0000114
Kuninori Morimoto6c01ba42011-11-10 18:45:52 -0800115config ARCH_R8A7740
116 bool "R-Mobile A1 (R8A77400)"
Magnus Damm5784b192014-08-25 12:03:25 +0900117 select ARCH_RMOBILE
Russell Kingb1b3f492012-10-06 17:12:25 +0100118 select ARCH_WANT_OPTIONAL_GPIOLIB
Bastian Hecht0b7d7822013-03-27 14:54:04 +0100119 select ARM_GIC
Bastian Hecht0b7d7822013-03-27 14:54:04 +0100120 select RENESAS_INTC_IRQPIN
Kuninori Morimoto6c01ba42011-11-10 18:45:52 -0800121
Kuninori Morimotoccb7cc72013-03-21 03:01:36 -0700122config ARCH_R8A7778
Sergei Shtylyov45fa9292013-05-09 00:05:40 +0000123 bool "R-Car M1A (R8A77781)"
Magnus Damm57cc67d2014-08-25 12:03:34 +0900124 select ARCH_RCAR_GEN1
Kuninori Morimoto369b00b2013-04-12 05:37:50 +0000125 select ARCH_WANT_OPTIONAL_GPIOLIB
Kuninori Morimotoccb7cc72013-03-21 03:01:36 -0700126 select ARM_GIC
Magnus Dammc793c1b2010-02-05 11:14:49 +0000127
Magnus Dammf411fad2011-12-14 01:36:12 +0900128config ARCH_R8A7779
129 bool "R-Car H1 (R8A77790)"
Magnus Damm57cc67d2014-08-25 12:03:34 +0900130 select ARCH_RCAR_GEN1
Russell Kingb1b3f492012-10-06 17:12:25 +0100131 select ARCH_WANT_OPTIONAL_GPIOLIB
132 select ARM_GIC
Magnus Dammf411fad2011-12-14 01:36:12 +0900133
Laurent Pinchart0d9fd612013-11-28 17:27:29 +0100134comment "Renesas ARM SoCs Board Type"
Magnus Dammc793c1b2010-02-05 11:14:49 +0000135
Kuninori Morimoto4d22e562012-04-06 01:28:59 -0700136config MACH_ARMADILLO800EVA
137 bool "Armadillo-800 EVA board"
138 depends on ARCH_R8A7740
139 select ARCH_REQUIRE_GPIOLIB
Guennadi Liakhovetski34767f82012-07-05 15:17:42 +0200140 select REGULATOR_FIXED_VOLTAGE if REGULATOR
Simon Horman6a517b12014-01-07 15:55:49 +0900141 select SMSC_PHY if SH_ETH
Arnd Bergmann66f72f02015-05-19 15:40:37 +0200142 select SND_SOC_WM8978 if SND_SIMPLE_CARD && I2C
Russell Kingb1b3f492012-10-06 17:12:25 +0100143 select USE_OF
Kuninori Morimoto4d22e562012-04-06 01:28:59 -0700144
Kuninori Morimoto53e42c22013-03-21 03:03:38 -0700145config MACH_BOCKW
146 bool "BOCK-W platform"
147 depends on ARCH_R8A7778
148 select ARCH_REQUIRE_GPIOLIB
Kuninori Morimotoc9996e52013-07-09 02:07:13 -0700149 select REGULATOR_FIXED_VOLTAGE if REGULATOR
Kuninori Morimoto688e6a62013-08-26 01:52:35 -0700150 select SND_SOC_AK4554 if SND_SIMPLE_CARD
Arnd Bergmann66f72f02015-05-19 15:40:37 +0200151 select SND_SOC_AK4642 if SND_SIMPLE_CARD && I2C
Simon Horman2b2fd272014-01-07 16:40:32 +0900152 select USE_OF
Kuninori Morimoto53e42c22013-03-21 03:03:38 -0700153
Kuninori Morimotocfa66a82013-07-24 00:36:51 -0700154config MACH_BOCKW_REFERENCE
155 bool "BOCK-W - Reference Device Tree Implementation"
156 depends on ARCH_R8A7778
157 select ARCH_REQUIRE_GPIOLIB
Kuninori Morimotocfa66a82013-07-24 00:36:51 -0700158 select REGULATOR_FIXED_VOLTAGE if REGULATOR
159 select USE_OF
160 ---help---
161 Use reference implementation of BockW board support
162 which makes use of device tree at the expense
163 of not supporting a number of devices.
164
165 This is intended to aid developers
166
Magnus Dammf411fad2011-12-14 01:36:12 +0900167config MACH_MARZEN
168 bool "MARZEN board"
169 depends on ARCH_R8A7779
Magnus Damm19c43fc2011-12-14 01:36:22 +0900170 select ARCH_REQUIRE_GPIOLIB
Guennadi Liakhovetski34767f82012-07-05 15:17:42 +0200171 select REGULATOR_FIXED_VOLTAGE if REGULATOR
Magnus Damm7ebbb4a2013-07-24 16:30:42 +0900172 select USE_OF
Magnus Dammf411fad2011-12-14 01:36:12 +0900173
Kuninori Morimoto9b93e242012-04-10 20:57:31 -0700174config MACH_KZM9G
175 bool "KZM-A9-GT board"
176 depends on ARCH_SH73A0
177 select ARCH_REQUIRE_GPIOLIB
Guennadi Liakhovetski34767f82012-07-05 15:17:42 +0200178 select REGULATOR_FIXED_VOLTAGE if REGULATOR
Russell Kingb1b3f492012-10-06 17:12:25 +0100179 select SND_SOC_AK4642 if SND_SIMPLE_CARD
180 select USE_OF
Kuninori Morimoto9b93e242012-04-10 20:57:31 -0700181
Laurent Pinchart0d9fd612013-11-28 17:27:29 +0100182comment "Renesas ARM SoCs System Configuration"
Magnus Dammc793c1b2010-02-05 11:14:49 +0000183
Rob Herring7f1e7632012-01-17 11:20:23 -0600184config CPU_HAS_INTEVT
185 bool
186 default y
187
Magnus Dammfd071b62013-07-18 05:31:27 +0900188config SH_CLK_CPG
189 bool
190
191source "drivers/sh/Kconfig"
192
193endif
194
Laurent Pinchartbf98c1e2013-11-09 13:33:48 +0100195if ARCH_SHMOBILE
Magnus Dammfd071b62013-07-18 05:31:27 +0900196
Magnus Dammc793c1b2010-02-05 11:14:49 +0000197menu "Timer and clock configuration"
198
Magnus Damm5da3e712010-07-29 14:03:04 +0100199config SHMOBILE_TIMER_HZ
200 int "Kernel HZ (jiffies per second)"
201 range 32 1024
202 default "128"
203 help
204 Allows the configuration of the timer frequency. It is customary
205 to have the timer interrupt run at 1000 Hz or 100 Hz, but in the
206 case of low timer frequencies other values may be more suitable.
Laurent Pinchart0d9fd612013-11-28 17:27:29 +0100207 Renesas ARM SoC systems using a 32768 Hz RCLK for clock events may
208 want to select a HZ value such as 128 that can evenly divide RCLK.
Magnus Damm5da3e712010-07-29 14:03:04 +0100209 A HZ value that does not divide evenly may cause timer drift.
210
Magnus Dammc793c1b2010-02-05 11:14:49 +0000211endmenu
212
Magnus Dammc793c1b2010-02-05 11:14:49 +0000213endif