Ian Campbell | 2c7e3b9 | 2014-10-24 21:20:44 +0100 | [diff] [blame] | 1 | if ARCH_SUNXI |
| 2 | |
| 3 | choice |
| 4 | prompt "Sunxi SoC Variant" |
| 5 | |
Ian Campbell | c3be279 | 2014-10-24 21:20:45 +0100 | [diff] [blame] | 6 | config MACH_SUN4I |
Ian Campbell | 2c7e3b9 | 2014-10-24 21:20:44 +0100 | [diff] [blame] | 7 | bool "sun4i (Allwinner A10)" |
| 8 | select CPU_V7 |
| 9 | select SUPPORT_SPL |
| 10 | |
Ian Campbell | c3be279 | 2014-10-24 21:20:45 +0100 | [diff] [blame] | 11 | config MACH_SUN5I |
Ian Campbell | 2c7e3b9 | 2014-10-24 21:20:44 +0100 | [diff] [blame] | 12 | bool "sun5i (Allwinner A13)" |
| 13 | select CPU_V7 |
| 14 | select SUPPORT_SPL |
| 15 | |
Ian Campbell | c3be279 | 2014-10-24 21:20:45 +0100 | [diff] [blame] | 16 | config MACH_SUN6I |
Ian Campbell | 2c7e3b9 | 2014-10-24 21:20:44 +0100 | [diff] [blame] | 17 | bool "sun6i (Allwinner A31)" |
| 18 | select CPU_V7 |
Hans de Goede | 8c2c9cf | 2014-10-25 20:18:10 +0200 | [diff] [blame] | 19 | select SUPPORT_SPL |
Ian Campbell | 2c7e3b9 | 2014-10-24 21:20:44 +0100 | [diff] [blame] | 20 | |
Ian Campbell | c3be279 | 2014-10-24 21:20:45 +0100 | [diff] [blame] | 21 | config MACH_SUN7I |
Ian Campbell | 2c7e3b9 | 2014-10-24 21:20:44 +0100 | [diff] [blame] | 22 | bool "sun7i (Allwinner A20)" |
| 23 | select CPU_V7 |
Hans de Goede | ea624e1 | 2014-11-14 09:34:30 +0100 | [diff] [blame] | 24 | select CPU_V7_HAS_NONSEC |
| 25 | select CPU_V7_HAS_VIRT |
Ian Campbell | 2c7e3b9 | 2014-10-24 21:20:44 +0100 | [diff] [blame] | 26 | select SUPPORT_SPL |
Hans de Goede | b366fb9 | 2014-10-24 20:12:04 +0200 | [diff] [blame] | 27 | select ARMV7_BOOT_SEC_DEFAULT if OLD_SUNXI_KERNEL_COMPAT |
Ian Campbell | 2c7e3b9 | 2014-10-24 21:20:44 +0100 | [diff] [blame] | 28 | |
Ian Campbell | c3be279 | 2014-10-24 21:20:45 +0100 | [diff] [blame] | 29 | config MACH_SUN8I |
Ian Campbell | 2c7e3b9 | 2014-10-24 21:20:44 +0100 | [diff] [blame] | 30 | bool "sun8i (Allwinner A23)" |
| 31 | select CPU_V7 |
Hans de Goede | 08fd147 | 2014-12-07 14:34:27 +0100 | [diff] [blame] | 32 | select SUPPORT_SPL |
Ian Campbell | 2c7e3b9 | 2014-10-24 21:20:44 +0100 | [diff] [blame] | 33 | |
| 34 | endchoice |
Maxime Ripard | 8a6564d | 2014-10-03 20:16:29 +0800 | [diff] [blame] | 35 | |
Hans de Goede | 37781a1 | 2014-11-15 19:46:39 +0100 | [diff] [blame] | 36 | config DRAM_CLK |
Hans de Goede | 8ffc487 | 2015-01-17 14:24:55 +0100 | [diff] [blame] | 37 | int "sunxi dram clock speed" |
| 38 | default 312 if MACH_SUN6I || MACH_SUN8I |
| 39 | default 360 if MACH_SUN4I || MACH_SUN5I || MACH_SUN7I |
Hans de Goede | 37781a1 | 2014-11-15 19:46:39 +0100 | [diff] [blame] | 40 | ---help--- |
| 41 | Set the dram clock speed, valid range 240 - 480, must be a multiple |
Hans de Goede | e1a0888 | 2015-01-25 11:29:27 +0100 | [diff] [blame] | 42 | of 24. |
Hans de Goede | 37781a1 | 2014-11-15 19:46:39 +0100 | [diff] [blame] | 43 | |
| 44 | config DRAM_ZQ |
Hans de Goede | 8ffc487 | 2015-01-17 14:24:55 +0100 | [diff] [blame] | 45 | int "sunxi dram zq value" |
| 46 | default 123 if MACH_SUN4I || MACH_SUN5I || MACH_SUN6I || MACH_SUN8I |
| 47 | default 127 if MACH_SUN7I |
Hans de Goede | 37781a1 | 2014-11-15 19:46:39 +0100 | [diff] [blame] | 48 | ---help--- |
Hans de Goede | e1a0888 | 2015-01-25 11:29:27 +0100 | [diff] [blame] | 49 | Set the dram zq value. |
Hans de Goede | 37781a1 | 2014-11-15 19:46:39 +0100 | [diff] [blame] | 50 | |
Hans de Goede | 8ffc487 | 2015-01-17 14:24:55 +0100 | [diff] [blame] | 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--- |
Hans de Goede | e1a0888 | 2015-01-25 11:29:27 +0100 | [diff] [blame] | 57 | Set the dram controller emr1 value. |
Hans de Goede | 37781a1 | 2014-11-15 19:46:39 +0100 | [diff] [blame] | 58 | endif |
| 59 | |
Maxime Ripard | 8a6564d | 2014-10-03 20:16:29 +0800 | [diff] [blame] | 60 | config SYS_CONFIG_NAME |
Ian Campbell | c3be279 | 2014-10-24 21:20:45 +0100 | [diff] [blame] | 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 |
Hans de Goede | 6ae66f2 | 2014-08-01 09:28:24 +0200 | [diff] [blame] | 66 | |
Masahiro Yamada | dd84058 | 2014-07-30 14:08:14 +0900 | [diff] [blame] | 67 | config SYS_BOARD |
Masahiro Yamada | dd84058 | 2014-07-30 14:08:14 +0900 | [diff] [blame] | 68 | default "sunxi" |
| 69 | |
| 70 | config SYS_SOC |
Masahiro Yamada | dd84058 | 2014-07-30 14:08:14 +0900 | [diff] [blame] | 71 | default "sunxi" |
| 72 | |
Ian Campbell | 4ce9941 | 2014-10-24 21:20:46 +0100 | [diff] [blame] | 73 | config SPL_FEL |
| 74 | bool "SPL/FEL mode support" |
| 75 | depends on SPL |
| 76 | default n |
| 77 | |
Siarhei Siamashka | f0ce28e | 2014-12-25 02:34:47 +0200 | [diff] [blame] | 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 | |
Ian Campbell | 98e214d | 2014-08-31 13:13:43 +0100 | [diff] [blame] | 90 | config FDTFILE |
| 91 | string "Default fdtfile env setting for this board" |
Hans de Goede | 846e325 | 2014-08-01 09:37:58 +0200 | [diff] [blame] | 92 | |
Hans de Goede | accc9e4 | 2014-10-22 14:56:36 +0200 | [diff] [blame] | 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 | |
Hans de Goede | cd82113 | 2014-10-02 20:29:26 +0200 | [diff] [blame] | 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 | |
Hans de Goede | 2ccfac0 | 2014-10-02 20:43:50 +0200 | [diff] [blame] | 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 | |
Hans de Goede | 4458b7a | 2015-01-07 15:26:06 +0100 | [diff] [blame] | 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 | |
Hans de Goede | 115200c | 2014-11-07 16:09:00 +0100 | [diff] [blame] | 141 | config USB1_VBUS_PIN |
| 142 | string "Vbus enable pin for usb1 (ehci0)" |
| 143 | default "PH6" if MACH_SUN4I || MACH_SUN7I |
Hans de Goede | 76946df | 2014-11-07 14:51:12 +0100 | [diff] [blame] | 144 | default "PH27" if MACH_SUN6I |
Hans de Goede | 115200c | 2014-11-07 16:09:00 +0100 | [diff] [blame] | 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 |
Hans de Goede | 76946df | 2014-11-07 14:51:12 +0100 | [diff] [blame] | 153 | default "PH24" if MACH_SUN6I |
Hans de Goede | 115200c | 2014-11-07 16:09:00 +0100 | [diff] [blame] | 154 | ---help--- |
| 155 | See USB1_VBUS_PIN help text. |
| 156 | |
Luc Verhaegen | 7f2c521 | 2014-08-13 07:55:06 +0200 | [diff] [blame] | 157 | config VIDEO |
Hans de Goede | 2dae800 | 2014-12-21 16:28:32 +0100 | [diff] [blame] | 158 | boolean "Enable graphical uboot console on HDMI, LCD or VGA" |
Luc Verhaegen | 7f2c521 | 2014-08-13 07:55:06 +0200 | [diff] [blame] | 159 | default y |
| 160 | ---help--- |
Hans de Goede | 2dae800 | 2014-12-21 16:28:32 +0100 | [diff] [blame] | 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 | |
Hans de Goede | 2fbf091 | 2014-12-23 23:04:35 +0100 | [diff] [blame] | 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 | |
Hans de Goede | d9786d2 | 2014-12-25 13:58:06 +0100 | [diff] [blame] | 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 | |
Hans de Goede | e2bbdfb | 2014-12-24 12:17:07 +0100 | [diff] [blame] | 179 | config VIDEO_VGA_VIA_LCD |
| 180 | boolean "VGA via LCD controller support" |
Chen-Yu Tsai | 2583d5b | 2015-01-12 18:02:10 +0800 | [diff] [blame] | 181 | depends on VIDEO && (MACH_SUN5I || MACH_SUN6I || MACH_SUN8I) |
Hans de Goede | e2bbdfb | 2014-12-24 12:17:07 +0100 | [diff] [blame] | 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 | |
Hans de Goede | fb75d97 | 2015-01-25 15:33:07 +0100 | [diff] [blame^] | 188 | config VIDEO_VGA_VIA_LCD_FORCE_SYNC_ACTIVE_HIGH |
| 189 | boolean "Force sync active high for VGA via LCD controller support" |
| 190 | depends on VIDEO_VGA_VIA_LCD |
| 191 | default n |
| 192 | ---help--- |
| 193 | Say Y here if you've a board which uses opendrain drivers for the vga |
| 194 | hsync and vsync signals. Opendrain drivers cannot generate steep enough |
| 195 | positive edges for a stable video output, so on boards with opendrain |
| 196 | drivers the sync signals must always be active high. |
| 197 | |
Chen-Yu Tsai | 507e27d | 2015-01-12 18:02:11 +0800 | [diff] [blame] | 198 | config VIDEO_VGA_EXTERNAL_DAC_EN |
| 199 | string "LCD panel power enable pin" |
| 200 | depends on VIDEO_VGA_VIA_LCD |
| 201 | default "" |
| 202 | ---help--- |
| 203 | Set the enable pin for the external VGA DAC. This takes a string in the |
| 204 | format understood by sunxi_name_to_gpio, e.g. PH1 for pin 1 of port H. |
| 205 | |
Hans de Goede | 2dae800 | 2014-12-21 16:28:32 +0100 | [diff] [blame] | 206 | config VIDEO_LCD_MODE |
| 207 | string "LCD panel timing details" |
| 208 | depends on VIDEO |
| 209 | default "" |
| 210 | ---help--- |
| 211 | LCD panel timing details string, leave empty if there is no LCD panel. |
| 212 | This is in drivers/video/videomodes.c: video_get_params() format, e.g. |
| 213 | 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 |
| 214 | |
Hans de Goede | 6515032 | 2015-01-13 13:21:46 +0100 | [diff] [blame] | 215 | config VIDEO_LCD_DCLK_PHASE |
| 216 | int "LCD panel display clock phase" |
| 217 | depends on VIDEO |
| 218 | default 1 |
| 219 | ---help--- |
| 220 | Select LCD panel display clock phase shift, range 0-3. |
| 221 | |
Hans de Goede | 2dae800 | 2014-12-21 16:28:32 +0100 | [diff] [blame] | 222 | config VIDEO_LCD_POWER |
| 223 | string "LCD panel power enable pin" |
| 224 | depends on VIDEO |
| 225 | default "" |
| 226 | ---help--- |
| 227 | Set the power enable pin for the LCD panel. This takes a string in the |
| 228 | format understood by sunxi_name_to_gpio, e.g. PH1 for pin 1 of port H. |
| 229 | |
| 230 | config VIDEO_LCD_BL_EN |
| 231 | string "LCD panel backlight enable pin" |
| 232 | depends on VIDEO |
| 233 | default "" |
| 234 | ---help--- |
| 235 | Set the backlight enable pin for the LCD panel. This takes a string in the |
| 236 | the format understood by sunxi_name_to_gpio, e.g. PH1 for pin 1 of |
| 237 | port H. |
| 238 | |
| 239 | config VIDEO_LCD_BL_PWM |
| 240 | string "LCD panel backlight pwm pin" |
| 241 | depends on VIDEO |
| 242 | default "" |
| 243 | ---help--- |
| 244 | Set the backlight pwm pin for the LCD panel. This takes a string in the |
| 245 | format understood by sunxi_name_to_gpio, e.g. PH1 for pin 1 of port H. |
Luc Verhaegen | 7f2c521 | 2014-08-13 07:55:06 +0200 | [diff] [blame] | 246 | |
Hans de Goede | a7403ae | 2015-01-22 21:02:42 +0100 | [diff] [blame] | 247 | config VIDEO_LCD_BL_PWM_ACTIVE_LOW |
| 248 | bool "LCD panel backlight pwm is inverted" |
| 249 | depends on VIDEO |
| 250 | default y |
| 251 | ---help--- |
| 252 | Set this if the backlight pwm output is active low. |
| 253 | |
Hans de Goede | 213480e | 2015-01-01 22:04:34 +0100 | [diff] [blame] | 254 | |
| 255 | # Note only one of these may be selected at a time! But hidden choices are |
| 256 | # not supported by Kconfig |
| 257 | config VIDEO_LCD_IF_PARALLEL |
| 258 | bool |
| 259 | |
| 260 | config VIDEO_LCD_IF_LVDS |
| 261 | bool |
| 262 | |
| 263 | |
| 264 | choice |
| 265 | prompt "LCD panel support" |
| 266 | depends on VIDEO |
| 267 | ---help--- |
| 268 | Select which type of LCD panel to support. |
| 269 | |
| 270 | config VIDEO_LCD_PANEL_PARALLEL |
| 271 | bool "Generic parallel interface LCD panel" |
| 272 | select VIDEO_LCD_IF_PARALLEL |
| 273 | |
| 274 | config VIDEO_LCD_PANEL_LVDS |
| 275 | bool "Generic lvds interface LCD panel" |
| 276 | select VIDEO_LCD_IF_LVDS |
| 277 | |
Siarhei Siamashka | 97ece83 | 2015-01-19 05:23:33 +0200 | [diff] [blame] | 278 | config VIDEO_LCD_PANEL_MIPI_4_LANE_513_MBPS_VIA_SSD2828 |
| 279 | bool "MIPI 4-lane, 513Mbps LCD panel via SSD2828 bridge chip" |
| 280 | select VIDEO_LCD_SSD2828 |
| 281 | select VIDEO_LCD_IF_PARALLEL |
| 282 | ---help--- |
| 283 | 7.85" 768x1024 LCD panels, such as LG LP079X01 or AUO B079XAN01.0 |
| 284 | |
Hans de Goede | 27515b2 | 2015-01-20 09:23:36 +0100 | [diff] [blame] | 285 | config VIDEO_LCD_PANEL_HITACHI_TX18D42VM |
| 286 | bool "Hitachi tx18d42vm LCD panel" |
| 287 | select VIDEO_LCD_HITACHI_TX18D42VM |
| 288 | select VIDEO_LCD_IF_LVDS |
| 289 | ---help--- |
| 290 | 7.85" 1024x768 Hitachi tx18d42vm LCD panel support |
| 291 | |
Hans de Goede | 213480e | 2015-01-01 22:04:34 +0100 | [diff] [blame] | 292 | endchoice |
| 293 | |
| 294 | |
Hans de Goede | 1a800f7 | 2015-01-11 17:17:00 +0100 | [diff] [blame] | 295 | config USB_MUSB_SUNXI |
| 296 | bool "Enable sunxi OTG / DRC USB controller in host mode" |
| 297 | default n |
| 298 | ---help--- |
| 299 | Say y here to enable support for the sunxi OTG / DRC USB controller |
| 300 | used on almost all sunxi boards. Note currently u-boot can only have |
| 301 | one usb host controller enabled at a time, so enabling this on boards |
| 302 | which also use the ehci host controller will result in build errors. |
| 303 | |
Hans de Goede | 86b4909 | 2014-09-18 21:03:34 +0200 | [diff] [blame] | 304 | config USB_KEYBOARD |
| 305 | boolean "Enable USB keyboard support" |
| 306 | default y |
| 307 | ---help--- |
| 308 | Say Y here to add support for using a USB keyboard (typically used |
Hans de Goede | 2dae800 | 2014-12-21 16:28:32 +0100 | [diff] [blame] | 309 | in combination with a graphical console). |
Hans de Goede | 86b4909 | 2014-09-18 21:03:34 +0200 | [diff] [blame] | 310 | |
Hans de Goede | c13f60d | 2015-01-25 12:10:48 +0100 | [diff] [blame] | 311 | config GMAC_TX_DELAY |
| 312 | int "GMAC Transmit Clock Delay Chain" |
| 313 | default 0 |
| 314 | ---help--- |
| 315 | Set the GMAC Transmit Clock Delay Chain value. |
| 316 | |
Masahiro Yamada | dd84058 | 2014-07-30 14:08:14 +0900 | [diff] [blame] | 317 | endif |