4 prompt "Sunxi SoC Variant"
7 bool "sun4i (Allwinner A10)"
12 bool "sun5i (Allwinner A13)"
17 bool "sun6i (Allwinner A31)"
22 bool "sun7i (Allwinner A20)"
24 select CPU_V7_HAS_NONSEC
25 select CPU_V7_HAS_VIRT
27 select ARMV7_BOOT_SEC_DEFAULT if OLD_SUNXI_KERNEL_COMPAT
30 bool "sun8i (Allwinner A23)"
37 int "sunxi dram clock speed"
38 default 312 if MACH_SUN6I || MACH_SUN8I
39 default 360 if MACH_SUN4I || MACH_SUN5I || MACH_SUN7I
41 Set the dram clock speed, valid range 240 - 480, must be a multiple
45 int "sunxi dram zq value"
46 default 123 if MACH_SUN4I || MACH_SUN5I || MACH_SUN6I || MACH_SUN8I
47 default 127 if MACH_SUN7I
49 Set the dram zq value.
51 if MACH_SUN4I || MACH_SUN5I || MACH_SUN7I
53 int "sunxi dram emr1 value"
54 default 0 if MACH_SUN4I
55 default 4 if MACH_SUN5I || MACH_SUN7I
57 Set the dram controller emr1 value.
60 prompt "sunxi dram timings"
61 default DRAM_TIMINGS_VENDOR_MAGIC
63 Select the timings of the DDR3 chips.
65 config DRAM_TIMINGS_VENDOR_MAGIC
66 bool "Magic vendor timings from Android"
68 The same DRAM timings as in the Allwinner boot0 bootloader.
70 config DRAM_TIMINGS_DDR3_1066F_1333H
71 bool "JEDEC DDR3-1333H with down binning to DDR3-1066F"
73 Use the timings of the standard JEDEC DDR3-1066F speed bin for
74 DRAM_CLK <= 533MHz and the timings of the DDR3-1333H speed bin
75 for DRAM_CLK > 533MHz. This covers the majority of DDR3 chips
76 used in Allwinner A10/A13/A20 devices. In the case of DDR3-1333
77 or DDR3-1600 chips, be sure to check the DRAM datasheet to confirm
78 that down binning to DDR3-1066F is supported (because DDR3-1066F
79 uses a bit faster timings than DDR3-1333H).
81 config DRAM_TIMINGS_DDR3_800E_1066G_1333J
82 bool "JEDEC DDR3-800E / DDR3-1066G / DDR3-1333J"
84 Use the timings of the slowest possible JEDEC speed bin for the
85 selected DRAM_CLK. Depending on the DRAM_CLK value, it may be
86 DDR3-800E, DDR3-1066G or DDR3-1333J.
92 config SYS_CONFIG_NAME
93 default "sun4i" if MACH_SUN4I
94 default "sun5i" if MACH_SUN5I
95 default "sun6i" if MACH_SUN6I
96 default "sun7i" if MACH_SUN7I
97 default "sun8i" if MACH_SUN8I
106 bool "SPL/FEL mode support"
111 bool "UART0 on MicroSD breakout board"
115 Repurpose the SD card slot for getting access to the UART0 serial
116 console. Primarily useful only for low level u-boot debugging on
117 tablets, where normal UART0 is difficult to access and requires
118 device disassembly and/or soldering. As the SD card can't be used
119 at the same time, the system can be only booted in the FEL mode.
120 Only enable this if you really know what you are doing.
123 string "Default fdtfile env setting for this board"
125 config OLD_SUNXI_KERNEL_COMPAT
126 boolean "Enable workarounds for booting old kernels"
129 Set this to enable various workarounds for old kernels, this results in
130 sub-optimal settings for newer kernels, only enable if needed.
133 string "Card detect pin for mmc0"
136 Set the card detect pin for mmc0, leave empty to not use cd. This
137 takes a string in the format understood by sunxi_name_to_gpio, e.g.
138 PH1 for pin 1 of port H.
141 string "Card detect pin for mmc1"
144 See MMC0_CD_PIN help text.
147 string "Card detect pin for mmc2"
150 See MMC0_CD_PIN help text.
153 string "Card detect pin for mmc3"
156 See MMC0_CD_PIN help text.
158 config MMC_SUNXI_SLOT_EXTRA
159 int "mmc extra slot number"
162 sunxi builds always enable mmc0, some boards also have a second sdcard
163 slot or emmc on mmc1 - mmc3. Setting this to 1, 2 or 3 will enable
167 string "Vbus enable pin for usb0 (otg)"
170 Set the Vbus enable pin for usb0 (otg). This takes a string in the
171 format understood by sunxi_name_to_gpio, e.g. PH1 for pin 1 of port H.
174 string "Vbus enable pin for usb1 (ehci0)"
175 default "PH6" if MACH_SUN4I || MACH_SUN7I
176 default "PH27" if MACH_SUN6I
178 Set the Vbus enable pin for usb1 (ehci0, usb0 is the otg). This takes
179 a string in the format understood by sunxi_name_to_gpio, e.g.
180 PH1 for pin 1 of port H.
183 string "Vbus enable pin for usb2 (ehci1)"
184 default "PH3" if MACH_SUN4I || MACH_SUN7I
185 default "PH24" if MACH_SUN6I
187 See USB1_VBUS_PIN help text.
190 boolean "Enable graphical uboot console on HDMI, LCD or VGA"
193 Say Y here to add support for using a cfb console on the HDMI, LCD
194 or VGA output found on most sunxi devices. See doc/README.video for
195 info on how to select the video output and mode.
198 boolean "HDMI output support"
199 depends on VIDEO && !MACH_SUN8I
202 Say Y here to add support for outputting video over HDMI.
205 boolean "VGA output support"
206 depends on VIDEO && (MACH_SUN4I || MACH_SUN7I)
209 Say Y here to add support for outputting video over VGA.
211 config VIDEO_VGA_VIA_LCD
212 boolean "VGA via LCD controller support"
213 depends on VIDEO && (MACH_SUN5I || MACH_SUN6I || MACH_SUN8I)
216 Say Y here to add support for external DACs connected to the parallel
217 LCD interface driving a VGA connector, such as found on the
220 config VIDEO_VGA_VIA_LCD_FORCE_SYNC_ACTIVE_HIGH
221 boolean "Force sync active high for VGA via LCD controller support"
222 depends on VIDEO_VGA_VIA_LCD
225 Say Y here if you've a board which uses opendrain drivers for the vga
226 hsync and vsync signals. Opendrain drivers cannot generate steep enough
227 positive edges for a stable video output, so on boards with opendrain
228 drivers the sync signals must always be active high.
230 config VIDEO_VGA_EXTERNAL_DAC_EN
231 string "LCD panel power enable pin"
232 depends on VIDEO_VGA_VIA_LCD
235 Set the enable pin for the external VGA DAC. This takes a string in the
236 format understood by sunxi_name_to_gpio, e.g. PH1 for pin 1 of port H.
238 config VIDEO_LCD_MODE
239 string "LCD panel timing details"
243 LCD panel timing details string, leave empty if there is no LCD panel.
244 This is in drivers/video/videomodes.c: video_get_params() format, e.g.
245 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
247 config VIDEO_LCD_DCLK_PHASE
248 int "LCD panel display clock phase"
252 Select LCD panel display clock phase shift, range 0-3.
254 config VIDEO_LCD_POWER
255 string "LCD panel power enable pin"
259 Set the power enable pin for the LCD panel. This takes a string in the
260 format understood by sunxi_name_to_gpio, e.g. PH1 for pin 1 of port H.
262 config VIDEO_LCD_BL_EN
263 string "LCD panel backlight enable pin"
267 Set the backlight enable pin for the LCD panel. This takes a string in the
268 the format understood by sunxi_name_to_gpio, e.g. PH1 for pin 1 of
271 config VIDEO_LCD_BL_PWM
272 string "LCD panel backlight pwm pin"
276 Set the backlight pwm pin for the LCD panel. This takes a string in the
277 format understood by sunxi_name_to_gpio, e.g. PH1 for pin 1 of port H.
279 config VIDEO_LCD_BL_PWM_ACTIVE_LOW
280 bool "LCD panel backlight pwm is inverted"
284 Set this if the backlight pwm output is active low.
287 # Note only one of these may be selected at a time! But hidden choices are
288 # not supported by Kconfig
289 config VIDEO_LCD_IF_PARALLEL
292 config VIDEO_LCD_IF_LVDS
297 prompt "LCD panel support"
300 Select which type of LCD panel to support.
302 config VIDEO_LCD_PANEL_PARALLEL
303 bool "Generic parallel interface LCD panel"
304 select VIDEO_LCD_IF_PARALLEL
306 config VIDEO_LCD_PANEL_LVDS
307 bool "Generic lvds interface LCD panel"
308 select VIDEO_LCD_IF_LVDS
310 config VIDEO_LCD_PANEL_MIPI_4_LANE_513_MBPS_VIA_SSD2828
311 bool "MIPI 4-lane, 513Mbps LCD panel via SSD2828 bridge chip"
312 select VIDEO_LCD_SSD2828
313 select VIDEO_LCD_IF_PARALLEL
315 7.85" 768x1024 LCD panels, such as LG LP079X01 or AUO B079XAN01.0
317 config VIDEO_LCD_PANEL_HITACHI_TX18D42VM
318 bool "Hitachi tx18d42vm LCD panel"
319 select VIDEO_LCD_HITACHI_TX18D42VM
320 select VIDEO_LCD_IF_LVDS
322 7.85" 1024x768 Hitachi tx18d42vm LCD panel support
327 config USB_MUSB_SUNXI
328 bool "Enable sunxi OTG / DRC USB controller in host mode"
331 Say y here to enable support for the sunxi OTG / DRC USB controller
332 used on almost all sunxi boards. Note currently u-boot can only have
333 one usb host controller enabled at a time, so enabling this on boards
334 which also use the ehci host controller will result in build errors.
337 boolean "Enable USB keyboard support"
340 Say Y here to add support for using a USB keyboard (typically used
341 in combination with a graphical console).
344 int "GMAC Transmit Clock Delay Chain"
347 Set the GMAC Transmit Clock Delay Chain value.