Kconfig 7.7 KB
Newer Older
1 2
if ARCH_MVEBU

M
Mario Six 已提交
3 4 5
config HAVE_MVEBU_EFUSE
	bool

6 7
config ARMADA_32BIT
	bool
8 9
	select ARCH_MISC_INIT
	select BOARD_EARLY_INIT_F
10
	select CPU_V7A
11 12 13 14
	select SPL_DM if SPL
	select SPL_DM_SEQ_ALIAS if SPL
	select SPL_OF_CONTROL if SPL
	select SPL_SIMPLE_BUS if SPL
15
	select SUPPORT_SPL
16
	select TRANSLATION_OFFSET
17 18 19 20 21 22

config ARMADA_64BIT
	bool
	select ARM64

# ARMv7 SoCs...
23 24
config ARMADA_375
	bool
25
	select ARMADA_32BIT
26

27 28
config ARMADA_38X
	bool
29
	select ARMADA_32BIT
M
Mario Six 已提交
30
	select HAVE_MVEBU_EFUSE
31

32 33 34 35 36 37
config ARMADA_38X_HS_IMPEDANCE_THRESH
	hex  "Armada 38x USB 2.0 High-Speed Impedance Threshold (0x0 - 0x7)"
	depends on ARMADA_38X
	default 0x6
	range 0x0 0x7

38 39
config ARMADA_XP
	bool
40 41 42 43 44 45
	select ARMADA_32BIT

# ARMv8 SoCs...
config ARMADA_3700
	bool
	select ARM64
46

47 48 49 50 51
# Armada 7K and 8K are very similar - use only one Kconfig symbol for both
config ARMADA_8K
	bool
	select ARM64

52 53 54
# Armada PLL frequency (used for NAND clock generation)
config SYS_MVEBU_PLL_CLOCK
	int
55
	default "2000000000" if ARMADA_XP || ARMADA_3700 || ARMADA_8K || ARMADA_MSYS
56 57
	default "1000000000" if ARMADA_38X || ARMADA_375

58
# Armada XP/38x SoC types...
59 60 61 62 63 64 65
config MV78230
	bool
	select ARMADA_XP

config MV78260
	bool
	select ARMADA_XP
S
Simon Glass 已提交
66
	imply CMD_SATA
67 68 69 70 71

config MV78460
	bool
	select ARMADA_XP

72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
config ARMADA_MSYS
	bool
	select ARMADA_32BIT

config 98DX4251
	bool
	select ARMADA_MSYS

config 98DX3336
	bool
	select ARMADA_MSYS

config 98DX3236
	bool
	select ARMADA_MSYS

88
config 88F6820
89 90 91
	bool
	select ARMADA_38X

92
choice
93
	prompt "Armada XP/375/38x/3700/7K/8K board select"
94 95
	optional

96 97
config TARGET_CLEARFOG
	bool "Support ClearFog"
98
	select 88F6820
99
	select BOARD_LATE_INIT
100

101 102 103 104
config TARGET_HELIOS4
	bool "Support Helios4"
	select 88F6820

105 106
config TARGET_MVEBU_ARMADA_37XX
	bool "Support Armada 37xx platforms"
107
	select ARMADA_3700
S
Simon Glass 已提交
108
	imply SCSI
109

110 111 112 113
config TARGET_DB_88F6720
	bool "Support DB-88F6720 Armada 375"
	select ARMADA_375

114 115
config TARGET_DB_88F6820_GP
	bool "Support DB-88F6820-GP"
116
	select 88F6820
117

118 119 120 121
config TARGET_DB_88F6820_AMC
	bool "Support DB-88F6820-AMC"
	select 88F6820

122 123 124
config TARGET_TURRIS_OMNIA
	bool "Support Turris Omnia"
	select 88F6820
125
	select BOARD_LATE_INIT
126 127 128 129 130
	select DM_I2C
	select I2C_MUX
	select I2C_MUX_PCA954x
	select SPL_I2C_MUX
	select SYS_I2C_MVTWSI
131
	select ATSHA204A
132

133 134 135 136
config TARGET_TURRIS_MOX
	bool "Support Turris Mox"
	select ARMADA_3700

137 138
config TARGET_MVEBU_ARMADA_8K
	bool "Support Armada 7k/8k platforms"
139
	select ARMADA_8K
140
	select BOARD_LATE_INIT
S
Simon Glass 已提交
141
	imply SCSI
142

