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