blob: 595957774945843d39b0abb5dce351ff23c0bbc2 [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
Hans de Goede08fd1472014-12-07 14:34:27 +010032 select SUPPORT_SPL
Ian Campbell2c7e3b92014-10-24 21:20:44 +010033
34endchoice
Maxime Ripard8a6564d2014-10-03 20:16:29 +080035
Hans de Goede08fd1472014-12-07 14:34:27 +010036if MACH_SUN6I || MACH_SUN8I
Hans de Goede37781a12014-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 Ripard8a6564d2014-10-03 20:16:29 +080053config SYS_CONFIG_NAME
Ian Campbellc3be2792014-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
Hans de Goede6ae66f22014-08-01 09:28:24 +020059
Ian Campbelld9a20472014-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
Hans de Goede81ec1002014-12-31 11:30:26 +010099config TARGET_BANANAPRO
100 bool "BANANAPRO"
101 depends on MACH_SUN7I
102
Ian Campbelld9a20472014-10-24 21:20:49 +0100103config TARGET_COLOMBUS
104 bool "COLOMBUS"
105 depends on MACH_SUN6I
106
107config TARGET_CUBIEBOARD2
108 bool "CUBIEBOARD2"
109 depends on MACH_SUN7I
110
111config TARGET_CUBIEBOARD
112 bool "CUBIEBOARD"
113 depends on MACH_SUN4I
114
115config TARGET_CUBIETRUCK
116 bool "CUBIETRUCK"
117 depends on MACH_SUN7I
118
Chen-Yu Tsaia805b7e2014-12-09 16:56:53 +0800119config TARGET_HUMMINGBIRD_A31
120 bool "HUMMINGBIRD_A31"
121 depends on MACH_SUN6I
122
Ian Campbelld9a20472014-10-24 21:20:49 +0100123config TARGET_IPPO_Q8H_V5
124 bool "IPPO_Q8H_V5"
125 depends on MACH_SUN8I
126
127config TARGET_PCDUINO3
128 bool "PCDUINO3"
129 depends on MACH_SUN7I
130
131config TARGET_MELE_A1000G
132 bool "MELE_A1000G"
133 depends on MACH_SUN4I
134
135config TARGET_MELE_A1000
136 bool "MELE_A1000"
137 depends on MACH_SUN4I
138
139config TARGET_MELE_M3
140 bool "MELE_M3"
141 depends on MACH_SUN7I
142
Hans de Goede505ecee2014-10-27 23:29:49 +0100143config TARGET_MELE_M9
144 bool "MELE_M9"
145 depends on MACH_SUN6I
146
Ian Campbelld9a20472014-10-24 21:20:49 +0100147config TARGET_MINI_X_1GB
148 bool "MINI_X_1GB"
149 depends on MACH_SUN4I
150
151config TARGET_MINI_X
152 bool "MINI_X"
153 depends on MACH_SUN4I
154
Siarhei Siamashkaf4f0df02014-12-27 09:38:57 +0200155config TARGET_MSI_PRIMO73
156 bool "MSI Primo73 (7\" tablet)"
157 depends on MACH_SUN7I
158 ---help---
159 The MSI Primo73 is an A20 based tablet, with 1G RAM, 16G NAND,
160 1024x600 TN LCD display, mono speaker, 0.3 MP front camera, 2.0 MP
161 rear camera, 3000 mAh battery, gt911 touchscreen, mma8452 accelerometer
162 and rtl8188etv usb wifi. Has "power", "volume+" and "volume-" buttons
163 (both volume buttons are also connected to the UBOOT_SEL pin). The
164 external connectors are represented by MicroSD slot, MiniHDMI, MicroUSB
165 OTG and 3.5mm headphone jack. More details are available at
166 http://linux-sunxi.org/MSI_Primo73
167
Siarhei Siamashka80e86692014-12-27 09:38:56 +0200168config TARGET_MSI_PRIMO81
169 bool "MSI Primo81 (7.85\" tablet)"
170 depends on MACH_SUN6I
171 ---help---
172 The MSI Primo81 is an A31s based tablet, with 1G RAM, 16G NAND,
173 1024x768 IPS LCD display, mono speaker, 0.3 MP front camera, 2.0 MP
174 rear camera, 3500 mAh battery, gt911 touchscreen, mma8452 accelerometer
175 and rtl8188etv usb wifi. Has "power", "volume+" and "volume-" buttons
176 (both volume buttons are also connected to the UBOOT_SEL pin). The
177 external connectors are represented by MicroSD slot, MiniHDMI, MicroUSB
178 OTG and 3.5mm headphone jack. More details are available at
179 http://linux-sunxi.org/MSI_Primo81
180
Ian Campbelld9a20472014-10-24 21:20:49 +0100181config TARGET_BA10_TV_BOX
182 bool "BA10_TV_BOX"
183 depends on MACH_SUN4I
184
185config TARGET_I12_TVBOX
186 bool "I12_TVBOX"
187 depends on MACH_SUN7I
188
189config TARGET_QT840A
190 bool "QT840A"
191 depends on MACH_SUN7I
192
193config TARGET_R7DONGLE
194 bool "R7DONGLE"
195 depends on MACH_SUN5I
196
197endchoice
198
Masahiro Yamadadd840582014-07-30 14:08:14 +0900199config SYS_BOARD
Masahiro Yamadadd840582014-07-30 14:08:14 +0900200 default "sunxi"
201
202config SYS_SOC
Masahiro Yamadadd840582014-07-30 14:08:14 +0900203 default "sunxi"
204
Ian Campbell4ce99412014-10-24 21:20:46 +0100205config SPL_FEL
206 bool "SPL/FEL mode support"
207 depends on SPL
208 default n
209
Siarhei Siamashkaf0ce28e2014-12-25 02:34:47 +0200210config UART0_PORT_F
211 bool "UART0 on MicroSD breakout board"
212 depends on SPL_FEL
213 default n
214 ---help---
215 Repurpose the SD card slot for getting access to the UART0 serial
216 console. Primarily useful only for low level u-boot debugging on
217 tablets, where normal UART0 is difficult to access and requires
218 device disassembly and/or soldering. As the SD card can't be used
219 at the same time, the system can be only booted in the FEL mode.
220 Only enable this if you really know what you are doing.
221
Ian Campbell98e214d2014-08-31 13:13:43 +0100222config FDTFILE
223 string "Default fdtfile env setting for this board"
Hans de Goede846e3252014-08-01 09:37:58 +0200224
Hans de Goedeaccc9e42014-10-22 14:56:36 +0200225config OLD_SUNXI_KERNEL_COMPAT
226 boolean "Enable workarounds for booting old kernels"
227 default n
228 ---help---
229 Set this to enable various workarounds for old kernels, this results in
230 sub-optimal settings for newer kernels, only enable if needed.
231
Hans de Goedecd821132014-10-02 20:29:26 +0200232config MMC0_CD_PIN
233 string "Card detect pin for mmc0"
234 default ""
235 ---help---
236 Set the card detect pin for mmc0, leave empty to not use cd. This
237 takes a string in the format understood by sunxi_name_to_gpio, e.g.
238 PH1 for pin 1 of port H.
239
240config MMC1_CD_PIN
241 string "Card detect pin for mmc1"
242 default ""
243 ---help---
244 See MMC0_CD_PIN help text.
245
246config MMC2_CD_PIN
247 string "Card detect pin for mmc2"
248 default ""
249 ---help---
250 See MMC0_CD_PIN help text.
251
252config MMC3_CD_PIN
253 string "Card detect pin for mmc3"
254 default ""
255 ---help---
256 See MMC0_CD_PIN help text.
257
Hans de Goede2ccfac02014-10-02 20:43:50 +0200258config MMC_SUNXI_SLOT_EXTRA
259 int "mmc extra slot number"
260 default -1
261 ---help---
262 sunxi builds always enable mmc0, some boards also have a second sdcard
263 slot or emmc on mmc1 - mmc3. Setting this to 1, 2 or 3 will enable
264 support for this.
265
Hans de Goede115200c2014-11-07 16:09:00 +0100266config USB1_VBUS_PIN
267 string "Vbus enable pin for usb1 (ehci0)"
268 default "PH6" if MACH_SUN4I || MACH_SUN7I
Hans de Goede76946df2014-11-07 14:51:12 +0100269 default "PH27" if MACH_SUN6I
Hans de Goede115200c2014-11-07 16:09:00 +0100270 ---help---
271 Set the Vbus enable pin for usb1 (ehci0, usb0 is the otg). This takes
272 a string in the format understood by sunxi_name_to_gpio, e.g.
273 PH1 for pin 1 of port H.
274
275config USB2_VBUS_PIN
276 string "Vbus enable pin for usb2 (ehci1)"
277 default "PH3" if MACH_SUN4I || MACH_SUN7I
Hans de Goede76946df2014-11-07 14:51:12 +0100278 default "PH24" if MACH_SUN6I
Hans de Goede115200c2014-11-07 16:09:00 +0100279 ---help---
280 See USB1_VBUS_PIN help text.
281
Luc Verhaegen7f2c5212014-08-13 07:55:06 +0200282config VIDEO
Hans de Goede2dae8002014-12-21 16:28:32 +0100283 boolean "Enable graphical uboot console on HDMI, LCD or VGA"
Luc Verhaegen7f2c5212014-08-13 07:55:06 +0200284 default y
285 ---help---
Hans de Goede2dae8002014-12-21 16:28:32 +0100286 Say Y here to add support for using a cfb console on the HDMI, LCD
287 or VGA output found on most sunxi devices. See doc/README.video for
288 info on how to select the video output and mode.
289
Hans de Goede2fbf0912014-12-23 23:04:35 +0100290config VIDEO_HDMI
291 boolean "HDMI output support"
292 depends on VIDEO && !MACH_SUN8I
293 default y
294 ---help---
295 Say Y here to add support for outputting video over HDMI.
296
Hans de Goedee2bbdfb2014-12-24 12:17:07 +0100297config VIDEO_VGA_VIA_LCD
298 boolean "VGA via LCD controller support"
299 depends on VIDEO
300 default n
301 ---help---
302 Say Y here to add support for external DACs connected to the parallel
303 LCD interface driving a VGA connector, such as found on the
304 Olimex A13 boards.
305
Hans de Goede2dae8002014-12-21 16:28:32 +0100306config VIDEO_LCD_MODE
307 string "LCD panel timing details"
308 depends on VIDEO
309 default ""
310 ---help---
311 LCD panel timing details string, leave empty if there is no LCD panel.
312 This is in drivers/video/videomodes.c: video_get_params() format, e.g.
313 x:800,y:480,depth:18,pclk_khz:33000,le:16,ri:209,up:22,lo:22,hs:30,vs:1,sync:0,vmode:0
314
315config VIDEO_LCD_POWER
316 string "LCD panel power enable pin"
317 depends on VIDEO
318 default ""
319 ---help---
320 Set the power enable pin for the LCD panel. This takes a string in the
321 format understood by sunxi_name_to_gpio, e.g. PH1 for pin 1 of port H.
322
323config VIDEO_LCD_BL_EN
324 string "LCD panel backlight enable pin"
325 depends on VIDEO
326 default ""
327 ---help---
328 Set the backlight enable pin for the LCD panel. This takes a string in the
329 the format understood by sunxi_name_to_gpio, e.g. PH1 for pin 1 of
330 port H.
331
332config VIDEO_LCD_BL_PWM
333 string "LCD panel backlight pwm pin"
334 depends on VIDEO
335 default ""
336 ---help---
337 Set the backlight pwm pin for the LCD panel. This takes a string in the
338 format understood by sunxi_name_to_gpio, e.g. PH1 for pin 1 of port H.
Luc Verhaegen7f2c5212014-08-13 07:55:06 +0200339
Hans de Goede86b49092014-09-18 21:03:34 +0200340config USB_KEYBOARD
341 boolean "Enable USB keyboard support"
342 default y
343 ---help---
344 Say Y here to add support for using a USB keyboard (typically used
Hans de Goede2dae8002014-12-21 16:28:32 +0100345 in combination with a graphical console).
Hans de Goede86b49092014-09-18 21:03:34 +0200346
Masahiro Yamadadd840582014-07-30 14:08:14 +0900347endif