sunxi: Add Inet 86VS support
[oweals/u-boot.git] / board / sunxi / Kconfig
1 if ARCH_SUNXI
2
3 choice
4         prompt "Sunxi SoC Variant"
5
6 config MACH_SUN4I
7         bool "sun4i (Allwinner A10)"
8         select CPU_V7
9         select SUPPORT_SPL
10
11 config MACH_SUN5I
12         bool "sun5i (Allwinner A13)"
13         select CPU_V7
14         select SUPPORT_SPL
15
16 config MACH_SUN6I
17         bool "sun6i (Allwinner A31)"
18         select CPU_V7
19         select SUPPORT_SPL
20
21 config MACH_SUN7I
22         bool "sun7i (Allwinner A20)"
23         select CPU_V7
24         select CPU_V7_HAS_NONSEC
25         select CPU_V7_HAS_VIRT
26         select SUPPORT_SPL
27         select ARMV7_BOOT_SEC_DEFAULT if OLD_SUNXI_KERNEL_COMPAT
28
29 config MACH_SUN8I
30         bool "sun8i (Allwinner A23)"
31         select CPU_V7
32         select SUPPORT_SPL
33
34 endchoice
35
36 config DRAM_CLK
37         int "sunxi dram clock speed"
38         default 312 if MACH_SUN6I || MACH_SUN8I
39         default 360 if MACH_SUN4I || MACH_SUN5I || MACH_SUN7I
40         ---help---
41         Set the dram clock speed, valid range 240 - 480, must be a multiple
42         of 24.
43
44 config DRAM_ZQ
45         int "sunxi dram zq value"
46         default 123 if MACH_SUN4I || MACH_SUN5I || MACH_SUN6I || MACH_SUN8I
47         default 127 if MACH_SUN7I
48         ---help---
49         Set the dram zq value.
50
51 if MACH_SUN4I || MACH_SUN5I || MACH_SUN7I
52 config DRAM_EMR1
53         int "sunxi dram emr1 value"
54         default 0 if MACH_SUN4I
55         default 4 if MACH_SUN5I || MACH_SUN7I
56         ---help---
57         Set the dram controller emr1 value.
58 endif
59
60 config SYS_CONFIG_NAME
61         default "sun4i" if MACH_SUN4I
62         default "sun5i" if MACH_SUN5I
63         default "sun6i" if MACH_SUN6I
64         default "sun7i" if MACH_SUN7I
65         default "sun8i" if MACH_SUN8I
66
67 config SYS_BOARD
68         default "sunxi"
69
70 config SYS_SOC
71         default "sunxi"
72
73 config SPL_FEL
74         bool "SPL/FEL mode support"
75         depends on SPL
76         default n
77
78 config UART0_PORT_F
79         bool "UART0 on MicroSD breakout board"
80         depends on SPL_FEL
81         default n
82         ---help---
83         Repurpose the SD card slot for getting access to the UART0 serial
84         console. Primarily useful only for low level u-boot debugging on
85         tablets, where normal UART0 is difficult to access and requires
86         device disassembly and/or soldering. As the SD card can't be used
87         at the same time, the system can be only booted in the FEL mode.
88         Only enable this if you really know what you are doing.
89
90 config FDTFILE
91         string "Default fdtfile env setting for this board"
92
93 config OLD_SUNXI_KERNEL_COMPAT
94         boolean "Enable workarounds for booting old kernels"
95         default n
96         ---help---
97         Set this to enable various workarounds for old kernels, this results in
98         sub-optimal settings for newer kernels, only enable if needed.
99
100 config MMC0_CD_PIN
101         string "Card detect pin for mmc0"
102         default ""
103         ---help---
104         Set the card detect pin for mmc0, leave empty to not use cd. This
105         takes a string in the format understood by sunxi_name_to_gpio, e.g.
106         PH1 for pin 1 of port H.
107
108 config MMC1_CD_PIN
109         string "Card detect pin for mmc1"
110         default ""
111         ---help---
112         See MMC0_CD_PIN help text.
113
114 config MMC2_CD_PIN
115         string "Card detect pin for mmc2"
116         default ""
117         ---help---
118         See MMC0_CD_PIN help text.
119
120 config MMC3_CD_PIN
121         string "Card detect pin for mmc3"
122         default ""
123         ---help---
124         See MMC0_CD_PIN help text.
125
126 config MMC_SUNXI_SLOT_EXTRA
127         int "mmc extra slot number"
128         default -1
129         ---help---
130         sunxi builds always enable mmc0, some boards also have a second sdcard
131         slot or emmc on mmc1 - mmc3. Setting this to 1, 2 or 3 will enable
132         support for this.
133
134 config USB0_VBUS_PIN
135         string "Vbus enable pin for usb0 (otg)"
136         default ""
137         ---help---
138         Set the Vbus enable pin for usb0 (otg). This takes a string in the
139         format understood by sunxi_name_to_gpio, e.g. PH1 for pin 1 of port H.
140
141 config USB1_VBUS_PIN
142         string "Vbus enable pin for usb1 (ehci0)"
143         default "PH6" if MACH_SUN4I || MACH_SUN7I
144         default "PH27" if MACH_SUN6I
145         ---help---
146         Set the Vbus enable pin for usb1 (ehci0, usb0 is the otg). This takes
147         a string in the format understood by sunxi_name_to_gpio, e.g.
148         PH1 for pin 1 of port H.
149
150 config USB2_VBUS_PIN
151         string "Vbus enable pin for usb2 (ehci1)"
152         default "PH3" if MACH_SUN4I || MACH_SUN7I
153         default "PH24" if MACH_SUN6I
154         ---help---
155         See USB1_VBUS_PIN help text.
156
157 config VIDEO
158         boolean "Enable graphical uboot console on HDMI, LCD or VGA"
159         default y
160         ---help---
161         Say Y here to add support for using a cfb console on the HDMI, LCD
162         or VGA output found on most sunxi devices. See doc/README.video for
163         info on how to select the video output and mode.
164
165 config VIDEO_HDMI
166         boolean "HDMI output support"
167         depends on VIDEO && !MACH_SUN8I
168         default y
169         ---help---
170         Say Y here to add support for outputting video over HDMI.
171
172 config VIDEO_VGA
173         boolean "VGA output support"
174         depends on VIDEO && (MACH_SUN4I || MACH_SUN7I)
175         default n
176         ---help---
177         Say Y here to add support for outputting video over VGA.
178
179 config VIDEO_VGA_VIA_LCD
180         boolean "VGA via LCD controller support"
181         depends on VIDEO && (MACH_SUN5I || MACH_SUN6I || MACH_SUN8I)
182         default n
183         ---help---
184         Say Y here to add support for external DACs connected to the parallel
185         LCD interface driving a VGA connector, such as found on the
186         Olimex A13 boards.
187
188 config VIDEO_VGA_EXTERNAL_DAC_EN
189         string "LCD panel power enable pin"
190         depends on VIDEO_VGA_VIA_LCD
191         default ""
192         ---help---
193         Set the enable pin for the external VGA DAC. This takes a string in the
194         format understood by sunxi_name_to_gpio, e.g. PH1 for pin 1 of port H.
195
196 config VIDEO_LCD_MODE
197         string "LCD panel timing details"
198         depends on VIDEO
199         default ""
200         ---help---
201         LCD panel timing details string, leave empty if there is no LCD panel.
202         This is in drivers/video/videomodes.c: video_get_params() format, e.g.
203         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
204
205 config VIDEO_LCD_DCLK_PHASE
206         int "LCD panel display clock phase"
207         depends on VIDEO
208         default 1
209         ---help---
210         Select LCD panel display clock phase shift, range 0-3.
211
212 config VIDEO_LCD_POWER
213         string "LCD panel power enable pin"
214         depends on VIDEO
215         default ""
216         ---help---
217         Set the power enable pin for the LCD panel. This takes a string in the
218         format understood by sunxi_name_to_gpio, e.g. PH1 for pin 1 of port H.
219
220 config VIDEO_LCD_BL_EN
221         string "LCD panel backlight enable pin"
222         depends on VIDEO
223         default ""
224         ---help---
225         Set the backlight enable pin for the LCD panel. This takes a string in the
226         the format understood by sunxi_name_to_gpio, e.g. PH1 for pin 1 of
227         port H.
228
229 config VIDEO_LCD_BL_PWM
230         string "LCD panel backlight pwm pin"
231         depends on VIDEO
232         default ""
233         ---help---
234         Set the backlight pwm pin for the LCD panel. This takes a string in the
235         format understood by sunxi_name_to_gpio, e.g. PH1 for pin 1 of port H.
236
237 config VIDEO_LCD_BL_PWM_ACTIVE_LOW
238         bool "LCD panel backlight pwm is inverted"
239         depends on VIDEO
240         default y
241         ---help---
242         Set this if the backlight pwm output is active low.
243
244
245 # Note only one of these may be selected at a time! But hidden choices are
246 # not supported by Kconfig
247 config VIDEO_LCD_IF_PARALLEL
248         bool
249
250 config VIDEO_LCD_IF_LVDS
251         bool
252
253
254 choice
255         prompt "LCD panel support"
256         depends on VIDEO
257         ---help---
258         Select which type of LCD panel to support.
259
260 config VIDEO_LCD_PANEL_PARALLEL
261         bool "Generic parallel interface LCD panel"
262         select VIDEO_LCD_IF_PARALLEL
263
264 config VIDEO_LCD_PANEL_LVDS
265         bool "Generic lvds interface LCD panel"
266         select VIDEO_LCD_IF_LVDS
267
268 config VIDEO_LCD_PANEL_MIPI_4_LANE_513_MBPS_VIA_SSD2828
269         bool "MIPI 4-lane, 513Mbps LCD panel via SSD2828 bridge chip"
270         select VIDEO_LCD_SSD2828
271         select VIDEO_LCD_IF_PARALLEL
272         ---help---
273          7.85" 768x1024 LCD panels, such as LG LP079X01 or AUO B079XAN01.0
274
275 config VIDEO_LCD_PANEL_HITACHI_TX18D42VM
276         bool "Hitachi tx18d42vm LCD panel"
277         select VIDEO_LCD_HITACHI_TX18D42VM
278         select VIDEO_LCD_IF_LVDS
279         ---help---
280         7.85" 1024x768 Hitachi tx18d42vm LCD panel support
281
282 endchoice
283
284
285 config USB_MUSB_SUNXI
286         bool "Enable sunxi OTG / DRC USB controller in host mode"
287         default n
288         ---help---
289         Say y here to enable support for the sunxi OTG / DRC USB controller
290         used on almost all sunxi boards. Note currently u-boot can only have
291         one usb host controller enabled at a time, so enabling this on boards
292         which also use the ehci host controller will result in build errors.
293
294 config USB_KEYBOARD
295         boolean "Enable USB keyboard support"
296         default y
297         ---help---
298         Say Y here to add support for using a USB keyboard (typically used
299         in combination with a graphical console).
300
301 config GMAC_TX_DELAY
302         int "GMAC Transmit Clock Delay Chain"
303         default 0
304         ---help---
305         Set the GMAC Transmit Clock Delay Chain value.
306
307 endif