Kconfig 7.3 KB
Newer Older
1 2 3
config ARCH_SHMOBILE
	bool

4 5 6
config PM_RCAR
	bool

7 8 9
config PM_RMOBILE
	bool

10 11
config ARCH_RCAR_GEN1
	bool
12
	select PM_RCAR if PM || SMP
13 14 15
	select RENESAS_INTC_IRQPIN
	select SYS_SUPPORTS_SH_TMU

16 17
config ARCH_RCAR_GEN2
	bool
18
	select PM_RCAR if PM || SMP
19 20 21
	select RENESAS_IRQC
	select SYS_SUPPORTS_SH_CMT

22 23
config ARCH_RMOBILE
	bool
24
	select PM_RMOBILE if PM
25 26 27
	select SYS_SUPPORTS_SH_CMT
	select SYS_SUPPORTS_SH_TMU

28
menuconfig ARCH_SHMOBILE_MULTI
29
	bool "Renesas ARM SoCs" if ARCH_MULTI_V7
30
	depends on MMU
31
	select ARCH_SHMOBILE
32
	select HAVE_ARM_SCU if SMP
33
	select HAVE_ARM_TWD if SMP
34
	select ARM_GIC
35
	select ARCH_DMA_ADDR_T_64BIT if ARM_LPAE
36
	select NO_IOPORT_MAP
37 38
	select PINCTRL
	select ARCH_REQUIRE_GPIOLIB
39
	select ARCH_HAS_OPP
40 41 42

if ARCH_SHMOBILE_MULTI

43
#comment "Renesas ARM SoCs System Type"
44

45 46
config ARCH_EMEV2
	bool "Emma Mobile EV2"
47
	select SYS_SUPPORTS_EM_STI
48

49 50
config ARCH_R7S72100
	bool "RZ/A1H (R7S72100)"
51
	select SYS_SUPPORTS_SH_MTU2
52

53 54
config ARCH_R8A7779
	bool "R-Car H1 (R8A77790)"
55
	select ARCH_RCAR_GEN1
56

57 58
config ARCH_R8A7790
	bool "R-Car H2 (R8A77900)"
59
	select ARCH_RCAR_GEN2
60

61 62
config ARCH_R8A7791
	bool "R-Car M2 (R8A77910)"
63
	select ARCH_RCAR_GEN2
64

65
comment "Renesas ARM SoCs Board Type"
66

67 68 69 70
config MACH_GENMAI
	bool "Genmai board"
	depends on ARCH_R7S72100

71 72 73
config MACH_KOELSCH
	bool "Koelsch board"
	depends on ARCH_R8A7791
74
	select MICREL_PHY if SH_ETH
75

76 77 78
config MACH_LAGER
	bool "Lager board"
	depends on ARCH_R8A7790
79
	select MICREL_PHY if SH_ETH
80

81 82 83 84 85
config MACH_MARZEN
	bool "MARZEN board"
	depends on ARCH_R8A7779
	select REGULATOR_FIXED_VOLTAGE if REGULATOR

86
comment "Renesas ARM SoCs System Configuration"
87 88
endif

89
if ARCH_SHMOBILE_LEGACY
90

91
comment "Renesas ARM SoCs System Type"
92

93 94
config ARCH_SH7372
	bool "SH-Mobile AP4 (SH7372)"
95
	select ARCH_RMOBILE
96
	select ARCH_WANT_OPTIONAL_GPIOLIB
97
	select ARM_CPU_SUSPEND if PM || CPU_IDLE
98 99
	select CPU_V7
	select SH_CLK_CPG
100
	select SH_INTC
101

102 103
config ARCH_SH73A0
	bool "SH-Mobile AG5 (R8A73A00)"
104
	select ARCH_RMOBILE
105
	select ARCH_WANT_OPTIONAL_GPIOLIB
106
	select ARM_GIC
107
	select CPU_V7
108
	select I2C
109
	select SH_CLK_CPG
110
	select SH_INTC
111
	select RENESAS_INTC_IRQPIN
112

113 114
config ARCH_R8A73A4
	bool "R-Mobile APE6 (R8A73A40)"
115
	select ARCH_RMOBILE
M
Magnus Damm 已提交
116
	select ARCH_WANT_OPTIONAL_GPIOLIB
