blob: 40adcfb4010ca4b83746b17500c3164db8a677ef [file] [log] [blame]
Ian Campbelld8e69e02014-10-24 21:20:44 +01001if ARCH_SUNXI
2
3choice
4 prompt "Sunxi SoC Variant"
5
Ian Campbell4a24a1c2014-10-24 21:20:45 +01006config MACH_SUN4I
Ian Campbelld8e69e02014-10-24 21:20:44 +01007 bool "sun4i (Allwinner A10)"
8 select CPU_V7
9 select SUPPORT_SPL
10
Ian Campbell4a24a1c2014-10-24 21:20:45 +010011config MACH_SUN5I
Ian Campbelld8e69e02014-10-24 21:20:44 +010012 bool "sun5i (Allwinner A13)"
13 select CPU_V7
14 select SUPPORT_SPL
15
Ian Campbell4a24a1c2014-10-24 21:20:45 +010016config MACH_SUN6I
Ian Campbelld8e69e02014-10-24 21:20:44 +010017 bool "sun6i (Allwinner A31)"
18 select CPU_V7
Hans de Goedea5403b92014-10-25 20:18:10 +020019 select SUPPORT_SPL
Ian Campbelld8e69e02014-10-24 21:20:44 +010020
Ian Campbell4a24a1c2014-10-24 21:20:45 +010021config MACH_SUN7I
Ian Campbelld8e69e02014-10-24 21:20:44 +010022 bool "sun7i (Allwinner A20)"
23 select CPU_V7
Hans de Goede85437352014-11-14 09:34:30 +010024 select CPU_V7_HAS_NONSEC
25 select CPU_V7_HAS_VIRT
Ian Campbelld8e69e02014-10-24 21:20:44 +010026 select SUPPORT_SPL
Hans de Goedea5636382014-10-24 20:12:04 +020027 select ARMV7_BOOT_SEC_DEFAULT if OLD_SUNXI_KERNEL_COMPAT
Ian Campbelld8e69e02014-10-24 21:20:44 +010028
Ian Campbell4a24a1c2014-10-24 21:20:45 +010029config MACH_SUN8I
Ian Campbelld8e69e02014-10-24 21:20:44 +010030 bool "sun8i (Allwinner A23)"
31 select CPU_V7
Hans de Goede966d2392014-12-07 14:34:27 +010032 select SUPPORT_SPL
Ian Campbelld8e69e02014-10-24 21:20:44 +010033
34endchoice
Maxime Ripard2c519412014-10-03 20:16:29 +080035
Hans de Goede966d2392014-12-07 14:34:27 +010036if MACH_SUN6I || MACH_SUN8I
Hans de Goede3aeaa282014-11-15 19:46:39 +010037
38config DRAM_CLK
39 int "sun6i dram clock speed"
40 default 312
41 ---help---
42 Set the dram clock speed, valid range 240 - 480, must be a multiple
43 of 24.
44
45config DRAM_ZQ
46 int "sun6i dram zq value"
47 default 123
48 ---help---
49 Set the dram zq value.
50
51endif
52
Maxime Ripard2c519412014-10-03 20:16:29 +080053config SYS_CONFIG_NAME
Ian Campbell4a24a1c2014-10-24 21:20:45 +010054 default "sun4i" if MACH_SUN4I
55 default "sun5i" if MACH_SUN5I
56 default "sun6i" if MACH_SUN6I
57 default "sun7i" if MACH_SUN7I
58 default "sun8i" if MACH_SUN8I
Masahiro Yamadad3ae6782014-07-30 14:08:14 +090059
Ian Campbell0ea187d2014-10-24 21:20:49 +010060choice
61 prompt "Board"
62
63config TARGET_A10_OLINUXINO_L
64 bool "A10_OLINUXINO_L"
65 depends on MACH_SUN4I
66
67config TARGET_A10S_OLINUXINO_M
68 bool "A10S_OLINUXINO_M"
69 depends on MACH_SUN5I
70
71config TARGET_A13_OLINUXINOM
72 bool "A13_OLINUXINOM"
73 depends on MACH_SUN5I
74
75config TARGET_A13_OLINUXINO
76 bool "A13_OLINUXINO"
77 depends on MACH_SUN5I
78
79config TARGET_A20_OLINUXINO_L2
80 bool "A20_OLINUXINO_L2"
81 depends on MACH_SUN7I
82
83config TARGET_A20_OLINUXINO_L
84 bool "A20_OLINUXINO_L"
85 depends on MACH_SUN7I
86
87config TARGET_A20_OLINUXINO_M
88 bool "A20_OLINUXINO_M"
89 depends on MACH_SUN7I
90
91config TARGET_AUXTEK_T004
92 bool "AUXTEK_T004"
93 depends on MACH_SUN5I
94
95config TARGET_BANANAPI
96 bool "BANANAPI"
97 depends on MACH_SUN7I
98
99config TARGET_COLOMBUS
100 bool "COLOMBUS"
101 depends on MACH_SUN6I
102
103config TARGET_CUBIEBOARD2
104 bool "CUBIEBOARD2"
105 depends on MACH_SUN7I
106
107config TARGET_CUBIEBOARD
108 bool "CUBIEBOARD"
109 depends on MACH_SUN4I
110
111config TARGET_CUBIETRUCK
112 bool "CUBIETRUCK"
113 depends on MACH_SUN7I
114
Chen-Yu Tsaicef9cdc2014-12-09 16:56:53 +0800115config TARGET_HUMMINGBIRD_A31
116 bool "HUMMINGBIRD_A31"
117 depends on MACH_SUN6I
118
Ian Campbell0ea187d2014-10-24 21:20:49 +0100119config TARGET_IPPO_Q8H_V5
120 bool "IPPO_Q8H_V5"
121 depends on MACH_SUN8I
122
123config TARGET_PCDUINO3
124 bool "PCDUINO3"
125 depends on MACH_SUN7I
126
127config TARGET_MELE_A1000G
128 bool "MELE_A1000G"
129 depends on MACH_SUN4I
130
131config TARGET_MELE_A1000
132 bool "MELE_A1000"
133 depends on MACH_SUN4I
134
135config TARGET_MELE_M3
136 bool "MELE_M3"
137 depends on MACH_SUN7I
138
Hans de Goede09f57482014-10-27 23:29:49 +0100139config TARGET_MELE_M9
140 bool "MELE_M9"
141 depends on MACH_SUN6I
142
Ian Campbell0ea187d2014-10-24 21:20:49 +0100143config TARGET_MINI_X_1GB
144 bool "MINI_X_1GB"
145 depends on MACH_SUN4I
146
147config TARGET_MINI_X
148 bool "MINI_X"
149 depends on MACH_SUN4I
150
151config TARGET_BA10_TV_BOX
152 bool "BA10_TV_BOX"
153 depends on MACH_SUN4I
154
155config TARGET_I12_TVBOX
156 bool "I12_TVBOX"
157 depends on MACH_SUN7I
158
159config TARGET_QT840A
160 bool "QT840A"
161 depends on MACH_SUN7I
162
163config TARGET_R7DONGLE
164 bool "R7DONGLE"
165 depends on MACH_SUN5I
166
167endchoice
168
Masahiro Yamadad3ae6782014-07-30 14:08:14 +0900169config SYS_BOARD
Masahiro Yamadad3ae6782014-07-30 14:08:14 +0900170 default "sunxi"
171
172config SYS_SOC
Masahiro Yamadad3ae6782014-07-30 14:08:14 +0900173 default "sunxi"
174
Ian Campbell8ad104b2014-10-24 21:20:46 +0100175config SPL_FEL
176 bool "SPL/FEL mode support"
177 depends on SPL
178 default n
179
Siarhei Siamashka121161f2014-12-25 02:34:47 +0200180config UART0_PORT_F
181 bool "UART0 on MicroSD breakout board"
182 depends on SPL_FEL
183 default n
184 ---help---
185 Repurpose the SD card slot for getting access to the UART0 serial
186 console. Primarily useful only for low level u-boot debugging on
187 tablets, where normal UART0 is difficult to access and requires
188 device disassembly and/or soldering. As the SD card can't be used
189 at the same time, the system can be only booted in the FEL mode.
190 Only enable this if you really know what you are doing.
191
Ian Campbell9536fc42014-08-31 13:13:43 +0100192config FDTFILE
193 string "Default fdtfile env setting for this board"
Hans de Goede2f60c312014-08-01 09:37:58 +0200194
Hans de Goede05e5bcb2014-10-22 14:56:36 +0200195config OLD_SUNXI_KERNEL_COMPAT
196 boolean "Enable workarounds for booting old kernels"
197 default n
198 ---help---
199 Set this to enable various workarounds for old kernels, this results in
200 sub-optimal settings for newer kernels, only enable if needed.
201
Hans de Goede7412ef82014-10-02 20:29:26 +0200202config MMC0_CD_PIN
203 string "Card detect pin for mmc0"
204 default ""
205 ---help---
206 Set the card detect pin for mmc0, leave empty to not use cd. This
207 takes a string in the format understood by sunxi_name_to_gpio, e.g.
208 PH1 for pin 1 of port H.
209
210config MMC1_CD_PIN
211 string "Card detect pin for mmc1"
212 default ""
213 ---help---
214 See MMC0_CD_PIN help text.
215
216config MMC2_CD_PIN
217 string "Card detect pin for mmc2"
218 default ""
219 ---help---
220 See MMC0_CD_PIN help text.
221
222config MMC3_CD_PIN
223 string "Card detect pin for mmc3"
224 default ""
225 ---help---
226 See MMC0_CD_PIN help text.
227
Hans de Goedeaf593e42014-10-02 20:43:50 +0200228config MMC_SUNXI_SLOT_EXTRA
229 int "mmc extra slot number"
230 default -1
231 ---help---
232 sunxi builds always enable mmc0, some boards also have a second sdcard
233 slot or emmc on mmc1 - mmc3. Setting this to 1, 2 or 3 will enable
234 support for this.
235
Hans de Goedeaf4273b2014-11-07 16:09:00 +0100236config USB1_VBUS_PIN
237 string "Vbus enable pin for usb1 (ehci0)"
238 default "PH6" if MACH_SUN4I || MACH_SUN7I
Hans de Goedeb5ab8ce2014-11-07 14:51:12 +0100239 default "PH27" if MACH_SUN6I
Hans de Goedeaf4273b2014-11-07 16:09:00 +0100240 ---help---
241 Set the Vbus enable pin for usb1 (ehci0, usb0 is the otg). This takes
242 a string in the format understood by sunxi_name_to_gpio, e.g.
243 PH1 for pin 1 of port H.
244
245config USB2_VBUS_PIN
246 string "Vbus enable pin for usb2 (ehci1)"
247 default "PH3" if MACH_SUN4I || MACH_SUN7I
Hans de Goedeb5ab8ce2014-11-07 14:51:12 +0100248 default "PH24" if MACH_SUN6I
Hans de Goedeaf4273b2014-11-07 16:09:00 +0100249 ---help---
250 See USB1_VBUS_PIN help text.
251
Luc Verhaegenb01df1e2014-08-13 07:55:06 +0200252config VIDEO
253 boolean "Enable graphical uboot console on HDMI"
254 default y
255 ---help---
256 Say Y here to add support for using a cfb console on the HDMI output
257 found on most sunxi devices.
258
Hans de Goede16030822014-09-18 21:03:34 +0200259config USB_KEYBOARD
260 boolean "Enable USB keyboard support"
261 default y
262 ---help---
263 Say Y here to add support for using a USB keyboard (typically used
264 in combination with a graphical console on HDMI).
265
Masahiro Yamadad3ae6782014-07-30 14:08:14 +0900266endif