blob: f7da7042f4cfb37d09e54d2386a26604c3440016 [file] [log] [blame]
Ian Campbell2c7e3b92014-10-24 21:20:44 +01001if ARCH_SUNXI
2
3choice
4 prompt "Sunxi SoC Variant"
5
Ian Campbellc3be2792014-10-24 21:20:45 +01006config MACH_SUN4I
Ian Campbell2c7e3b92014-10-24 21:20:44 +01007 bool "sun4i (Allwinner A10)"
8 select CPU_V7
9 select SUPPORT_SPL
10
Ian Campbellc3be2792014-10-24 21:20:45 +010011config MACH_SUN5I
Ian Campbell2c7e3b92014-10-24 21:20:44 +010012 bool "sun5i (Allwinner A13)"
13 select CPU_V7
14 select SUPPORT_SPL
15
Ian Campbellc3be2792014-10-24 21:20:45 +010016config MACH_SUN6I
Ian Campbell2c7e3b92014-10-24 21:20:44 +010017 bool "sun6i (Allwinner A31)"
18 select CPU_V7
Hans de Goede8c2c9cf2014-10-25 20:18:10 +020019 select SUPPORT_SPL
Ian Campbell2c7e3b92014-10-24 21:20:44 +010020
Ian Campbellc3be2792014-10-24 21:20:45 +010021config MACH_SUN7I
Ian Campbell2c7e3b92014-10-24 21:20:44 +010022 bool "sun7i (Allwinner A20)"
23 select CPU_V7
Hans de Goedeea624e12014-11-14 09:34:30 +010024 select CPU_V7_HAS_NONSEC
25 select CPU_V7_HAS_VIRT
Ian Campbell2c7e3b92014-10-24 21:20:44 +010026 select SUPPORT_SPL
Hans de Goedeb366fb92014-10-24 20:12:04 +020027 select ARMV7_BOOT_SEC_DEFAULT if OLD_SUNXI_KERNEL_COMPAT
Ian Campbell2c7e3b92014-10-24 21:20:44 +010028
Ian Campbellc3be2792014-10-24 21:20:45 +010029config MACH_SUN8I
Ian Campbell2c7e3b92014-10-24 21:20:44 +010030 bool "sun8i (Allwinner A23)"
31 select CPU_V7
32
33endchoice
Maxime Ripard8a6564d2014-10-03 20:16:29 +080034
Hans de Goede37781a12014-11-15 19:46:39 +010035if MACH_SUN6I
36
37config DRAM_CLK
38 int "sun6i dram clock speed"
39 default 312
40 ---help---
41 Set the dram clock speed, valid range 240 - 480, must be a multiple
42 of 24.
43
44config DRAM_ZQ
45 int "sun6i dram zq value"
46 default 123
47 ---help---
48 Set the dram zq value.
49
50endif
51
Maxime Ripard8a6564d2014-10-03 20:16:29 +080052config SYS_CONFIG_NAME
Ian Campbellc3be2792014-10-24 21:20:45 +010053 default "sun4i" if MACH_SUN4I
54 default "sun5i" if MACH_SUN5I
55 default "sun6i" if MACH_SUN6I
56 default "sun7i" if MACH_SUN7I
57 default "sun8i" if MACH_SUN8I
Hans de Goede6ae66f22014-08-01 09:28:24 +020058
Ian Campbelld9a20472014-10-24 21:20:49 +010059choice
60 prompt "Board"
61
62config TARGET_A10_OLINUXINO_L
63 bool "A10_OLINUXINO_L"
64 depends on MACH_SUN4I
65
66config TARGET_A10S_OLINUXINO_M
67 bool "A10S_OLINUXINO_M"
68 depends on MACH_SUN5I
69
70config TARGET_A13_OLINUXINOM
71 bool "A13_OLINUXINOM"
72 depends on MACH_SUN5I
73
74config TARGET_A13_OLINUXINO
75 bool "A13_OLINUXINO"
76 depends on MACH_SUN5I
77
78config TARGET_A20_OLINUXINO_L2
79 bool "A20_OLINUXINO_L2"
80 depends on MACH_SUN7I
81
82config TARGET_A20_OLINUXINO_L
83 bool "A20_OLINUXINO_L"
84 depends on MACH_SUN7I
85
86config TARGET_A20_OLINUXINO_M
87 bool "A20_OLINUXINO_M"
88 depends on MACH_SUN7I
89
90config TARGET_AUXTEK_T004
91 bool "AUXTEK_T004"
92 depends on MACH_SUN5I
93
94config TARGET_BANANAPI
95 bool "BANANAPI"
96 depends on MACH_SUN7I
97
98config TARGET_COLOMBUS
99 bool "COLOMBUS"
100 depends on MACH_SUN6I
101
102config TARGET_CUBIEBOARD2
103 bool "CUBIEBOARD2"
104 depends on MACH_SUN7I
105
106config TARGET_CUBIEBOARD
107 bool "CUBIEBOARD"
108 depends on MACH_SUN4I
109
110config TARGET_CUBIETRUCK
111 bool "CUBIETRUCK"
112 depends on MACH_SUN7I
113
114config TARGET_IPPO_Q8H_V5
115 bool "IPPO_Q8H_V5"
116 depends on MACH_SUN8I
117
118config TARGET_PCDUINO3
119 bool "PCDUINO3"
120 depends on MACH_SUN7I
121
122config TARGET_MELE_A1000G
123 bool "MELE_A1000G"
124 depends on MACH_SUN4I
125
126config TARGET_MELE_A1000
127 bool "MELE_A1000"
128 depends on MACH_SUN4I
129
130config TARGET_MELE_M3
131 bool "MELE_M3"
132 depends on MACH_SUN7I
133
Hans de Goede505ecee2014-10-27 23:29:49 +0100134config TARGET_MELE_M9
135 bool "MELE_M9"
136 depends on MACH_SUN6I
137
Ian Campbelld9a20472014-10-24 21:20:49 +0100138config TARGET_MINI_X_1GB
139 bool "MINI_X_1GB"
140 depends on MACH_SUN4I
141
142config TARGET_MINI_X
143 bool "MINI_X"
144 depends on MACH_SUN4I
145
146config TARGET_BA10_TV_BOX
147 bool "BA10_TV_BOX"
148 depends on MACH_SUN4I
149
150config TARGET_I12_TVBOX
151 bool "I12_TVBOX"
152 depends on MACH_SUN7I
153
154config TARGET_QT840A
155 bool "QT840A"
156 depends on MACH_SUN7I
157
158config TARGET_R7DONGLE
159 bool "R7DONGLE"
160 depends on MACH_SUN5I
161
162endchoice
163
Masahiro Yamadadd840582014-07-30 14:08:14 +0900164config SYS_BOARD
Masahiro Yamadadd840582014-07-30 14:08:14 +0900165 default "sunxi"
166
167config SYS_SOC
Masahiro Yamadadd840582014-07-30 14:08:14 +0900168 default "sunxi"
169
Ian Campbell4ce99412014-10-24 21:20:46 +0100170config SPL_FEL
171 bool "SPL/FEL mode support"
172 depends on SPL
173 default n
174
Ian Campbell98e214d2014-08-31 13:13:43 +0100175config FDTFILE
176 string "Default fdtfile env setting for this board"
Hans de Goede846e3252014-08-01 09:37:58 +0200177
Hans de Goedeaccc9e42014-10-22 14:56:36 +0200178config OLD_SUNXI_KERNEL_COMPAT
179 boolean "Enable workarounds for booting old kernels"
180 default n
181 ---help---
182 Set this to enable various workarounds for old kernels, this results in
183 sub-optimal settings for newer kernels, only enable if needed.
184
Hans de Goedecd821132014-10-02 20:29:26 +0200185config MMC0_CD_PIN
186 string "Card detect pin for mmc0"
187 default ""
188 ---help---
189 Set the card detect pin for mmc0, leave empty to not use cd. This
190 takes a string in the format understood by sunxi_name_to_gpio, e.g.
191 PH1 for pin 1 of port H.
192
193config MMC1_CD_PIN
194 string "Card detect pin for mmc1"
195 default ""
196 ---help---
197 See MMC0_CD_PIN help text.
198
199config MMC2_CD_PIN
200 string "Card detect pin for mmc2"
201 default ""
202 ---help---
203 See MMC0_CD_PIN help text.
204
205config MMC3_CD_PIN
206 string "Card detect pin for mmc3"
207 default ""
208 ---help---
209 See MMC0_CD_PIN help text.
210
Hans de Goede2ccfac02014-10-02 20:43:50 +0200211config MMC_SUNXI_SLOT_EXTRA
212 int "mmc extra slot number"
213 default -1
214 ---help---
215 sunxi builds always enable mmc0, some boards also have a second sdcard
216 slot or emmc on mmc1 - mmc3. Setting this to 1, 2 or 3 will enable
217 support for this.
218
Hans de Goede115200c2014-11-07 16:09:00 +0100219config USB1_VBUS_PIN
220 string "Vbus enable pin for usb1 (ehci0)"
221 default "PH6" if MACH_SUN4I || MACH_SUN7I
Hans de Goede76946df2014-11-07 14:51:12 +0100222 default "PH27" if MACH_SUN6I
Hans de Goede115200c2014-11-07 16:09:00 +0100223 ---help---
224 Set the Vbus enable pin for usb1 (ehci0, usb0 is the otg). This takes
225 a string in the format understood by sunxi_name_to_gpio, e.g.
226 PH1 for pin 1 of port H.
227
228config USB2_VBUS_PIN
229 string "Vbus enable pin for usb2 (ehci1)"
230 default "PH3" if MACH_SUN4I || MACH_SUN7I
Hans de Goede76946df2014-11-07 14:51:12 +0100231 default "PH24" if MACH_SUN6I
Hans de Goede115200c2014-11-07 16:09:00 +0100232 ---help---
233 See USB1_VBUS_PIN help text.
234
Luc Verhaegen7f2c5212014-08-13 07:55:06 +0200235config VIDEO
236 boolean "Enable graphical uboot console on HDMI"
237 default y
238 ---help---
239 Say Y here to add support for using a cfb console on the HDMI output
240 found on most sunxi devices.
241
Hans de Goede86b49092014-09-18 21:03:34 +0200242config USB_KEYBOARD
243 boolean "Enable USB keyboard support"
244 default y
245 ---help---
246 Say Y here to add support for using a USB keyboard (typically used
247 in combination with a graphical console on HDMI).
248
Masahiro Yamadadd840582014-07-30 14:08:14 +0900249endif