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