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