117 118 119
	select ARM_GIC
	select CPU_V7
	select SH_CLK_CPG
120
	select RENESAS_IRQC
121

122 123
config ARCH_R8A7740
	bool "R-Mobile A1 (R8A77400)"
124
	select ARCH_RMOBILE
125
	select ARCH_WANT_OPTIONAL_GPIOLIB
126
	select ARM_GIC
127 128
	select CPU_V7
	select SH_CLK_CPG
129
	select RENESAS_INTC_IRQPIN
130

131
config ARCH_R8A7778
132
	bool "R-Car M1A (R8A77781)"
133
	select ARCH_RCAR_GEN1
134
	select ARCH_WANT_OPTIONAL_GPIOLIB
135 136 137
	select CPU_V7
	select SH_CLK_CPG
	select ARM_GIC
138

139 140
config ARCH_R8A7779
	bool "R-Car H1 (R8A77790)"
141
	select ARCH_RCAR_GEN1
142 143
	select ARCH_WANT_OPTIONAL_GPIOLIB
	select ARM_GIC
144 145 146
	select CPU_V7
	select SH_CLK_CPG

147 148
config ARCH_R8A7790
	bool "R-Car H2 (R8A77900)"
149
	select ARCH_RCAR_GEN2
M
Magnus Damm 已提交
150
	select ARCH_WANT_OPTIONAL_GPIOLIB
151 152
	select ARM_GIC
	select CPU_V7
153
	select MIGHT_HAVE_PCI
154
	select SH_CLK_CPG
155
	select ARCH_DMA_ADDR_T_64BIT if ARM_LPAE
156

157 158
config ARCH_R8A7791
	bool "R-Car M2 (R8A77910)"
159
	select ARCH_RCAR_GEN2
160
	select ARCH_WANT_OPTIONAL_GPIOLIB
161 162
	select ARM_GIC
	select CPU_V7
163
	select MIGHT_HAVE_PCI
164
	select SH_CLK_CPG
165
	select ARCH_DMA_ADDR_T_64BIT if ARM_LPAE
166

167 168
config ARCH_R7S72100
	bool "RZ/A1H (R7S72100)"
169
	select ARCH_WANT_OPTIONAL_GPIOLIB
170 171 172
	select ARM_GIC
	select CPU_V7
	select SH_CLK_CPG
173
	select SYS_SUPPORTS_SH_MTU2
174

175
comment "Renesas ARM SoCs Board Type"
176

177 178 179
config MACH_APE6EVM
	bool "APE6EVM board"
	depends on ARCH_R8A73A4
180
	select SMSC_PHY if SMSC911X
181 182
	select USE_OF

183 184 185
config MACH_APE6EVM_REFERENCE
	bool "APE6EVM board - Reference Device Tree Implementation"
	depends on ARCH_R8A73A4
186
	select SMSC_PHY if SMSC911X
187 188 189 190 191 192 193 194
	select USE_OF
	---help---
	   Use reference implementation of APE6EVM board support
	   which makes a greater use of device tree at the expense
	   of not supporting a number of devices.

	   This is intended to aid developers

195 196 197
config MACH_MACKEREL
	bool "mackerel board"
	depends on ARCH_SH7372
198
	select ARCH_REQUIRE_GPIOLIB
199
	select REGULATOR_FIXED_VOLTAGE if REGULATOR
200
	select SMSC_PHY if SMSC911X
201
	select SND_SOC_AK4642 if SND_SIMPLE_CARD
202
	select USE_OF
203

204 205 206 207
config MACH_ARMADILLO800EVA
	bool "Armadillo-800 EVA board"
	depends on ARCH_R8A7740
	select ARCH_REQUIRE_GPIOLIB
208
	select REGULATOR_FIXED_VOLTAGE if REGULATOR
209
	select SMSC_PHY if SH_ETH
210
	select SND_SOC_WM8978 if SND_SIMPLE_CARD
211
	select USE_OF
212

213 214 215 216 217
config MACH_ARMADILLO800EVA_REFERENCE
	bool "Armadillo-800 EVA board - Reference Device Tree Implementation"
	depends on ARCH_R8A7740
	select ARCH_REQUIRE_GPIOLIB
	select REGULATOR_FIXED_VOLTAGE if REGULATOR
