xref: /linux/arch/arm/mach-shmobile/Kconfig (revision 809609a5d8427b0025304dbb69a84a692d11c4f9)
1if ARCH_SHMOBILE
2
3comment "SH-Mobile System Type"
4
5config ARCH_SH7372
6	bool "SH-Mobile AP4 (SH7372)"
7	select ARCH_WANT_OPTIONAL_GPIOLIB
8	select ARM_CPU_SUSPEND if PM || CPU_IDLE
9	select CPU_V7
10	select SH_CLK_CPG
11
12config ARCH_SH73A0
13	bool "SH-Mobile AG5 (R8A73A00)"
14	select ARCH_WANT_OPTIONAL_GPIOLIB
15	select ARM_GIC
16	select CPU_V7
17	select I2C
18	select SH_CLK_CPG
19	select RENESAS_INTC_IRQPIN
20
21config ARCH_R8A73A4
22	bool "R-Mobile APE6 (R8A73A40)"
23	select ARCH_WANT_OPTIONAL_GPIOLIB
24	select ARM_GIC
25	select CPU_V7
26	select ARM_ARCH_TIMER
27	select SH_CLK_CPG
28	select RENESAS_IRQC
29
30config ARCH_R8A7740
31	bool "R-Mobile A1 (R8A77400)"
32	select ARCH_WANT_OPTIONAL_GPIOLIB
33	select ARM_GIC
34	select CPU_V7
35	select SH_CLK_CPG
36	select RENESAS_INTC_IRQPIN
37
38config ARCH_R8A7778
39	bool "R-Car M1 (R8A77780)"
40	select CPU_V7
41	select SH_CLK_CPG
42	select ARM_GIC
43
44config ARCH_R8A7779
45	bool "R-Car H1 (R8A77790)"
46	select ARCH_WANT_OPTIONAL_GPIOLIB
47	select ARM_GIC
48	select CPU_V7
49	select SH_CLK_CPG
50	select USB_ARCH_HAS_EHCI
51	select USB_ARCH_HAS_OHCI
52	select RENESAS_INTC_IRQPIN
53
54config ARCH_R8A7790
55	bool "R-Car H2 (R8A77900)"
56	select ARCH_WANT_OPTIONAL_GPIOLIB
57	select ARM_GIC
58	select CPU_V7
59	select ARM_ARCH_TIMER
60	select SH_CLK_CPG
61	select RENESAS_IRQC
62
63config ARCH_EMEV2
64	bool "Emma Mobile EV2"
65	select ARCH_WANT_OPTIONAL_GPIOLIB
66	select ARM_GIC
67	select CPU_V7
68
69comment "SH-Mobile Board Type"
70
71config MACH_AP4EVB
72	bool "AP4EVB board"
73	depends on ARCH_SH7372
74	select ARCH_REQUIRE_GPIOLIB
75	select REGULATOR_FIXED_VOLTAGE if REGULATOR
76	select SH_LCD_MIPI_DSI
77	select SND_SOC_AK4642 if SND_SIMPLE_CARD
78
79choice
80	prompt "AP4EVB LCD panel selection"
81	default AP4EVB_QHD
82	depends on MACH_AP4EVB
83
84config AP4EVB_QHD
85	bool "MIPI-DSI QHD (960x540)"
86
87config AP4EVB_WVGA
88	bool "Parallel WVGA (800x480)"
89
90endchoice
91
92config MACH_AG5EVM
93	bool "AG5EVM board"
94	depends on ARCH_SH73A0
95	select ARCH_REQUIRE_GPIOLIB
96	select REGULATOR_FIXED_VOLTAGE if REGULATOR
97	select SH_LCD_MIPI_DSI
98
99config MACH_MACKEREL
100	bool "mackerel board"
101	depends on ARCH_SH7372
102	select ARCH_REQUIRE_GPIOLIB
103	select REGULATOR_FIXED_VOLTAGE if REGULATOR
104	select SND_SOC_AK4642 if SND_SIMPLE_CARD
105	select USE_OF
106
107config MACH_KOTA2
108	bool "KOTA2 board"
109	depends on ARCH_SH73A0
110	select ARCH_REQUIRE_GPIOLIB
111	select REGULATOR_FIXED_VOLTAGE if REGULATOR
112
113config MACH_BONITO
114	bool "bonito board"
115	depends on ARCH_R8A7740
116	select ARCH_REQUIRE_GPIOLIB
117	select REGULATOR_FIXED_VOLTAGE if REGULATOR
118
119config MACH_ARMADILLO800EVA
120	bool "Armadillo-800 EVA board"
121	depends on ARCH_R8A7740
122	select ARCH_REQUIRE_GPIOLIB
123	select REGULATOR_FIXED_VOLTAGE if REGULATOR
124	select SND_SOC_WM8978 if SND_SIMPLE_CARD
125	select USE_OF
126
127config MACH_MARZEN
128	bool "MARZEN board"
129	depends on ARCH_R8A7779
130	select ARCH_REQUIRE_GPIOLIB
131	select REGULATOR_FIXED_VOLTAGE if REGULATOR
132
133config MACH_KZM9D
134	bool "KZM9D board"
135	depends on ARCH_EMEV2
136	select REGULATOR_FIXED_VOLTAGE if REGULATOR
137	select USE_OF
138
139config MACH_KZM9G
140	bool "KZM-A9-GT board"
141	depends on ARCH_SH73A0
142	select ARCH_REQUIRE_GPIOLIB
143	select REGULATOR_FIXED_VOLTAGE if REGULATOR
144	select SND_SOC_AK4642 if SND_SIMPLE_CARD
145	select USE_OF
146
147comment "SH-Mobile System Configuration"
148
149config CPU_HAS_INTEVT
150        bool
151	default y
152
153menu "Memory configuration"
154
155config MEMORY_START
156	hex "Physical memory start address"
157	default "0x40000000" if MACH_AP4EVB || MACH_AG5EVM || \
158				MACH_MACKEREL || MACH_BONITO || \
159				MACH_ARMADILLO800EVA
160	default "0x41000000" if MACH_KOTA2
161	default "0x00000000"
162	---help---
163	  Tweak this only when porting to a new machine which does not
164	  already have a defconfig. Changing it from the known correct
165	  value on any of the known systems will only lead to disaster.
166
167config MEMORY_SIZE
168	hex "Physical memory size"
169	default "0x20000000" if MACH_AG5EVM || MACH_BONITO || \
170				MACH_ARMADILLO800EVA
171	default "0x1e000000" if MACH_KOTA2
172	default "0x10000000" if MACH_AP4EVB || MACH_MACKEREL
173	default "0x04000000"
174	help
175	  This sets the default memory size assumed by your kernel. It can
176	  be overridden as normal by the 'mem=' argument on the kernel command
177	  line.
178
179endmenu
180
181menu "Timer and clock configuration"
182
183config SHMOBILE_TIMER_HZ
184	int "Kernel HZ (jiffies per second)"
185	range 32 1024
186	default "128"
187	help
188	  Allows the configuration of the timer frequency. It is customary
189	  to have the timer interrupt run at 1000 Hz or 100 Hz, but in the
190	  case of low timer frequencies other values may be more suitable.
191	  SH-Mobile systems using a 32768 Hz RCLK for clock events may want
192	  to select a HZ value such as 128 that can evenly divide RCLK.
193	  A HZ value that does not divide evenly may cause timer drift.
194
195config SH_TIMER_CMT
196	bool "CMT timer driver"
197	default y
198	help
199	  This enables build of the CMT timer driver.
200
201config SH_TIMER_TMU
202	bool "TMU timer driver"
203	default y
204	help
205	  This enables build of the TMU timer driver.
206
207config EM_TIMER_STI
208	bool "STI timer driver"
209	default y
210	help
211	  This enables build of the STI timer driver.
212
213endmenu
214
215config SH_CLK_CPG
216	bool
217
218source "drivers/sh/Kconfig"
219
220endif
221