xref: /openbmc/u-boot/arch/arm/mach-mvebu/Kconfig (revision d01806a8)
1if ARCH_MVEBU
2
3config HAVE_MVEBU_EFUSE
4	bool
5	default n
6
7config ARMADA_32BIT
8	bool
9	select ARCH_MISC_INIT
10	select BOARD_EARLY_INIT_F
11	select CPU_V7A
12	select SPL_DM
13	select SPL_DM_SEQ_ALIAS
14	select SPL_OF_CONTROL
15	select SPL_SIMPLE_BUS
16	select SUPPORT_SPL
17
18config ARMADA_64BIT
19	bool
20	select ARM64
21
22# ARMv7 SoCs...
23config ARMADA_375
24	bool
25	select ARMADA_32BIT
26
27config ARMADA_38X
28	bool
29	select ARMADA_32BIT
30	select HAVE_MVEBU_EFUSE
31
32config ARMADA_XP
33	bool
34	select ARMADA_32BIT
35
36# ARMv8 SoCs...
37config ARMADA_3700
38	bool
39	select ARM64
40
41# Armada 7K and 8K are very similar - use only one Kconfig symbol for both
42config ARMADA_8K
43	bool
44	select ARM64
45
46# Armada PLL frequency (used for NAND clock generation)
47config SYS_MVEBU_PLL_CLOCK
48	int
49	default "2000000000" if ARMADA_XP || ARMADA_3700 || ARMADA_8K
50	default "1000000000" if ARMADA_38X || ARMADA_375
51
52# Armada XP/38x SoC types...
53config MV78230
54	bool
55	select ARMADA_XP
56
57config MV78260
58	bool
59	select ARMADA_XP
60	imply CMD_SATA
61
62config MV78460
63	bool
64	select ARMADA_XP
65
66config 88F6820
67	bool
68	select ARMADA_38X
69
70choice
71	prompt "Armada XP/375/38x/3700/7K/8K board select"
72	optional
73
74config TARGET_CLEARFOG
75	bool "Support ClearFog"
76	select 88F6820
77
78config TARGET_HELIOS4
79	bool "Support Helios4"
80	select 88F6820
81
82config TARGET_MVEBU_ARMADA_37XX
83	bool "Support Armada 37xx platforms"
84	select ARMADA_3700
85	imply SCSI
86
87config TARGET_DB_88F6720
88	bool "Support DB-88F6720 Armada 375"
89	select ARMADA_375
90
91config TARGET_DB_88F6820_GP
92	bool "Support DB-88F6820-GP"
93	select 88F6820
94
95config TARGET_DB_88F6820_AMC
96	bool "Support DB-88F6820-AMC"
97	select 88F6820
98
99config TARGET_TURRIS_OMNIA
100	bool "Support Turris Omnia"
101	select 88F6820
102
103config TARGET_TURRIS_MOX
104	bool "Support Turris Mox"
105	select ARMADA_3700
106
107config TARGET_MVEBU_ARMADA_8K
108	bool "Support Armada 7k/8k platforms"
109	select ARMADA_8K
110	select BOARD_LATE_INIT
111	imply SCSI
112
113config TARGET_DB_MV784MP_GP
114	bool "Support db-mv784mp-gp"
115	select MV78460
116
117config TARGET_DS414
118	bool "Support Synology DS414"
119	select MV78230
120
121config TARGET_MAXBCM
122	bool "Support maxbcm"
123	select MV78460
124
125config TARGET_THEADORABLE
126	bool "Support theadorable Armada XP"
127	select BOARD_LATE_INIT if USB
128	select MV78260
129	imply CMD_SATA
130
131config TARGET_CONTROLCENTERDC
132	bool "Support CONTROLCENTERDC"
133	select 88F6820
134
135config TARGET_X530
136	bool "Support Allied Telesis x530"
137	select 88F6820
138
139endchoice
140
141config SYS_BOARD
142	default "clearfog" if TARGET_CLEARFOG
143	default "helios4" if TARGET_HELIOS4
144	default "mvebu_armada-37xx" if TARGET_MVEBU_ARMADA_37XX
145	default "db-88f6720" if TARGET_DB_88F6720
146	default "db-88f6820-gp" if TARGET_DB_88F6820_GP
147	default "db-88f6820-amc" if TARGET_DB_88F6820_AMC
148	default "turris_omnia" if TARGET_TURRIS_OMNIA
149	default "turris_mox" if TARGET_TURRIS_MOX
150	default "mvebu_armada-8k" if TARGET_MVEBU_ARMADA_8K
151	default "db-mv784mp-gp" if TARGET_DB_MV784MP_GP
152	default "ds414" if TARGET_DS414
153	default "maxbcm" if TARGET_MAXBCM
154	default "theadorable" if TARGET_THEADORABLE
155	default "a38x" if TARGET_CONTROLCENTERDC
156	default "x530" if TARGET_X530
157
158config SYS_CONFIG_NAME
159	default "clearfog" if TARGET_CLEARFOG
160	default "helios4" if TARGET_HELIOS4
161	default "mvebu_armada-37xx" if TARGET_MVEBU_ARMADA_37XX
162	default "db-88f6720" if TARGET_DB_88F6720
163	default "db-88f6820-gp" if TARGET_DB_88F6820_GP
164	default "db-88f6820-amc" if TARGET_DB_88F6820_AMC
165	default "mvebu_armada-8k" if TARGET_MVEBU_ARMADA_8K
166	default "db-mv784mp-gp" if TARGET_DB_MV784MP_GP
167	default "ds414" if TARGET_DS414
168	default "maxbcm" if TARGET_MAXBCM
169	default "theadorable" if TARGET_THEADORABLE
170	default "turris_omnia" if TARGET_TURRIS_OMNIA
171	default "turris_mox" if TARGET_TURRIS_MOX
172	default "controlcenterdc" if TARGET_CONTROLCENTERDC
173	default "x530" if TARGET_X530
174
175config SYS_VENDOR
176	default "Marvell" if TARGET_DB_MV784MP_GP
177	default "Marvell" if TARGET_MVEBU_ARMADA_37XX
178	default "Marvell" if TARGET_DB_88F6720
179	default "Marvell" if TARGET_DB_88F6820_GP
180	default "Marvell" if TARGET_DB_88F6820_AMC
181	default "Marvell" if TARGET_MVEBU_ARMADA_8K
182	default "solidrun" if TARGET_CLEARFOG
183	default "kobol" if TARGET_HELIOS4
184	default "Synology" if TARGET_DS414
185	default "CZ.NIC" if TARGET_TURRIS_OMNIA
186	default "CZ.NIC" if TARGET_TURRIS_MOX
187	default "gdsys" if TARGET_CONTROLCENTERDC
188	default "alliedtelesis" if TARGET_X530
189
190config SYS_SOC
191	default "mvebu"
192
193choice
194	prompt "Boot method"
195
196config MVEBU_SPL_BOOT_DEVICE_SPI
197	bool "SPI NOR flash"
198
199config MVEBU_SPL_BOOT_DEVICE_MMC
200	bool "SDIO/MMC card"
201	select SPL_LIBDISK_SUPPORT
202
203config MVEBU_SPL_BOOT_DEVICE_UART
204	bool "UART"
205
206endchoice
207
208config MVEBU_EFUSE
209	bool "Enable eFuse support"
210	default n
211	depends on HAVE_MVEBU_EFUSE
212	help
213	  Enable support for reading and writing eFuses on mvebu SoCs.
214
215config MVEBU_EFUSE_FAKE
216	bool "Fake eFuse access (dry run)"
217	default n
218	depends on MVEBU_EFUSE
219	help
220	  This enables a "dry run" mode where eFuses are not really programmed.
221	  Instead the eFuse accesses are emulated by writing to and reading
222	  from a memory block.
223	  This is can be used for testing prog scripts.
224
225config SECURED_MODE_IMAGE
226	bool "Build image for trusted boot"
227	default false
228	depends on 88F6820
229	help
230	  Build an image that employs the ARMADA SoC's trusted boot framework
231	  for securely booting images.
232
233config SECURED_MODE_CSK_INDEX
234	int "Index of active CSK"
235	default 0
236	depends on SECURED_MODE_IMAGE
237
238endif
239