Convert CONFIG_SPL_MMC_SUPPORT to Kconfig
[platform/kernel/u-boot.git] / arch / arm / mach-uniphier / Kconfig
1 if ARCH_UNIPHIER
2
3 config SPL_LIBCOMMON_SUPPORT
4         default y
5
6 config SPL_LIBGENERIC_SUPPORT
7         default y
8
9 config SPL_MMC_SUPPORT
10         default y if !ARCH_UNIPHIER_64BIT
11
12 config SYS_CONFIG_NAME
13         default "uniphier"
14
15 config ARCH_UNIPHIER_32BIT
16         bool
17         select CPU_V7
18         select CPU_V7_HAS_NONSEC
19         select ARMV7_NONSEC
20         select ARCH_SUPPORT_PSCI
21
22 config ARCH_UNIPHIER_64BIT
23         bool
24         select ARM64
25         select SPL_SEPARATE_BSS
26         select ARMV8_MULTIENTRY
27         select ARMV8_SPIN_TABLE
28
29 choice
30         prompt "UniPhier SoC select"
31         default ARCH_UNIPHIER_PRO4
32
33 config ARCH_UNIPHIER_SLD3
34         bool "UniPhier PH1-sLD3 SoC"
35         select ARCH_UNIPHIER_32BIT
36
37 config ARCH_UNIPHIER_LD4_SLD8
38         bool "UniPhier PH1-LD4/PH1-sLD8 SoC"
39         select ARCH_UNIPHIER_32BIT
40
41 config ARCH_UNIPHIER_PRO4
42         bool "UniPhier PH1-Pro4 SoC"
43         select ARCH_UNIPHIER_32BIT
44
45 config ARCH_UNIPHIER_PRO5_PXS2_LD6B
46         bool "UniPhier PH1-Pro5/ProXstream2/PH1-LD6b SoC"
47         select ARCH_UNIPHIER_32BIT
48
49 config ARCH_UNIPHIER_LD11
50         bool "UniPhier PH1-LD11 SoC"
51         select ARCH_UNIPHIER_64BIT
52
53 config ARCH_UNIPHIER_LD20
54         bool "UniPhier PH1-LD20 SoC"
55         select ARCH_UNIPHIER_64BIT
56         select OF_BOARD_SETUP
57
58 endchoice
59
60 config ARCH_UNIPHIER_LD4
61         bool "Enable UniPhier PH1-LD4 SoC support"
62         depends on ARCH_UNIPHIER_LD4_SLD8
63         default y
64
65 config ARCH_UNIPHIER_SLD8
66         bool "Enable UniPhier PH1-sLD8 SoC support"
67         depends on ARCH_UNIPHIER_LD4_SLD8
68         default y
69
70 config ARCH_UNIPHIER_PRO5
71         bool "Enable UniPhier PH1-Pro5 SoC support"
72         depends on ARCH_UNIPHIER_PRO5_PXS2_LD6B
73         default y
74
75 config ARCH_UNIPHIER_PXS2
76         bool "Enable UniPhier ProXstream2 SoC support"
77         depends on ARCH_UNIPHIER_PRO5_PXS2_LD6B
78         default y
79
80 config ARCH_UNIPHIER_LD6B
81         bool "Enable UniPhier PH1-LD6b SoC support"
82         depends on ARCH_UNIPHIER_PRO5_PXS2_LD6B
83         default y
84
85 config CACHE_UNIPHIER
86         bool "Enable the UniPhier L2 cache controller"
87         depends on ARCH_UNIPHIER_32BIT
88         select SYS_CACHE_SHIFT_7
89         default y
90         help
91           This option allows to use the UniPhier System Cache as L2 cache.
92
93 config MICRO_SUPPORT_CARD
94         bool "Use Micro Support Card"
95         help
96           This option provides support for the expansion board, available
97           on some UniPhier reference boards.
98
99           Say Y to use the on-board UART, Ether, LED devices.
100
101 config CMD_PINMON
102         bool "Enable boot mode pins monitor command"
103         default y
104         help
105           The command "pinmon" shows the state of the boot mode pins.
106           The boot mode pins are latched when the system reset is deasserted
107           and determine which device the system should load a boot image from.
108
109 config CMD_DDRPHY_DUMP
110         bool "Enable dump command of DDR PHY parameters"
111         depends on ARCH_UNIPHIER_LD4 || ARCH_UNIPHIER_PRO4 || ARCH_UNIPHIER_SLD8
112         default y
113         help
114           The command "ddrphy" shows the resulting parameters of DDR PHY
115           training; it is useful for the evaluation of DDR PHY training.
116
117 config CMD_DDRMPHY_DUMP
118         bool "Enable dump command of DDR Multi PHY parameters"
119         depends on ARCH_UNIPHIER_PXS2 || ARCH_UNIPHIER_LD6B
120         default y
121         help
122           The command "ddrmphy" shows the resulting parameters of DDR Multi PHY
123           training; it is useful for the evaluation of DDR Multi PHY training.
124
125 endif