5c3b9320001693cd427a86e38873123bf62b5ba4
[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_MELE_M9
116         bool "MELE_M9"
117         depends on MACH_SUN6I
118
119 config TARGET_MINI_X_1GB
120         bool "MINI_X_1GB"
121         depends on MACH_SUN4I
122
123 config TARGET_MINI_X
124         bool "MINI_X"
125         depends on MACH_SUN4I
126
127 config TARGET_BA10_TV_BOX
128         bool "BA10_TV_BOX"
129         depends on MACH_SUN4I
130
131 config TARGET_I12_TVBOX
132         bool "I12_TVBOX"
133         depends on MACH_SUN7I
134
135 config TARGET_QT840A
136         bool "QT840A"
137         depends on MACH_SUN7I
138
139 config TARGET_R7DONGLE
140         bool "R7DONGLE"
141         depends on MACH_SUN5I
142
143 endchoice
144
145 config SYS_BOARD
146         default "sunxi"
147
148 config SYS_SOC
149         default "sunxi"
150
151 config SPL_FEL
152         bool "SPL/FEL mode support"
153         depends on SPL
154         default n
155
156 config FDTFILE
157         string "Default fdtfile env setting for this board"
158
159 config 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
166 config 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
174 config MMC1_CD_PIN
175         string "Card detect pin for mmc1"
176         default ""
177         ---help---
178         See MMC0_CD_PIN help text.
179
180 config MMC2_CD_PIN
181         string "Card detect pin for mmc2"
182         default ""
183         ---help---
184         See MMC0_CD_PIN help text.
185
186 config MMC3_CD_PIN
187         string "Card detect pin for mmc3"
188         default ""
189         ---help---
190         See MMC0_CD_PIN help text.
191
192 config 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
200 endif