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