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 | |
| 99 | config TARGET_COLOMBUS |
| 100 | bool "COLOMBUS" |
| 101 | depends on MACH_SUN6I |
| 102 | |
| 103 | config TARGET_CUBIEBOARD2 |
| 104 | bool "CUBIEBOARD2" |
| 105 | depends on MACH_SUN7I |
| 106 | |
| 107 | config TARGET_CUBIEBOARD |
| 108 | bool "CUBIEBOARD" |
| 109 | depends on MACH_SUN4I |
| 110 | |
| 111 | config TARGET_CUBIETRUCK |
| 112 | bool "CUBIETRUCK" |
| 113 | depends on MACH_SUN7I |
| 114 | |
Chen-Yu Tsai | a805b7e | 2014-12-09 16:56:53 +0800 | [diff] [blame] | 115 | config TARGET_HUMMINGBIRD_A31 |
| 116 | bool "HUMMINGBIRD_A31" |
| 117 | depends on MACH_SUN6I |
| 118 | |
Ian Campbell | d9a2047 | 2014-10-24 21:20:49 +0100 | [diff] [blame] | 119 | config TARGET_IPPO_Q8H_V5 |
| 120 | bool "IPPO_Q8H_V5" |
| 121 | depends on MACH_SUN8I |
| 122 | |
| 123 | config TARGET_PCDUINO3 |
| 124 | bool "PCDUINO3" |
| 125 | depends on MACH_SUN7I |
| 126 | |
| 127 | config TARGET_MELE_A1000G |
| 128 | bool "MELE_A1000G" |
| 129 | depends on MACH_SUN4I |
| 130 | |
| 131 | config TARGET_MELE_A1000 |
| 132 | bool "MELE_A1000" |
| 133 | depends on MACH_SUN4I |
| 134 | |
| 135 | config TARGET_MELE_M3 |
| 136 | bool "MELE_M3" |
| 137 | depends on MACH_SUN7I |
| 138 | |
Hans de Goede | 505ecee | 2014-10-27 23:29:49 +0100 | [diff] [blame] | 139 | config TARGET_MELE_M9 |
| 140 | bool "MELE_M9" |
| 141 | depends on MACH_SUN6I |
| 142 | |
Ian Campbell | d9a2047 | 2014-10-24 21:20:49 +0100 | [diff] [blame] | 143 | config TARGET_MINI_X_1GB |
| 144 | bool "MINI_X_1GB" |
| 145 | depends on MACH_SUN4I |
| 146 | |
| 147 | config TARGET_MINI_X |
| 148 | bool "MINI_X" |
| 149 | depends on MACH_SUN4I |
| 150 | |
| 151 | config TARGET_BA10_TV_BOX |
| 152 | bool "BA10_TV_BOX" |
| 153 | depends on MACH_SUN4I |
| 154 | |
| 155 | config TARGET_I12_TVBOX |
| 156 | bool "I12_TVBOX" |
| 157 | depends on MACH_SUN7I |
| 158 | |
| 159 | config TARGET_QT840A |
| 160 | bool "QT840A" |
| 161 | depends on MACH_SUN7I |
| 162 | |
| 163 | config TARGET_R7DONGLE |
| 164 | bool "R7DONGLE" |
| 165 | depends on MACH_SUN5I |
| 166 | |
| 167 | endchoice |
| 168 | |
Masahiro Yamada | dd84058 | 2014-07-30 14:08:14 +0900 | [diff] [blame] | 169 | config SYS_BOARD |
Masahiro Yamada | dd84058 | 2014-07-30 14:08:14 +0900 | [diff] [blame] | 170 | default "sunxi" |
| 171 | |
| 172 | config SYS_SOC |
Masahiro Yamada | dd84058 | 2014-07-30 14:08:14 +0900 | [diff] [blame] | 173 | default "sunxi" |
| 174 | |
Ian Campbell | 4ce9941 | 2014-10-24 21:20:46 +0100 | [diff] [blame] | 175 | config SPL_FEL |
| 176 | bool "SPL/FEL mode support" |
| 177 | depends on SPL |
| 178 | default n |
| 179 | |
Ian Campbell | 98e214d | 2014-08-31 13:13:43 +0100 | [diff] [blame] | 180 | config FDTFILE |
| 181 | string "Default fdtfile env setting for this board" |
Hans de Goede | 846e325 | 2014-08-01 09:37:58 +0200 | [diff] [blame] | 182 | |
Hans de Goede | accc9e4 | 2014-10-22 14:56:36 +0200 | [diff] [blame] | 183 | config OLD_SUNXI_KERNEL_COMPAT |
| 184 | boolean "Enable workarounds for booting old kernels" |
| 185 | default n |
| 186 | ---help--- |
| 187 | Set this to enable various workarounds for old kernels, this results in |
| 188 | sub-optimal settings for newer kernels, only enable if needed. |
| 189 | |
Hans de Goede | cd82113 | 2014-10-02 20:29:26 +0200 | [diff] [blame] | 190 | config MMC0_CD_PIN |
| 191 | string "Card detect pin for mmc0" |
| 192 | default "" |
| 193 | ---help--- |
| 194 | Set the card detect pin for mmc0, leave empty to not use cd. This |
| 195 | takes a string in the format understood by sunxi_name_to_gpio, e.g. |
| 196 | PH1 for pin 1 of port H. |
| 197 | |
| 198 | config MMC1_CD_PIN |
| 199 | string "Card detect pin for mmc1" |
| 200 | default "" |
| 201 | ---help--- |
| 202 | See MMC0_CD_PIN help text. |
| 203 | |
| 204 | config MMC2_CD_PIN |
| 205 | string "Card detect pin for mmc2" |
| 206 | default "" |
| 207 | ---help--- |
| 208 | See MMC0_CD_PIN help text. |
| 209 | |
| 210 | config MMC3_CD_PIN |
| 211 | string "Card detect pin for mmc3" |
| 212 | default "" |
| 213 | ---help--- |
| 214 | See MMC0_CD_PIN help text. |
| 215 | |
Hans de Goede | 2ccfac0 | 2014-10-02 20:43:50 +0200 | [diff] [blame] | 216 | config MMC_SUNXI_SLOT_EXTRA |
| 217 | int "mmc extra slot number" |
| 218 | default -1 |
| 219 | ---help--- |
| 220 | sunxi builds always enable mmc0, some boards also have a second sdcard |
| 221 | slot or emmc on mmc1 - mmc3. Setting this to 1, 2 or 3 will enable |
| 222 | support for this. |
| 223 | |
Hans de Goede | 115200c | 2014-11-07 16:09:00 +0100 | [diff] [blame] | 224 | config USB1_VBUS_PIN |
| 225 | string "Vbus enable pin for usb1 (ehci0)" |
| 226 | default "PH6" if MACH_SUN4I || MACH_SUN7I |
Hans de Goede | 76946df | 2014-11-07 14:51:12 +0100 | [diff] [blame] | 227 | default "PH27" if MACH_SUN6I |
Hans de Goede | 115200c | 2014-11-07 16:09:00 +0100 | [diff] [blame] | 228 | ---help--- |
| 229 | Set the Vbus enable pin for usb1 (ehci0, usb0 is the otg). This takes |
| 230 | a string in the format understood by sunxi_name_to_gpio, e.g. |
| 231 | PH1 for pin 1 of port H. |
| 232 | |
| 233 | config USB2_VBUS_PIN |
| 234 | string "Vbus enable pin for usb2 (ehci1)" |
| 235 | default "PH3" if MACH_SUN4I || MACH_SUN7I |
Hans de Goede | 76946df | 2014-11-07 14:51:12 +0100 | [diff] [blame] | 236 | default "PH24" if MACH_SUN6I |
Hans de Goede | 115200c | 2014-11-07 16:09:00 +0100 | [diff] [blame] | 237 | ---help--- |
| 238 | See USB1_VBUS_PIN help text. |
| 239 | |
Luc Verhaegen | 7f2c521 | 2014-08-13 07:55:06 +0200 | [diff] [blame] | 240 | config VIDEO |
| 241 | boolean "Enable graphical uboot console on HDMI" |
| 242 | default y |
| 243 | ---help--- |
| 244 | Say Y here to add support for using a cfb console on the HDMI output |
| 245 | found on most sunxi devices. |
| 246 | |
Hans de Goede | 86b4909 | 2014-09-18 21:03:34 +0200 | [diff] [blame] | 247 | config USB_KEYBOARD |
| 248 | boolean "Enable USB keyboard support" |
| 249 | default y |
| 250 | ---help--- |
| 251 | Say Y here to add support for using a USB keyboard (typically used |
| 252 | in combination with a graphical console on HDMI). |
| 253 | |
Masahiro Yamada | dd84058 | 2014-07-30 14:08:14 +0900 | [diff] [blame] | 254 | endif |