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