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