blob: 5b2d091122de11143313c1124fd1175c3117fed8 [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
19
Ian Campbellc3be2792014-10-24 21:20:45 +010020config MACH_SUN7I
Ian Campbell2c7e3b92014-10-24 21:20:44 +010021 bool "sun7i (Allwinner A20)"
22 select CPU_V7
23 select SUPPORT_SPL
24
Ian Campbellc3be2792014-10-24 21:20:45 +010025config MACH_SUN8I
Ian Campbell2c7e3b92014-10-24 21:20:44 +010026 bool "sun8i (Allwinner A23)"
27 select CPU_V7
28
29endchoice
Maxime Ripard8a6564d2014-10-03 20:16:29 +080030
31config SYS_CONFIG_NAME
32 string
Ian Campbellc3be2792014-10-24 21:20:45 +010033 default "sun4i" if MACH_SUN4I
34 default "sun5i" if MACH_SUN5I
35 default "sun6i" if MACH_SUN6I
36 default "sun7i" if MACH_SUN7I
37 default "sun8i" if MACH_SUN8I
Hans de Goede6ae66f22014-08-01 09:28:24 +020038
Ian Campbelld9a20472014-10-24 21:20:49 +010039choice
40 prompt "Board"
41
42config TARGET_A10_OLINUXINO_L
43 bool "A10_OLINUXINO_L"
44 depends on MACH_SUN4I
45
46config TARGET_A10S_OLINUXINO_M
47 bool "A10S_OLINUXINO_M"
48 depends on MACH_SUN5I
49
50config TARGET_A13_OLINUXINOM
51 bool "A13_OLINUXINOM"
52 depends on MACH_SUN5I
53
54config TARGET_A13_OLINUXINO
55 bool "A13_OLINUXINO"
56 depends on MACH_SUN5I
57
58config TARGET_A20_OLINUXINO_L2
59 bool "A20_OLINUXINO_L2"
60 depends on MACH_SUN7I
61
62config TARGET_A20_OLINUXINO_L
63 bool "A20_OLINUXINO_L"
64 depends on MACH_SUN7I
65
66config TARGET_A20_OLINUXINO_M
67 bool "A20_OLINUXINO_M"
68 depends on MACH_SUN7I
69
70config TARGET_AUXTEK_T004
71 bool "AUXTEK_T004"
72 depends on MACH_SUN5I
73
74config TARGET_BANANAPI
75 bool "BANANAPI"
76 depends on MACH_SUN7I
77
78config TARGET_COLOMBUS
79 bool "COLOMBUS"
80 depends on MACH_SUN6I
81
82config TARGET_CUBIEBOARD2
83 bool "CUBIEBOARD2"
84 depends on MACH_SUN7I
85
86config TARGET_CUBIEBOARD
87 bool "CUBIEBOARD"
88 depends on MACH_SUN4I
89
90config TARGET_CUBIETRUCK
91 bool "CUBIETRUCK"
92 depends on MACH_SUN7I
93
94config TARGET_IPPO_Q8H_V5
95 bool "IPPO_Q8H_V5"
96 depends on MACH_SUN8I
97
98config TARGET_PCDUINO3
99 bool "PCDUINO3"
100 depends on MACH_SUN7I
101
102config TARGET_MELE_A1000G
103 bool "MELE_A1000G"
104 depends on MACH_SUN4I
105
106config TARGET_MELE_A1000
107 bool "MELE_A1000"
108 depends on MACH_SUN4I
109
110config TARGET_MELE_M3
111 bool "MELE_M3"
112 depends on MACH_SUN7I
113
114config TARGET_MINI_X_1GB
115 bool "MINI_X_1GB"
116 depends on MACH_SUN4I
117
118config TARGET_MINI_X
119 bool "MINI_X"
120 depends on MACH_SUN4I
121
122config TARGET_BA10_TV_BOX
123 bool "BA10_TV_BOX"
124 depends on MACH_SUN4I
125
126config TARGET_I12_TVBOX
127 bool "I12_TVBOX"
128 depends on MACH_SUN7I
129
130config TARGET_QT840A
131 bool "QT840A"
132 depends on MACH_SUN7I
133
134config TARGET_R7DONGLE
135 bool "R7DONGLE"
136 depends on MACH_SUN5I
137
138endchoice
139
Masahiro Yamadadd840582014-07-30 14:08:14 +0900140config SYS_BOARD
Masahiro Yamadadd840582014-07-30 14:08:14 +0900141 default "sunxi"
142
143config SYS_SOC
Masahiro Yamadadd840582014-07-30 14:08:14 +0900144 default "sunxi"
145
Ian Campbell4ce99412014-10-24 21:20:46 +0100146config SPL_FEL
147 bool "SPL/FEL mode support"
148 depends on SPL
149 default n
150
Ian Campbell98e214d2014-08-31 13:13:43 +0100151config FDTFILE
152 string "Default fdtfile env setting for this board"
Hans de Goede846e3252014-08-01 09:37:58 +0200153
Hans de Goedeaccc9e42014-10-22 14:56:36 +0200154config OLD_SUNXI_KERNEL_COMPAT
155 boolean "Enable workarounds for booting old kernels"
156 default n
157 ---help---
158 Set this to enable various workarounds for old kernels, this results in
159 sub-optimal settings for newer kernels, only enable if needed.
160
Hans de Goedecd821132014-10-02 20:29:26 +0200161config MMC0_CD_PIN
162 string "Card detect pin for mmc0"
163 default ""
164 ---help---
165 Set the card detect pin for mmc0, leave empty to not use cd. This
166 takes a string in the format understood by sunxi_name_to_gpio, e.g.
167 PH1 for pin 1 of port H.
168
169config MMC1_CD_PIN
170 string "Card detect pin for mmc1"
171 default ""
172 ---help---
173 See MMC0_CD_PIN help text.
174
175config MMC2_CD_PIN
176 string "Card detect pin for mmc2"
177 default ""
178 ---help---
179 See MMC0_CD_PIN help text.
180
181config MMC3_CD_PIN
182 string "Card detect pin for mmc3"
183 default ""
184 ---help---
185 See MMC0_CD_PIN help text.
186
Hans de Goede2ccfac02014-10-02 20:43:50 +0200187config MMC_SUNXI_SLOT_EXTRA
188 int "mmc extra slot number"
189 default -1
190 ---help---
191 sunxi builds always enable mmc0, some boards also have a second sdcard
192 slot or emmc on mmc1 - mmc3. Setting this to 1, 2 or 3 will enable
193 support for this.
194
Masahiro Yamadadd840582014-07-30 14:08:14 +0900195endif