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