sunxi: Kconfig: Make SPL_FEL a toplevel Kconfig option
[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
20 config MACH_SUN7I
21         bool "sun7i (Allwinner A20)"
22         select CPU_V7
23         select SUPPORT_SPL
24
25 config MACH_SUN8I
26         bool "sun8i (Allwinner A23)"
27         select CPU_V7
28
29 endchoice
30
31 config SYS_CONFIG_NAME
32         string
33         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
38
39 config SYS_BOARD
40         default "sunxi"
41
42 config SYS_SOC
43         default "sunxi"
44
45 config SPL_FEL
46         bool "SPL/FEL mode support"
47         depends on SPL
48         default n
49
50 config FDTFILE
51         string "Default fdtfile env setting for this board"
52
53 config OLD_SUNXI_KERNEL_COMPAT
54         boolean "Enable workarounds for booting old kernels"
55         default n
56         ---help---
57         Set this to enable various workarounds for old kernels, this results in
58         sub-optimal settings for newer kernels, only enable if needed.
59
60 config MMC0_CD_PIN
61         string "Card detect pin for mmc0"
62         default ""
63         ---help---
64         Set the card detect pin for mmc0, leave empty to not use cd. This
65         takes a string in the format understood by sunxi_name_to_gpio, e.g.
66         PH1 for pin 1 of port H.
67
68 config MMC1_CD_PIN
69         string "Card detect pin for mmc1"
70         default ""
71         ---help---
72         See MMC0_CD_PIN help text.
73
74 config MMC2_CD_PIN
75         string "Card detect pin for mmc2"
76         default ""
77         ---help---
78         See MMC0_CD_PIN help text.
79
80 config MMC3_CD_PIN
81         string "Card detect pin for mmc3"
82         default ""
83         ---help---
84         See MMC0_CD_PIN help text.
85
86 config MMC_SUNXI_SLOT_EXTRA
87         int "mmc extra slot number"
88         default -1
89         ---help---
90         sunxi builds always enable mmc0, some boards also have a second sdcard
91         slot or emmc on mmc1 - mmc3. Setting this to 1, 2 or 3 will enable
92         support for this.
93
94 endif