blob: 18f731ab9fd00ef6a95622d291553153874acd51 [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
Masahiro Yamadadd840582014-07-30 14:08:14 +090039config SYS_BOARD
Masahiro Yamadadd840582014-07-30 14:08:14 +090040 default "sunxi"
41
42config SYS_SOC
Masahiro Yamadadd840582014-07-30 14:08:14 +090043 default "sunxi"
44
Ian Campbell4ce99412014-10-24 21:20:46 +010045config SPL_FEL
46 bool "SPL/FEL mode support"
47 depends on SPL
48 default n
49
Ian Campbell98e214d2014-08-31 13:13:43 +010050config FDTFILE
51 string "Default fdtfile env setting for this board"
Hans de Goede846e3252014-08-01 09:37:58 +020052
Hans de Goedeaccc9e42014-10-22 14:56:36 +020053config 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
Hans de Goedecd821132014-10-02 20:29:26 +020060config 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
68config MMC1_CD_PIN
69 string "Card detect pin for mmc1"
70 default ""
71 ---help---
72 See MMC0_CD_PIN help text.
73
74config MMC2_CD_PIN
75 string "Card detect pin for mmc2"
76 default ""
77 ---help---
78 See MMC0_CD_PIN help text.
79
80config MMC3_CD_PIN
81 string "Card detect pin for mmc3"
82 default ""
83 ---help---
84 See MMC0_CD_PIN help text.
85
Hans de Goede2ccfac02014-10-02 20:43:50 +020086config 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
Masahiro Yamadadd840582014-07-30 14:08:14 +090094endif