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