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