143 144 145 146 147 148 149
config TARGET_OCTEONTX2_CN913x
	bool "Support CN913x platforms"
	select ARMADA_8K
	imply BOARD_EARLY_INIT_R
	select BOARD_LATE_INIT
	imply SCSI

150 151
config TARGET_DB_MV784MP_GP
	bool "Support db-mv784mp-gp"
152
	select MV78460
153

P
Phil Sutter 已提交
154 155 156 157
config TARGET_DS414
	bool "Support Synology DS414"
	select MV78230

158 159
config TARGET_MAXBCM
	bool "Support maxbcm"
160
	select MV78460
161

162 163
config TARGET_THEADORABLE
	bool "Support theadorable Armada XP"
164
	select BOARD_LATE_INIT if USB
165
	select MV78260
S
Simon Glass 已提交
166
	imply CMD_SATA
167

168 169 170 171
config TARGET_CONTROLCENTERDC
	bool "Support CONTROLCENTERDC"
	select 88F6820

172 173 174 175
config TARGET_X530
	bool "Support Allied Telesis x530"
	select 88F6820

176 177 178 179
config TARGET_DB_XC3_24G4XG
	bool "Support DB-XC3-24G4XG"
	select 98DX3336

180 181
config TARGET_CRS3XX_98DX3236
	bool "Support CRS3XX-98DX3236"
182 183
	select 98DX3236

184 185
endchoice

186 187 188 189 190 191 192 193 194 195 196 197 198
choice
	prompt "DDR bus width"
	default DDR_64BIT
	depends on ARMADA_XP

config DDR_64BIT
	bool "64bit bus width"

config DDR_32BIT
	bool "32bit bus width"

endchoice

199 200 201 202 203 204 205 206 207 208 209 210 211 212
config DDR_LOG_LEVEL
	int "DDR training code log level"
	depends on ARMADA_XP
	default 0
	range 0 3
	help
	  Amount of information provided on error while running the DDR
	  training code.  At level 0, provides an error code in a case of
	  failure, RL, WL errors and other algorithm failure.  At level 1,
	  provides the D-Unit setup (SPD/Static configuration).  At level 2,
	  provides the windows margin as a results of DQS centeralization.
	  At level 3, rovides the windows margin of each DQ as a results of
	  DQS centeralization.

213 214
config SYS_BOARD
	default "clearfog" if TARGET_CLEARFOG
215
	default "helios4" if TARGET_HELIOS4
216
	default "mvebu_armada-37xx" if TARGET_MVEBU_ARMADA_37XX
217
	default "db-88f6720" if TARGET_DB_88F6720
218
	default "db-88f6820-gp" if TARGET_DB_88F6820_GP
219
	default "db-88f6820-amc" if TARGET_DB_88F6820_AMC
220
	default "turris_omnia" if TARGET_TURRIS_OMNIA
221
	default "turris_mox" if TARGET_TURRIS_MOX
222
	default "mvebu_armada-8k" if TARGET_MVEBU_ARMADA_8K
223
	default "octeontx2_cn913x" if TARGET_OCTEONTX2_CN913x
224
	default "db-mv784mp-gp" if TARGET_DB_MV784MP_GP
P
Phil Sutter 已提交
225
	default "ds414" if TARGET_DS414
226
	default "maxbcm" if TARGET_MAXBCM
227
	default "theadorable" if TARGET_THEADORABLE
228
	default "a38x" if TARGET_CONTROLCENTERDC
229
	default "x530" if TARGET_X530
230
	default "db-xc3-24g4xg" if TARGET_DB_XC3_24G4XG
231
	default "crs3xx-98dx3236" if TARGET_CRS3XX_98DX3236
232 233 234

config SYS_CONFIG_NAME
	default "clearfog" if TARGET_CLEARFOG
235
	default "helios4" if TARGET_HELIOS4
236
	default "mvebu_armada-37xx" if TARGET_MVEBU_ARMADA_37XX
237
	default "db-88f6720" if TARGET_DB_88F6720
238
	default "db-88f6820-gp" if TARGET_DB_88F6820_GP
239
	default "db-88f6820-amc" if TARGET_DB_88F6820_AMC
240
	default "mvebu_armada-8k" if TARGET_MVEBU_ARMADA_8K
241
	default "mvebu_armada-8k" if TARGET_OCTEONTX2_CN913x
242
	default "db-mv784mp-gp" if TARGET_DB_MV784MP_GP
P
Phil Sutter 已提交
243
	default "ds414" if TARGET_DS414
