xref: /linux/arch/arm/mach-shmobile/Kconfig (revision a521422ea4ae6128474f7705f02f6ab5cebf8675)
1config ARCH_SHMOBILE
2	bool
3	select ZONE_DMA if ARM_LPAE
4
5config PM_RCAR
6	bool
7
8config PM_RMOBILE
9	bool
10	select PM_GENERIC_DOMAINS
11
12config ARCH_RCAR_GEN1
13	bool
14	select PM_RCAR if PM || SMP
15	select RENESAS_INTC_IRQPIN
16	select SYS_SUPPORTS_SH_TMU
17
18config ARCH_RCAR_GEN2
19	bool
20	select PM_RCAR if PM || SMP
21	select RENESAS_IRQC
22	select SYS_SUPPORTS_SH_CMT
23	select PCI_DOMAINS if PCI
24
25config ARCH_RMOBILE
26	bool
27	select PM_RMOBILE if PM
28	select SYS_SUPPORTS_SH_CMT
29	select SYS_SUPPORTS_SH_TMU
30
31menuconfig ARCH_SHMOBILE_MULTI
32	bool "Renesas ARM SoCs" if ARCH_MULTI_V7
33	depends on MMU
34	select ARCH_SHMOBILE
35	select HAVE_ARM_SCU if SMP
36	select HAVE_ARM_TWD if SMP
37	select ARM_GIC
38	select ARCH_DMA_ADDR_T_64BIT if ARM_LPAE
39	select NO_IOPORT_MAP
40	select PINCTRL
41	select ARCH_REQUIRE_GPIOLIB
42
43if ARCH_SHMOBILE_MULTI
44
45#comment "Renesas ARM SoCs System Type"
46
47config ARCH_EMEV2
48	bool "Emma Mobile EV2"
49	select SYS_SUPPORTS_EM_STI
50
51config ARCH_R7S72100
52	bool "RZ/A1H (R7S72100)"
53	select SYS_SUPPORTS_SH_MTU2
54
55config ARCH_R8A73A4
56	bool "R-Mobile APE6 (R8A73A40)"
57	select ARCH_RMOBILE
58	select RENESAS_IRQC
59
60config ARCH_R8A7740
61	bool "R-Mobile A1 (R8A77400)"
62	select ARCH_RMOBILE
63	select RENESAS_INTC_IRQPIN
64
65config ARCH_R8A7779
66	bool "R-Car H1 (R8A77790)"
67	select ARCH_RCAR_GEN1
68
69config ARCH_R8A7790
70	bool "R-Car H2 (R8A77900)"
71	select ARCH_RCAR_GEN2
72
73config ARCH_R8A7791
74	bool "R-Car M2-W (R8A77910)"
75	select ARCH_RCAR_GEN2
76
77config ARCH_R8A7794
78	bool "R-Car E2 (R8A77940)"
79	select ARCH_RCAR_GEN2
80
81comment "Renesas ARM SoCs Board Type"
82
83config MACH_MARZEN
84	bool "MARZEN board"
85	depends on ARCH_R8A7779
86	select REGULATOR_FIXED_VOLTAGE if REGULATOR
87
88comment "Renesas ARM SoCs System Configuration"
89endif
90
91if ARCH_SHMOBILE_LEGACY
92
93comment "Renesas ARM SoCs System Type"
94
95config ARCH_SH7372
96	bool "SH-Mobile AP4 (SH7372)"
97	select ARCH_RMOBILE
98	select ARCH_WANT_OPTIONAL_GPIOLIB
99	select ARM_CPU_SUSPEND if PM || CPU_IDLE
100	select SH_INTC
101
102config ARCH_SH73A0
103	bool "SH-Mobile AG5 (R8A73A00)"
104	select ARCH_RMOBILE
105	select ARCH_WANT_OPTIONAL_GPIOLIB
106	select ARM_GIC
107	select I2C
108	select SH_INTC
109	select RENESAS_INTC_IRQPIN
110
111config ARCH_R8A73A4
112	bool "R-Mobile APE6 (R8A73A40)"
113	select ARCH_RMOBILE
114	select ARCH_WANT_OPTIONAL_GPIOLIB
115	select ARM_GIC
116	select RENESAS_IRQC
117
118config ARCH_R8A7740
119	bool "R-Mobile A1 (R8A77400)"
120	select ARCH_RMOBILE
121	select ARCH_WANT_OPTIONAL_GPIOLIB
122	select ARM_GIC
123	select RENESAS_INTC_IRQPIN
124
125config ARCH_R8A7778
126	bool "R-Car M1A (R8A77781)"
127	select ARCH_RCAR_GEN1
128	select ARCH_WANT_OPTIONAL_GPIOLIB
129	select ARM_GIC
130
131config ARCH_R8A7779
132	bool "R-Car H1 (R8A77790)"
133	select ARCH_RCAR_GEN1
134	select ARCH_WANT_OPTIONAL_GPIOLIB
135	select ARM_GIC
136
137comment "Renesas ARM SoCs Board Type"
138
139config MACH_APE6EVM
140	bool "APE6EVM board"
141	depends on ARCH_R8A73A4
142	select SMSC_PHY if SMSC911X
143	select USE_OF
144
145config MACH_APE6EVM_REFERENCE
146	bool "APE6EVM board - Reference Device Tree Implementation"
147	depends on ARCH_R8A73A4
148	select SMSC_PHY if SMSC911X
149	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
157config MACH_ARMADILLO800EVA
158	bool "Armadillo-800 EVA board"
159	depends on ARCH_R8A7740
160	select ARCH_REQUIRE_GPIOLIB
161	select REGULATOR_FIXED_VOLTAGE if REGULATOR
162	select SMSC_PHY if SH_ETH
163	select SND_SOC_WM8978 if SND_SIMPLE_CARD
164	select USE_OF
165
166config MACH_BOCKW
167	bool "BOCK-W platform"
168	depends on ARCH_R8A7778
169	select ARCH_REQUIRE_GPIOLIB
170	select REGULATOR_FIXED_VOLTAGE if REGULATOR
171	select SND_SOC_AK4554 if SND_SIMPLE_CARD
172	select SND_SOC_AK4642 if SND_SIMPLE_CARD
173	select USE_OF
174
175config MACH_BOCKW_REFERENCE
176	bool "BOCK-W  - Reference Device Tree Implementation"
177	depends on ARCH_R8A7778
178	select ARCH_REQUIRE_GPIOLIB
179	select REGULATOR_FIXED_VOLTAGE if REGULATOR
180	select USE_OF
181	---help---
182	   Use reference implementation of BockW board support
183	   which makes use of device tree at the expense
184	   of not supporting a number of devices.
185
186	   This is intended to aid developers
187
188config MACH_MARZEN
189	bool "MARZEN board"
190	depends on ARCH_R8A7779
191	select ARCH_REQUIRE_GPIOLIB
192	select REGULATOR_FIXED_VOLTAGE if REGULATOR
193	select USE_OF
194
195config MACH_KZM9G
196	bool "KZM-A9-GT board"
197	depends on ARCH_SH73A0
198	select ARCH_REQUIRE_GPIOLIB
199	select REGULATOR_FIXED_VOLTAGE if REGULATOR
200	select SND_SOC_AK4642 if SND_SIMPLE_CARD
201	select USE_OF
202
203config MACH_KZM9G_REFERENCE
204	bool "KZM-A9-GT board - Reference Device Tree Implementation"
205	depends on ARCH_SH73A0
206	select ARCH_REQUIRE_GPIOLIB
207	select REGULATOR_FIXED_VOLTAGE if REGULATOR
208	select SND_SOC_AK4642 if SND_SIMPLE_CARD
209	select USE_OF
210	---help---
211	   Use reference implementation of KZM-A9-GT board support
212	   which makes as greater use of device tree at the expense
213	   of not supporting a number of devices.
214
215	   This is intended to aid developers
216
217comment "Renesas ARM SoCs System Configuration"
218
219config CPU_HAS_INTEVT
220        bool
221	default y
222
223config SH_CLK_CPG
224	bool
225
226source "drivers/sh/Kconfig"
227
228endif
229
230if ARCH_SHMOBILE
231
232menu "Timer and clock configuration"
233
234config SHMOBILE_TIMER_HZ
235	int "Kernel HZ (jiffies per second)"
236	range 32 1024
237	default "128"
238	help
239	  Allows the configuration of the timer frequency. It is customary
240	  to have the timer interrupt run at 1000 Hz or 100 Hz, but in the
241	  case of low timer frequencies other values may be more suitable.
242	  Renesas ARM SoC systems using a 32768 Hz RCLK for clock events may
243	  want to select a HZ value such as 128 that can evenly divide RCLK.
244	  A HZ value that does not divide evenly may cause timer drift.
245
246endmenu
247
248endif
249