blob: b2beea07e08e35a47096f2901d3842a5ea2a3158 [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
24 select SUPPORT_SPL
25
Ian Campbell4a24a1c2014-10-24 21:20:45 +010026config MACH_SUN8I
Ian Campbelld8e69e02014-10-24 21:20:44 +010027 bool "sun8i (Allwinner A23)"
28 select CPU_V7
29
30endchoice
Maxime Ripard2c519412014-10-03 20:16:29 +080031
32config SYS_CONFIG_NAME
33 string
Ian Campbell4a24a1c2014-10-24 21:20:45 +010034 default "sun4i" if MACH_SUN4I
35 default "sun5i" if MACH_SUN5I
36 default "sun6i" if MACH_SUN6I
37 default "sun7i" if MACH_SUN7I
38 default "sun8i" if MACH_SUN8I
Masahiro Yamadad3ae6782014-07-30 14:08:14 +090039
Ian Campbell0ea187d2014-10-24 21:20:49 +010040choice
41 prompt "Board"
42
43config TARGET_A10_OLINUXINO_L
44 bool "A10_OLINUXINO_L"
45 depends on MACH_SUN4I
46
47config TARGET_A10S_OLINUXINO_M
48 bool "A10S_OLINUXINO_M"
49 depends on MACH_SUN5I
50
51config TARGET_A13_OLINUXINOM
52 bool "A13_OLINUXINOM"
53 depends on MACH_SUN5I
54
55config TARGET_A13_OLINUXINO
56 bool "A13_OLINUXINO"
57 depends on MACH_SUN5I
58
59config TARGET_A20_OLINUXINO_L2
60 bool "A20_OLINUXINO_L2"
61 depends on MACH_SUN7I
62
63config TARGET_A20_OLINUXINO_L
64 bool "A20_OLINUXINO_L"
65 depends on MACH_SUN7I
66
67config TARGET_A20_OLINUXINO_M
68 bool "A20_OLINUXINO_M"
69 depends on MACH_SUN7I
70
71config TARGET_AUXTEK_T004
72 bool "AUXTEK_T004"
73 depends on MACH_SUN5I
74
75config TARGET_BANANAPI
76 bool "BANANAPI"
77 depends on MACH_SUN7I
78
79config TARGET_COLOMBUS
80 bool "COLOMBUS"
81 depends on MACH_SUN6I
82
83config TARGET_CUBIEBOARD2
84 bool "CUBIEBOARD2"
85 depends on MACH_SUN7I
86
87config TARGET_CUBIEBOARD
88 bool "CUBIEBOARD"
89 depends on MACH_SUN4I
90
91config TARGET_CUBIETRUCK
92 bool "CUBIETRUCK"
93 depends on MACH_SUN7I
94
95config TARGET_IPPO_Q8H_V5
96 bool "IPPO_Q8H_V5"
97 depends on MACH_SUN8I
98
99config TARGET_PCDUINO3
100 bool "PCDUINO3"
101 depends on MACH_SUN7I
102
103config TARGET_MELE_A1000G
104 bool "MELE_A1000G"
105 depends on MACH_SUN4I
106
107config TARGET_MELE_A1000
108 bool "MELE_A1000"
109 depends on MACH_SUN4I
110
111config TARGET_MELE_M3
112 bool "MELE_M3"
113 depends on MACH_SUN7I
114
Hans de Goede09f57482014-10-27 23:29:49 +0100115config TARGET_MELE_M9
116 bool "MELE_M9"
117 depends on MACH_SUN6I
118
Ian Campbell0ea187d2014-10-24 21:20:49 +0100119config TARGET_MINI_X_1GB
120 bool "MINI_X_1GB"
121 depends on MACH_SUN4I
122
123config TARGET_MINI_X
124 bool "MINI_X"
125 depends on MACH_SUN4I
126
127config TARGET_BA10_TV_BOX
128 bool "BA10_TV_BOX"
129 depends on MACH_SUN4I
130
131config TARGET_I12_TVBOX
132 bool "I12_TVBOX"
133 depends on MACH_SUN7I
134
135config TARGET_QT840A
136 bool "QT840A"
137 depends on MACH_SUN7I
138
139config TARGET_R7DONGLE
140 bool "R7DONGLE"
141 depends on MACH_SUN5I
142
143endchoice
144
Masahiro Yamadad3ae6782014-07-30 14:08:14 +0900145config SYS_BOARD
Masahiro Yamadad3ae6782014-07-30 14:08:14 +0900146 default "sunxi"
147
148config SYS_SOC
Masahiro Yamadad3ae6782014-07-30 14:08:14 +0900149 default "sunxi"
150
Ian Campbell8ad104b2014-10-24 21:20:46 +0100151config SPL_FEL
152 bool "SPL/FEL mode support"
153 depends on SPL
154 default n
155
Ian Campbell9536fc42014-08-31 13:13:43 +0100156config FDTFILE
157 string "Default fdtfile env setting for this board"
Hans de Goede2f60c312014-08-01 09:37:58 +0200158
Hans de Goede05e5bcb2014-10-22 14:56:36 +0200159config OLD_SUNXI_KERNEL_COMPAT
160 boolean "Enable workarounds for booting old kernels"
161 default n
162 ---help---
163 Set this to enable various workarounds for old kernels, this results in
164 sub-optimal settings for newer kernels, only enable if needed.
165
Hans de Goede7412ef82014-10-02 20:29:26 +0200166config MMC0_CD_PIN
167 string "Card detect pin for mmc0"
168 default ""
169 ---help---
170 Set the card detect pin for mmc0, leave empty to not use cd. This
171 takes a string in the format understood by sunxi_name_to_gpio, e.g.
172 PH1 for pin 1 of port H.
173
174config MMC1_CD_PIN
175 string "Card detect pin for mmc1"
176 default ""
177 ---help---
178 See MMC0_CD_PIN help text.
179
180config MMC2_CD_PIN
181 string "Card detect pin for mmc2"
182 default ""
183 ---help---
184 See MMC0_CD_PIN help text.
185
186config MMC3_CD_PIN
187 string "Card detect pin for mmc3"
188 default ""
189 ---help---
190 See MMC0_CD_PIN help text.
191
Hans de Goedeaf593e42014-10-02 20:43:50 +0200192config MMC_SUNXI_SLOT_EXTRA
193 int "mmc extra slot number"
194 default -1
195 ---help---
196 sunxi builds always enable mmc0, some boards also have a second sdcard
197 slot or emmc on mmc1 - mmc3. Setting this to 1, 2 or 3 will enable
198 support for this.
199
Hans de Goedeaf4273b2014-11-07 16:09:00 +0100200config USB1_VBUS_PIN
201 string "Vbus enable pin for usb1 (ehci0)"
202 default "PH6" if MACH_SUN4I || MACH_SUN7I
203 ---help---
204 Set the Vbus enable pin for usb1 (ehci0, usb0 is the otg). This takes
205 a string in the format understood by sunxi_name_to_gpio, e.g.
206 PH1 for pin 1 of port H.
207
208config USB2_VBUS_PIN
209 string "Vbus enable pin for usb2 (ehci1)"
210 default "PH3" if MACH_SUN4I || MACH_SUN7I
211 ---help---
212 See USB1_VBUS_PIN help text.
213
Masahiro Yamadad3ae6782014-07-30 14:08:14 +0900214endif