blob: e20ea1b13f17de531f961ca1f3ae932e255e8219 [file] [log] [blame]
Ian Campbell2c7e3b92014-10-24 21:20:44 +01001if ARCH_SUNXI
2
3choice
4 prompt "Sunxi SoC Variant"
5
Ian Campbellc3be2792014-10-24 21:20:45 +01006config MACH_SUN4I
Ian Campbell2c7e3b92014-10-24 21:20:44 +01007 bool "sun4i (Allwinner A10)"
8 select CPU_V7
9 select SUPPORT_SPL
10
Ian Campbellc3be2792014-10-24 21:20:45 +010011config MACH_SUN5I
Ian Campbell2c7e3b92014-10-24 21:20:44 +010012 bool "sun5i (Allwinner A13)"
13 select CPU_V7
14 select SUPPORT_SPL
15
Ian Campbellc3be2792014-10-24 21:20:45 +010016config MACH_SUN6I
Ian Campbell2c7e3b92014-10-24 21:20:44 +010017 bool "sun6i (Allwinner A31)"
18 select CPU_V7
Hans de Goede8c2c9cf2014-10-25 20:18:10 +020019 select SUPPORT_SPL
Ian Campbell2c7e3b92014-10-24 21:20:44 +010020
Ian Campbellc3be2792014-10-24 21:20:45 +010021config MACH_SUN7I
Ian Campbell2c7e3b92014-10-24 21:20:44 +010022 bool "sun7i (Allwinner A20)"
23 select CPU_V7
Hans de Goedeea624e12014-11-14 09:34:30 +010024 select CPU_V7_HAS_NONSEC
25 select CPU_V7_HAS_VIRT
Ian Campbell2c7e3b92014-10-24 21:20:44 +010026 select SUPPORT_SPL
27
Ian Campbellc3be2792014-10-24 21:20:45 +010028config MACH_SUN8I
Ian Campbell2c7e3b92014-10-24 21:20:44 +010029 bool "sun8i (Allwinner A23)"
30 select CPU_V7
31
32endchoice
Maxime Ripard8a6564d2014-10-03 20:16:29 +080033
34config SYS_CONFIG_NAME
35 string
Ian Campbellc3be2792014-10-24 21:20:45 +010036 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
Hans de Goede6ae66f22014-08-01 09:28:24 +020041
Ian Campbelld9a20472014-10-24 21:20:49 +010042choice
43 prompt "Board"
44
45config TARGET_A10_OLINUXINO_L
46 bool "A10_OLINUXINO_L"
47 depends on MACH_SUN4I
48
49config TARGET_A10S_OLINUXINO_M
50 bool "A10S_OLINUXINO_M"
51 depends on MACH_SUN5I
52
53config TARGET_A13_OLINUXINOM
54 bool "A13_OLINUXINOM"
55 depends on MACH_SUN5I
56
57config TARGET_A13_OLINUXINO
58 bool "A13_OLINUXINO"
59 depends on MACH_SUN5I
60
61config TARGET_A20_OLINUXINO_L2
62 bool "A20_OLINUXINO_L2"
63 depends on MACH_SUN7I
64
65config TARGET_A20_OLINUXINO_L
66 bool "A20_OLINUXINO_L"
67 depends on MACH_SUN7I
68
69config TARGET_A20_OLINUXINO_M
70 bool "A20_OLINUXINO_M"
71 depends on MACH_SUN7I
72
73config TARGET_AUXTEK_T004
74 bool "AUXTEK_T004"
75 depends on MACH_SUN5I
76
77config TARGET_BANANAPI
78 bool "BANANAPI"
79 depends on MACH_SUN7I
80
81config TARGET_COLOMBUS
82 bool "COLOMBUS"
83 depends on MACH_SUN6I
84
85config TARGET_CUBIEBOARD2
86 bool "CUBIEBOARD2"
87 depends on MACH_SUN7I
88
89config TARGET_CUBIEBOARD
90 bool "CUBIEBOARD"
91 depends on MACH_SUN4I
92
93config TARGET_CUBIETRUCK
94 bool "CUBIETRUCK"
95 depends on MACH_SUN7I
96
97config TARGET_IPPO_Q8H_V5
98 bool "IPPO_Q8H_V5"
99 depends on MACH_SUN8I
100
101config TARGET_PCDUINO3
102 bool "PCDUINO3"
103 depends on MACH_SUN7I
104
105config TARGET_MELE_A1000G
106 bool "MELE_A1000G"
107 depends on MACH_SUN4I
108
109config TARGET_MELE_A1000
110 bool "MELE_A1000"
111 depends on MACH_SUN4I
112
113config TARGET_MELE_M3
114 bool "MELE_M3"
115 depends on MACH_SUN7I
116
Hans de Goede505ecee2014-10-27 23:29:49 +0100117config TARGET_MELE_M9
118 bool "MELE_M9"
119 depends on MACH_SUN6I
120
Ian Campbelld9a20472014-10-24 21:20:49 +0100121config TARGET_MINI_X_1GB
122 bool "MINI_X_1GB"
123 depends on MACH_SUN4I
124
125config TARGET_MINI_X
126 bool "MINI_X"
127 depends on MACH_SUN4I
128
129config TARGET_BA10_TV_BOX
130 bool "BA10_TV_BOX"
131 depends on MACH_SUN4I
132
133config TARGET_I12_TVBOX
134 bool "I12_TVBOX"
135 depends on MACH_SUN7I
136
137config TARGET_QT840A
138 bool "QT840A"
139 depends on MACH_SUN7I
140
141config TARGET_R7DONGLE
142 bool "R7DONGLE"
143 depends on MACH_SUN5I
144
145endchoice
146
Masahiro Yamadadd840582014-07-30 14:08:14 +0900147config SYS_BOARD
Masahiro Yamadadd840582014-07-30 14:08:14 +0900148 default "sunxi"
149
150config SYS_SOC
Masahiro Yamadadd840582014-07-30 14:08:14 +0900151 default "sunxi"
152
Ian Campbell4ce99412014-10-24 21:20:46 +0100153config SPL_FEL
154 bool "SPL/FEL mode support"
155 depends on SPL
156 default n
157
Ian Campbell98e214d2014-08-31 13:13:43 +0100158config FDTFILE
159 string "Default fdtfile env setting for this board"
Hans de Goede846e3252014-08-01 09:37:58 +0200160
Hans de Goedeaccc9e42014-10-22 14:56:36 +0200161config 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 Goedecd821132014-10-02 20:29:26 +0200168config 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
176config MMC1_CD_PIN
177 string "Card detect pin for mmc1"
178 default ""
179 ---help---
180 See MMC0_CD_PIN help text.
181
182config MMC2_CD_PIN
183 string "Card detect pin for mmc2"
184 default ""
185 ---help---
186 See MMC0_CD_PIN help text.
187
188config MMC3_CD_PIN
189 string "Card detect pin for mmc3"
190 default ""
191 ---help---
192 See MMC0_CD_PIN help text.
193
Hans de Goede2ccfac02014-10-02 20:43:50 +0200194config 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 Goede115200c2014-11-07 16:09:00 +0100202config USB1_VBUS_PIN
203 string "Vbus enable pin for usb1 (ehci0)"
204 default "PH6" if MACH_SUN4I || MACH_SUN7I
Hans de Goede76946df2014-11-07 14:51:12 +0100205 default "PH27" if MACH_SUN6I
Hans de Goede115200c2014-11-07 16:09:00 +0100206 ---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
211config USB2_VBUS_PIN
212 string "Vbus enable pin for usb2 (ehci1)"
213 default "PH3" if MACH_SUN4I || MACH_SUN7I
Hans de Goede76946df2014-11-07 14:51:12 +0100214 default "PH24" if MACH_SUN6I
Hans de Goede115200c2014-11-07 16:09:00 +0100215 ---help---
216 See USB1_VBUS_PIN help text.
217
Luc Verhaegen7f2c5212014-08-13 07:55:06 +0200218config 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 Goede86b49092014-09-18 21:03:34 +0200225config 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 Yamadadd840582014-07-30 14:08:14 +0900232endif