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