blob: 246cd9a1a708df0d42892586d4db6188c3c75b36 [file] [log] [blame]
Ian Campbelld8e69e02014-10-24 21:20:44 +01001if ARCH_SUNXI
2
3choice
4 prompt "Sunxi SoC Variant"
5
Ian Campbell4a24a1c2014-10-24 21:20:45 +01006config MACH_SUN4I
Ian Campbelld8e69e02014-10-24 21:20:44 +01007 bool "sun4i (Allwinner A10)"
8 select CPU_V7
9 select SUPPORT_SPL
10
Ian Campbell4a24a1c2014-10-24 21:20:45 +010011config MACH_SUN5I
Ian Campbelld8e69e02014-10-24 21:20:44 +010012 bool "sun5i (Allwinner A13)"
13 select CPU_V7
14 select SUPPORT_SPL
15
Ian Campbell4a24a1c2014-10-24 21:20:45 +010016config MACH_SUN6I
Ian Campbelld8e69e02014-10-24 21:20:44 +010017 bool "sun6i (Allwinner A31)"
18 select CPU_V7
Hans de Goedea5403b92014-10-25 20:18:10 +020019 select SUPPORT_SPL
Ian Campbelld8e69e02014-10-24 21:20:44 +010020
Ian Campbell4a24a1c2014-10-24 21:20:45 +010021config MACH_SUN7I
Ian Campbelld8e69e02014-10-24 21:20:44 +010022 bool "sun7i (Allwinner A20)"
23 select CPU_V7
Hans de Goede85437352014-11-14 09:34:30 +010024 select CPU_V7_HAS_NONSEC
25 select CPU_V7_HAS_VIRT
Ian Campbelld8e69e02014-10-24 21:20:44 +010026 select SUPPORT_SPL
Hans de Goedea5636382014-10-24 20:12:04 +020027 select ARMV7_BOOT_SEC_DEFAULT if OLD_SUNXI_KERNEL_COMPAT
Ian Campbelld8e69e02014-10-24 21:20:44 +010028
Ian Campbell4a24a1c2014-10-24 21:20:45 +010029config MACH_SUN8I
Ian Campbelld8e69e02014-10-24 21:20:44 +010030 bool "sun8i (Allwinner A23)"
31 select CPU_V7
32
33endchoice
Maxime Ripard2c519412014-10-03 20:16:29 +080034
35config SYS_CONFIG_NAME
36 string
Ian Campbell4a24a1c2014-10-24 21:20:45 +010037 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 Yamadad3ae6782014-07-30 14:08:14 +090042
Ian Campbell0ea187d2014-10-24 21:20:49 +010043choice
44 prompt "Board"
45
46config TARGET_A10_OLINUXINO_L
47 bool "A10_OLINUXINO_L"
48 depends on MACH_SUN4I
49
50config TARGET_A10S_OLINUXINO_M
51 bool "A10S_OLINUXINO_M"
52 depends on MACH_SUN5I
53
54config TARGET_A13_OLINUXINOM
55 bool "A13_OLINUXINOM"
56 depends on MACH_SUN5I
57
58config TARGET_A13_OLINUXINO
59 bool "A13_OLINUXINO"
60 depends on MACH_SUN5I
61
62config TARGET_A20_OLINUXINO_L2
63 bool "A20_OLINUXINO_L2"
64 depends on MACH_SUN7I
65
66config TARGET_A20_OLINUXINO_L
67 bool "A20_OLINUXINO_L"
68 depends on MACH_SUN7I
69
70config TARGET_A20_OLINUXINO_M
71 bool "A20_OLINUXINO_M"
72 depends on MACH_SUN7I
73
74config TARGET_AUXTEK_T004
75 bool "AUXTEK_T004"
76 depends on MACH_SUN5I
77
78config TARGET_BANANAPI
79 bool "BANANAPI"
80 depends on MACH_SUN7I
81
82config TARGET_COLOMBUS
83 bool "COLOMBUS"
84 depends on MACH_SUN6I
85
86config TARGET_CUBIEBOARD2
87 bool "CUBIEBOARD2"
88 depends on MACH_SUN7I
89
90config TARGET_CUBIEBOARD
91 bool "CUBIEBOARD"
92 depends on MACH_SUN4I
93
94config TARGET_CUBIETRUCK
95 bool "CUBIETRUCK"
96 depends on MACH_SUN7I
97
98config TARGET_IPPO_Q8H_V5
99 bool "IPPO_Q8H_V5"
100 depends on MACH_SUN8I
101
102config TARGET_PCDUINO3
103 bool "PCDUINO3"
104 depends on MACH_SUN7I
105
106config TARGET_MELE_A1000G
107 bool "MELE_A1000G"
108 depends on MACH_SUN4I
109
110config TARGET_MELE_A1000
111 bool "MELE_A1000"
112 depends on MACH_SUN4I
113
114config TARGET_MELE_M3
115 bool "MELE_M3"
116 depends on MACH_SUN7I
117
Hans de Goede09f57482014-10-27 23:29:49 +0100118config TARGET_MELE_M9
119 bool "MELE_M9"
120 depends on MACH_SUN6I
121
Ian Campbell0ea187d2014-10-24 21:20:49 +0100122config TARGET_MINI_X_1GB
123 bool "MINI_X_1GB"
124 depends on MACH_SUN4I
125
126config TARGET_MINI_X
127 bool "MINI_X"
128 depends on MACH_SUN4I
129
130config TARGET_BA10_TV_BOX
131 bool "BA10_TV_BOX"
132 depends on MACH_SUN4I
133
134config TARGET_I12_TVBOX
135 bool "I12_TVBOX"
136 depends on MACH_SUN7I
137
138config TARGET_QT840A
139 bool "QT840A"
140 depends on MACH_SUN7I
141
142config TARGET_R7DONGLE
143 bool "R7DONGLE"
144 depends on MACH_SUN5I
145
146endchoice
147
Masahiro Yamadad3ae6782014-07-30 14:08:14 +0900148config SYS_BOARD
Masahiro Yamadad3ae6782014-07-30 14:08:14 +0900149 default "sunxi"
150
151config SYS_SOC
Masahiro Yamadad3ae6782014-07-30 14:08:14 +0900152 default "sunxi"
153
Ian Campbell8ad104b2014-10-24 21:20:46 +0100154config SPL_FEL
155 bool "SPL/FEL mode support"
156 depends on SPL
157 default n
158
Ian Campbell9536fc42014-08-31 13:13:43 +0100159config FDTFILE
160 string "Default fdtfile env setting for this board"
Hans de Goede2f60c312014-08-01 09:37:58 +0200161
Hans de Goede05e5bcb2014-10-22 14:56:36 +0200162config 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 Goede7412ef82014-10-02 20:29:26 +0200169config 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
177config MMC1_CD_PIN
178 string "Card detect pin for mmc1"
179 default ""
180 ---help---
181 See MMC0_CD_PIN help text.
182
183config MMC2_CD_PIN
184 string "Card detect pin for mmc2"
185 default ""
186 ---help---
187 See MMC0_CD_PIN help text.
188
189config MMC3_CD_PIN
190 string "Card detect pin for mmc3"
191 default ""
192 ---help---
193 See MMC0_CD_PIN help text.
194
Hans de Goedeaf593e42014-10-02 20:43:50 +0200195config 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 Goedeaf4273b2014-11-07 16:09:00 +0100203config USB1_VBUS_PIN
204 string "Vbus enable pin for usb1 (ehci0)"
205 default "PH6" if MACH_SUN4I || MACH_SUN7I
Hans de Goedeb5ab8ce2014-11-07 14:51:12 +0100206 default "PH27" if MACH_SUN6I
Hans de Goedeaf4273b2014-11-07 16:09:00 +0100207 ---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
212config USB2_VBUS_PIN
213 string "Vbus enable pin for usb2 (ehci1)"
214 default "PH3" if MACH_SUN4I || MACH_SUN7I
Hans de Goedeb5ab8ce2014-11-07 14:51:12 +0100215 default "PH24" if MACH_SUN6I
Hans de Goedeaf4273b2014-11-07 16:09:00 +0100216 ---help---
217 See USB1_VBUS_PIN help text.
218
Luc Verhaegenb01df1e2014-08-13 07:55:06 +0200219config 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 Goede16030822014-09-18 21:03:34 +0200226config 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 Yamadad3ae6782014-07-30 14:08:14 +0900233endif