244
	default "maxbcm" if TARGET_MAXBCM
245
	default "theadorable" if TARGET_THEADORABLE
246
	default "turris_omnia" if TARGET_TURRIS_OMNIA
247
	default "turris_mox" if TARGET_TURRIS_MOX
248
	default "controlcenterdc" if TARGET_CONTROLCENTERDC
249
	default "x530" if TARGET_X530
250
	default "db-xc3-24g4xg" if TARGET_DB_XC3_24G4XG
251
	default "crs3xx-98dx3236" if TARGET_CRS3XX_98DX3236
252 253 254

config SYS_VENDOR
	default "Marvell" if TARGET_DB_MV784MP_GP
255
	default "Marvell" if TARGET_MVEBU_ARMADA_37XX
256
	default "Marvell" if TARGET_DB_88F6720
257
	default "Marvell" if TARGET_DB_88F6820_GP
258
	default "Marvell" if TARGET_DB_88F6820_AMC
259
	default "Marvell" if TARGET_MVEBU_ARMADA_8K
260
	default "Marvell" if TARGET_OCTEONTX2_CN913x
261 262
	default "Marvell" if TARGET_DB_XC3_24G4XG
	default "Marvell" if TARGET_MVEBU_DB_88F7040
263
	default "solidrun" if TARGET_CLEARFOG
264
	default "kobol" if TARGET_HELIOS4
P
Phil Sutter 已提交
265
	default "Synology" if TARGET_DS414
266
	default "CZ.NIC" if TARGET_TURRIS_OMNIA
267
	default "CZ.NIC" if TARGET_TURRIS_MOX
268
	default "gdsys" if TARGET_CONTROLCENTERDC
269
	default "alliedtelesis" if TARGET_X530
270
	default "mikrotik" if TARGET_CRS3XX_98DX3236
271

272 273 274
config SYS_SOC
	default "mvebu"

275
choice
276
	prompt "Boot method"
277
	depends on SPL
278

279
config MVEBU_SPL_BOOT_DEVICE_SPI
280
	bool "SPI NOR flash"
281
	imply ENV_IS_IN_SPI_FLASH
282 283 284 285
	imply SPL_DM_SPI
	imply SPL_SPI_FLASH_SUPPORT
	imply SPL_SPI_LOAD
	imply SPL_SPI_SUPPORT
286
	select SPL_BOOTROM_SUPPORT
287

288
config MVEBU_SPL_BOOT_DEVICE_MMC
289
	bool "SDIO/MMC card"
290 291
	imply ENV_IS_IN_MMC
	# GPIO needed for eMMC/SD card presence detection
292 293 294 295
	imply SPL_DM_GPIO
	imply SPL_DM_MMC
	imply SPL_GPIO
	imply SPL_LIBDISK_SUPPORT
S
Simon Glass 已提交
296
	imply SPL_MMC
297
	select SPL_BOOTROM_SUPPORT
298

299 300
config MVEBU_SPL_BOOT_DEVICE_SATA
	bool "SATA"
301 302
	imply SPL_SATA_SUPPORT
	imply SPL_LIBDISK_SUPPORT
303
	select SPL_BOOTROM_SUPPORT
304

B
Baruch Siach 已提交
305 306
config MVEBU_SPL_BOOT_DEVICE_UART
	bool "UART"
307
	select SPL_BOOTROM_SUPPORT
B
Baruch Siach 已提交
308

309 310
endchoice

M
Mario Six 已提交
311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338
config MVEBU_EFUSE
	bool "Enable eFuse support"
	depends on HAVE_MVEBU_EFUSE
	help
	  Enable support for reading and writing eFuses on mvebu SoCs.

config MVEBU_EFUSE_FAKE
	bool "Fake eFuse access (dry run)"
	depends on MVEBU_EFUSE
	help
	  This enables a "dry run" mode where eFuses are not really programmed.
	  Instead the eFuse accesses are emulated by writing to and reading
	  from a memory block.
	  This is can be used for testing prog scripts.

config SECURED_MODE_IMAGE
	bool "Build image for trusted boot"
	default false
	depends on 88F6820
	help
	  Build an image that employs the ARMADA SoC's trusted boot framework
	  for securely booting images.

config SECURED_MODE_CSK_INDEX
	int "Index of active CSK"
	default 0
	depends on SECURED_MODE_IMAGE

339
source "board/solidrun/clearfog/Kconfig"
340
source "board/kobol/helios4/Kconfig"
341

342
endif