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 | 08fd147 | 2014-12-07 14:34:27 +0100 | [diff] [blame] | 36 | if MACH_SUN6I || MACH_SUN8I |
Hans de Goede | 37781a1 | 2014-11-15 19:46:39 +0100 | [diff] [blame] | 37 | |
| 38 | config 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 | |
| 45 | config DRAM_ZQ |
| 46 | int "sun6i dram zq value" |
| 47 | default 123 |
| 48 | ---help--- |
| 49 | Set the dram zq value. |
| 50 | |
| 51 | endif |
| 52 | |
Maxime Ripard | 8a6564d | 2014-10-03 20:16:29 +0800 | [diff] [blame] | 53 | config SYS_CONFIG_NAME |
Ian Campbell | c3be279 | 2014-10-24 21:20:45 +0100 | [diff] [blame] | 54 | 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 Goede | 6ae66f2 | 2014-08-01 09:28:24 +0200 | [diff] [blame] | 59 | |
Ian Campbell | d9a2047 | 2014-10-24 21:20:49 +0100 | [diff] [blame] | 60 | choice |
| 61 | prompt "Board" |
| 62 | |
| 63 | config TARGET_A10_OLINUXINO_L |
| 64 | bool "A10_OLINUXINO_L" |
| 65 | depends on MACH_SUN4I |
| 66 | |
| 67 | config TARGET_A10S_OLINUXINO_M |
| 68 | bool "A10S_OLINUXINO_M" |
| 69 | depends on MACH_SUN5I |
| 70 | |
| 71 | config TARGET_A13_OLINUXINOM |
| 72 | bool "A13_OLINUXINOM" |
| 73 | depends on MACH_SUN5I |
| 74 | |
| 75 | config TARGET_A13_OLINUXINO |
| 76 | bool "A13_OLINUXINO" |
| 77 | depends on MACH_SUN5I |
| 78 | |
| 79 | config TARGET_A20_OLINUXINO_L2 |
| 80 | bool "A20_OLINUXINO_L2" |
| 81 | depends on MACH_SUN7I |
| 82 | |
| 83 | config TARGET_A20_OLINUXINO_L |
| 84 | bool "A20_OLINUXINO_L" |
| 85 | depends on MACH_SUN7I |
| 86 | |
| 87 | config TARGET_A20_OLINUXINO_M |
| 88 | bool "A20_OLINUXINO_M" |
| 89 | depends on MACH_SUN7I |
| 90 | |
| 91 | config TARGET_AUXTEK_T004 |
| 92 | bool "AUXTEK_T004" |
| 93 | depends on MACH_SUN5I |
| 94 | |
| 95 | config TARGET_BANANAPI |
| 96 | bool "BANANAPI" |
| 97 | depends on MACH_SUN7I |
| 98 | |
Hans de Goede | 81ec100 | 2014-12-31 11:30:26 +0100 | [diff] [blame] | 99 | config TARGET_BANANAPRO |
| 100 | bool "BANANAPRO" |
| 101 | depends on MACH_SUN7I |
| 102 | |
Ian Campbell | d9a2047 | 2014-10-24 21:20:49 +0100 | [diff] [blame] | 103 | config TARGET_COLOMBUS |
| 104 | bool "COLOMBUS" |
| 105 | depends on MACH_SUN6I |
| 106 | |
| 107 | config TARGET_CUBIEBOARD2 |
| 108 | bool "CUBIEBOARD2" |
| 109 | depends on MACH_SUN7I |
| 110 | |
| 111 | config TARGET_CUBIEBOARD |
| 112 | bool "CUBIEBOARD" |
| 113 | depends on MACH_SUN4I |
| 114 | |
| 115 | config TARGET_CUBIETRUCK |
| 116 | bool "CUBIETRUCK" |
| 117 | depends on MACH_SUN7I |
| 118 | |
Chen-Yu Tsai | a805b7e | 2014-12-09 16:56:53 +0800 | [diff] [blame] | 119 | config TARGET_HUMMINGBIRD_A31 |
| 120 | bool "HUMMINGBIRD_A31" |
| 121 | depends on MACH_SUN6I |
| 122 | |
Ian Campbell | d9a2047 | 2014-10-24 21:20:49 +0100 | [diff] [blame] | 123 | config TARGET_IPPO_Q8H_V5 |
| 124 | bool "IPPO_Q8H_V5" |
| 125 | depends on MACH_SUN8I |
| 126 | |
Zoltan HERPAI | 213dcbf | 2015-01-06 01:09:18 +0100 | [diff] [blame] | 127 | config TARGET_PCDUINO |
| 128 | bool "PCDUINO" |
| 129 | depends on MACH_SUN4I |
| 130 | |
Ian Campbell | d9a2047 | 2014-10-24 21:20:49 +0100 | [diff] [blame] | 131 | config TARGET_PCDUINO3 |
| 132 | bool "PCDUINO3" |
| 133 | depends on MACH_SUN7I |
| 134 | |
| 135 | config TARGET_MELE_A1000G |
| 136 | bool "MELE_A1000G" |
| 137 | depends on MACH_SUN4I |
| 138 | |
| 139 | config TARGET_MELE_A1000 |
| 140 | bool "MELE_A1000" |
| 141 | depends on MACH_SUN4I |
| 142 | |
| 143 | config TARGET_MELE_M3 |
| 144 | bool "MELE_M3" |
| 145 | depends on MACH_SUN7I |
| 146 | |
Hans de Goede | 505ecee | 2014-10-27 23:29:49 +0100 | [diff] [blame] | 147 | config TARGET_MELE_M9 |
| 148 | bool "MELE_M9" |
| 149 | depends on MACH_SUN6I |
| 150 | |
Ian Campbell | d9a2047 | 2014-10-24 21:20:49 +0100 | [diff] [blame] | 151 | config TARGET_MINI_X_1GB |
| 152 | bool "MINI_X_1GB" |
| 153 | depends on MACH_SUN4I |
| 154 | |
| 155 | config TARGET_MINI_X |
| 156 | bool "MINI_X" |
| 157 | depends on MACH_SUN4I |
| 158 | |
Siarhei Siamashka | f4f0df0 | 2014-12-27 09:38:57 +0200 | [diff] [blame] | 159 | config TARGET_MSI_PRIMO73 |
| 160 | bool "MSI Primo73 (7\" tablet)" |
| 161 | depends on MACH_SUN7I |
| 162 | ---help--- |
| 163 | The MSI Primo73 is an A20 based tablet, with 1G RAM, 16G NAND, |
| 164 | 1024x600 TN LCD display, mono speaker, 0.3 MP front camera, 2.0 MP |
| 165 | rear camera, 3000 mAh battery, gt911 touchscreen, mma8452 accelerometer |
| 166 | and rtl8188etv usb wifi. Has "power", "volume+" and "volume-" buttons |
| 167 | (both volume buttons are also connected to the UBOOT_SEL pin). The |
| 168 | external connectors are represented by MicroSD slot, MiniHDMI, MicroUSB |
| 169 | OTG and 3.5mm headphone jack. More details are available at |
| 170 | http://linux-sunxi.org/MSI_Primo73 |
| 171 | |
Siarhei Siamashka | 80e8669 | 2014-12-27 09:38:56 +0200 | [diff] [blame] | 172 | config TARGET_MSI_PRIMO81 |
| 173 | bool "MSI Primo81 (7.85\" tablet)" |
| 174 | depends on MACH_SUN6I |
| 175 | ---help--- |
| 176 | The MSI Primo81 is an A31s based tablet, with 1G RAM, 16G NAND, |
| 177 | 1024x768 IPS LCD display, mono speaker, 0.3 MP front camera, 2.0 MP |
| 178 | rear camera, 3500 mAh battery, gt911 touchscreen, mma8452 accelerometer |
| 179 | and rtl8188etv usb wifi. Has "power", "volume+" and "volume-" buttons |
| 180 | (both volume buttons are also connected to the UBOOT_SEL pin). The |
| 181 | external connectors are represented by MicroSD slot, MiniHDMI, MicroUSB |
| 182 | OTG and 3.5mm headphone jack. More details are available at |
| 183 | http://linux-sunxi.org/MSI_Primo81 |
| 184 | |
Ian Campbell | d9a2047 | 2014-10-24 21:20:49 +0100 | [diff] [blame] | 185 | config TARGET_BA10_TV_BOX |
| 186 | bool "BA10_TV_BOX" |
| 187 | depends on MACH_SUN4I |
| 188 | |
| 189 | config TARGET_I12_TVBOX |
| 190 | bool "I12_TVBOX" |
| 191 | depends on MACH_SUN7I |
| 192 | |
| 193 | config TARGET_QT840A |
| 194 | bool "QT840A" |
| 195 | depends on MACH_SUN7I |
| 196 | |
| 197 | config TARGET_R7DONGLE |
| 198 | bool "R7DONGLE" |
| 199 | depends on MACH_SUN5I |
| 200 | |
| 201 | endchoice |
| 202 | |
Masahiro Yamada | dd84058 | 2014-07-30 14:08:14 +0900 | [diff] [blame] | 203 | config SYS_BOARD |
Masahiro Yamada | dd84058 | 2014-07-30 14:08:14 +0900 | [diff] [blame] | 204 | default "sunxi" |
| 205 | |
| 206 | config SYS_SOC |
Masahiro Yamada | dd84058 | 2014-07-30 14:08:14 +0900 | [diff] [blame] | 207 | default "sunxi" |
| 208 | |
Ian Campbell | 4ce9941 | 2014-10-24 21:20:46 +0100 | [diff] [blame] | 209 | config SPL_FEL |
| 210 | bool "SPL/FEL mode support" |
| 211 | depends on SPL |
| 212 | default n |
| 213 | |
Siarhei Siamashka | f0ce28e | 2014-12-25 02:34:47 +0200 | [diff] [blame] | 214 | config UART0_PORT_F |
| 215 | bool "UART0 on MicroSD breakout board" |
| 216 | depends on SPL_FEL |
| 217 | default n |
| 218 | ---help--- |
| 219 | Repurpose the SD card slot for getting access to the UART0 serial |
| 220 | console. Primarily useful only for low level u-boot debugging on |
| 221 | tablets, where normal UART0 is difficult to access and requires |
| 222 | device disassembly and/or soldering. As the SD card can't be used |
| 223 | at the same time, the system can be only booted in the FEL mode. |
| 224 | Only enable this if you really know what you are doing. |
| 225 | |
Ian Campbell | 98e214d | 2014-08-31 13:13:43 +0100 | [diff] [blame] | 226 | config FDTFILE |
| 227 | string "Default fdtfile env setting for this board" |
Hans de Goede | 846e325 | 2014-08-01 09:37:58 +0200 | [diff] [blame] | 228 | |
Hans de Goede | accc9e4 | 2014-10-22 14:56:36 +0200 | [diff] [blame] | 229 | config OLD_SUNXI_KERNEL_COMPAT |
| 230 | boolean "Enable workarounds for booting old kernels" |
| 231 | default n |
| 232 | ---help--- |
| 233 | Set this to enable various workarounds for old kernels, this results in |
| 234 | sub-optimal settings for newer kernels, only enable if needed. |
| 235 | |
Hans de Goede | cd82113 | 2014-10-02 20:29:26 +0200 | [diff] [blame] | 236 | config MMC0_CD_PIN |
| 237 | string "Card detect pin for mmc0" |
| 238 | default "" |
| 239 | ---help--- |
| 240 | Set the card detect pin for mmc0, leave empty to not use cd. This |
| 241 | takes a string in the format understood by sunxi_name_to_gpio, e.g. |
| 242 | PH1 for pin 1 of port H. |
| 243 | |
| 244 | config MMC1_CD_PIN |
| 245 | string "Card detect pin for mmc1" |
| 246 | default "" |
| 247 | ---help--- |
| 248 | See MMC0_CD_PIN help text. |
| 249 | |
| 250 | config MMC2_CD_PIN |
| 251 | string "Card detect pin for mmc2" |
| 252 | default "" |
| 253 | ---help--- |
| 254 | See MMC0_CD_PIN help text. |
| 255 | |
| 256 | config MMC3_CD_PIN |
| 257 | string "Card detect pin for mmc3" |
| 258 | default "" |
| 259 | ---help--- |
| 260 | See MMC0_CD_PIN help text. |
| 261 | |
Hans de Goede | 2ccfac0 | 2014-10-02 20:43:50 +0200 | [diff] [blame] | 262 | config MMC_SUNXI_SLOT_EXTRA |
| 263 | int "mmc extra slot number" |
| 264 | default -1 |
| 265 | ---help--- |
| 266 | sunxi builds always enable mmc0, some boards also have a second sdcard |
| 267 | slot or emmc on mmc1 - mmc3. Setting this to 1, 2 or 3 will enable |
| 268 | support for this. |
| 269 | |
Hans de Goede | 115200c | 2014-11-07 16:09:00 +0100 | [diff] [blame] | 270 | config USB1_VBUS_PIN |
| 271 | string "Vbus enable pin for usb1 (ehci0)" |
| 272 | default "PH6" if MACH_SUN4I || MACH_SUN7I |
Hans de Goede | 76946df | 2014-11-07 14:51:12 +0100 | [diff] [blame] | 273 | default "PH27" if MACH_SUN6I |
Hans de Goede | 115200c | 2014-11-07 16:09:00 +0100 | [diff] [blame] | 274 | ---help--- |
| 275 | Set the Vbus enable pin for usb1 (ehci0, usb0 is the otg). This takes |
| 276 | a string in the format understood by sunxi_name_to_gpio, e.g. |
| 277 | PH1 for pin 1 of port H. |
| 278 | |
| 279 | config USB2_VBUS_PIN |
| 280 | string "Vbus enable pin for usb2 (ehci1)" |
| 281 | default "PH3" if MACH_SUN4I || MACH_SUN7I |
Hans de Goede | 76946df | 2014-11-07 14:51:12 +0100 | [diff] [blame] | 282 | default "PH24" if MACH_SUN6I |
Hans de Goede | 115200c | 2014-11-07 16:09:00 +0100 | [diff] [blame] | 283 | ---help--- |
| 284 | See USB1_VBUS_PIN help text. |
| 285 | |
Luc Verhaegen | 7f2c521 | 2014-08-13 07:55:06 +0200 | [diff] [blame] | 286 | config VIDEO |
Hans de Goede | 2dae800 | 2014-12-21 16:28:32 +0100 | [diff] [blame] | 287 | boolean "Enable graphical uboot console on HDMI, LCD or VGA" |
Luc Verhaegen | 7f2c521 | 2014-08-13 07:55:06 +0200 | [diff] [blame] | 288 | default y |
| 289 | ---help--- |
Hans de Goede | 2dae800 | 2014-12-21 16:28:32 +0100 | [diff] [blame] | 290 | Say Y here to add support for using a cfb console on the HDMI, LCD |
| 291 | or VGA output found on most sunxi devices. See doc/README.video for |
| 292 | info on how to select the video output and mode. |
| 293 | |
Hans de Goede | 2fbf091 | 2014-12-23 23:04:35 +0100 | [diff] [blame] | 294 | config VIDEO_HDMI |
| 295 | boolean "HDMI output support" |
| 296 | depends on VIDEO && !MACH_SUN8I |
| 297 | default y |
| 298 | ---help--- |
| 299 | Say Y here to add support for outputting video over HDMI. |
| 300 | |
Hans de Goede | d9786d2 | 2014-12-25 13:58:06 +0100 | [diff] [blame] | 301 | config VIDEO_VGA |
| 302 | boolean "VGA output support" |
| 303 | depends on VIDEO && (MACH_SUN4I || MACH_SUN7I) |
| 304 | default n |
| 305 | ---help--- |
| 306 | Say Y here to add support for outputting video over VGA. |
| 307 | |
Hans de Goede | e2bbdfb | 2014-12-24 12:17:07 +0100 | [diff] [blame] | 308 | config VIDEO_VGA_VIA_LCD |
| 309 | boolean "VGA via LCD controller support" |
Hans de Goede | d9786d2 | 2014-12-25 13:58:06 +0100 | [diff] [blame] | 310 | depends on VIDEO && MACH_SUN5I |
Hans de Goede | e2bbdfb | 2014-12-24 12:17:07 +0100 | [diff] [blame] | 311 | default n |
| 312 | ---help--- |
| 313 | Say Y here to add support for external DACs connected to the parallel |
| 314 | LCD interface driving a VGA connector, such as found on the |
| 315 | Olimex A13 boards. |
| 316 | |
Hans de Goede | 2dae800 | 2014-12-21 16:28:32 +0100 | [diff] [blame] | 317 | config VIDEO_LCD_MODE |
| 318 | string "LCD panel timing details" |
| 319 | depends on VIDEO |
| 320 | default "" |
| 321 | ---help--- |
| 322 | LCD panel timing details string, leave empty if there is no LCD panel. |
| 323 | This is in drivers/video/videomodes.c: video_get_params() format, e.g. |
| 324 | 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 |
| 325 | |
| 326 | config VIDEO_LCD_POWER |
| 327 | string "LCD panel power enable pin" |
| 328 | depends on VIDEO |
| 329 | default "" |
| 330 | ---help--- |
| 331 | Set the power enable pin for the LCD panel. This takes a string in the |
| 332 | format understood by sunxi_name_to_gpio, e.g. PH1 for pin 1 of port H. |
| 333 | |
| 334 | config VIDEO_LCD_BL_EN |
| 335 | string "LCD panel backlight enable pin" |
| 336 | depends on VIDEO |
| 337 | default "" |
| 338 | ---help--- |
| 339 | Set the backlight enable pin for the LCD panel. This takes a string in the |
| 340 | the format understood by sunxi_name_to_gpio, e.g. PH1 for pin 1 of |
| 341 | port H. |
| 342 | |
| 343 | config VIDEO_LCD_BL_PWM |
| 344 | string "LCD panel backlight pwm pin" |
| 345 | depends on VIDEO |
| 346 | default "" |
| 347 | ---help--- |
| 348 | Set the backlight pwm pin for the LCD panel. This takes a string in the |
| 349 | 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] | 350 | |
Hans de Goede | 213480e | 2015-01-01 22:04:34 +0100 | [diff] [blame^] | 351 | |
| 352 | # Note only one of these may be selected at a time! But hidden choices are |
| 353 | # not supported by Kconfig |
| 354 | config VIDEO_LCD_IF_PARALLEL |
| 355 | bool |
| 356 | |
| 357 | config VIDEO_LCD_IF_LVDS |
| 358 | bool |
| 359 | |
| 360 | |
| 361 | choice |
| 362 | prompt "LCD panel support" |
| 363 | depends on VIDEO |
| 364 | ---help--- |
| 365 | Select which type of LCD panel to support. |
| 366 | |
| 367 | config VIDEO_LCD_PANEL_PARALLEL |
| 368 | bool "Generic parallel interface LCD panel" |
| 369 | select VIDEO_LCD_IF_PARALLEL |
| 370 | |
| 371 | config VIDEO_LCD_PANEL_LVDS |
| 372 | bool "Generic lvds interface LCD panel" |
| 373 | select VIDEO_LCD_IF_LVDS |
| 374 | |
| 375 | endchoice |
| 376 | |
| 377 | |
Hans de Goede | 86b4909 | 2014-09-18 21:03:34 +0200 | [diff] [blame] | 378 | config USB_KEYBOARD |
| 379 | boolean "Enable USB keyboard support" |
| 380 | default y |
| 381 | ---help--- |
| 382 | 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] | 383 | in combination with a graphical console). |
Hans de Goede | 86b4909 | 2014-09-18 21:03:34 +0200 | [diff] [blame] | 384 | |
Masahiro Yamada | dd84058 | 2014-07-30 14:08:14 +0900 | [diff] [blame] | 385 | endif |