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