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