218
	select SMSC_PHY if SH_ETH
219 220 221
	select SND_SOC_WM8978 if SND_SIMPLE_CARD
	select USE_OF
	---help---
222 223
	   Use reference implementation of Armadillo800 EVA board support
	   which makes greater use of device tree at the expense
224 225 226 227
	   of not supporting a number of devices.

	   This is intended to aid developers

228 229 230 231
config MACH_BOCKW
	bool "BOCK-W platform"
	depends on ARCH_R8A7778
	select ARCH_REQUIRE_GPIOLIB
232
	select REGULATOR_FIXED_VOLTAGE if REGULATOR
233 234
	select SND_SOC_AK4554 if SND_SIMPLE_CARD
	select SND_SOC_AK4642 if SND_SIMPLE_CARD
235
	select USE_OF
236

237 238 239 240 241 242 243 244 245 246 247 248 249
config MACH_BOCKW_REFERENCE
	bool "BOCK-W  - Reference Device Tree Implementation"
	depends on ARCH_R8A7778
	select ARCH_REQUIRE_GPIOLIB
	select REGULATOR_FIXED_VOLTAGE if REGULATOR
	select USE_OF
	---help---
	   Use reference implementation of BockW board support
	   which makes use of device tree at the expense
	   of not supporting a number of devices.

	   This is intended to aid developers

M
Magnus Damm 已提交
250 251 252 253 254
config MACH_GENMAI
	bool "Genmai board"
	depends on ARCH_R7S72100
	select USE_OF

255 256 257
config MACH_MARZEN
	bool "MARZEN board"
	depends on ARCH_R8A7779
258
	select ARCH_REQUIRE_GPIOLIB
259
	select REGULATOR_FIXED_VOLTAGE if REGULATOR
260
	select USE_OF
261

262 263 264 265
config MACH_LAGER
	bool "Lager board"
	depends on ARCH_R8A7790
	select USE_OF
266
	select MICREL_PHY if SH_ETH
267
	select SND_SOC_AK4642 if SND_SIMPLE_CARD
268

269 270 271 272
config MACH_KOELSCH
	bool "Koelsch board"
	depends on ARCH_R8A7791
	select USE_OF
273
	select MICREL_PHY if SH_ETH
274

275 276 277 278
config MACH_KZM9G
	bool "KZM-A9-GT board"
	depends on ARCH_SH73A0
	select ARCH_REQUIRE_GPIOLIB
279
	select REGULATOR_FIXED_VOLTAGE if REGULATOR
280 281
	select SND_SOC_AK4642 if SND_SIMPLE_CARD
	select USE_OF
282

283 284
config MACH_KZM9G_REFERENCE
	bool "KZM-A9-GT board - Reference Device Tree Implementation"
285 286 287 288 289
	depends on ARCH_SH73A0
	select ARCH_REQUIRE_GPIOLIB
	select REGULATOR_FIXED_VOLTAGE if REGULATOR
	select SND_SOC_AK4642 if SND_SIMPLE_CARD
	select USE_OF
290 291 292 293 294 295 296
	---help---
	   Use reference implementation of KZM-A9-GT board support
	   which makes as greater use of device tree at the expense
	   of not supporting a number of devices.

	   This is intended to aid developers

297
comment "Renesas ARM SoCs System Configuration"
298

299 300 301 302
config CPU_HAS_INTEVT
        bool
	default y

303 304 305 306 307 308 309
config SH_CLK_CPG
	bool

source "drivers/sh/Kconfig"

endif

310
if ARCH_SHMOBILE
311

312 313
menu "Timer and clock configuration"

314 315 316 317 318 319 320 321
config SHMOBILE_TIMER_HZ
	int "Kernel HZ (jiffies per second)"
	range 32 1024
	default "128"
	help
	  Allows the configuration of the timer frequency. It is customary
	  to have the timer interrupt run at 1000 Hz or 100 Hz, but in the
	  case of low timer frequencies other values may be more suitable.
322 323
	  Renesas ARM SoC systems using a 32768 Hz RCLK for clock events may
	  want to select a HZ value such as 128 that can evenly divide RCLK.
324 325
	  A HZ value that does not divide evenly may cause timer drift.

326 327 328
endmenu

endif