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