summaryrefslogtreecommitdiff
path: root/board/solidrun
diff options
context:
space:
mode:
authorJoel Johnson <mrjoel@lixil.net>2020-03-23 14:21:36 -0600
committerStefan Roese <sr@denx.de>2020-04-14 13:16:42 +0200
commitb16d7c3216fea40545a3ed1784345f3c851b28e8 (patch)
treeb10863478c3e24e606499098c233a71db5c286f8 /board/solidrun
parent8eccd0dda0eea1d8ddc922d55d118f8db31715ad (diff)
arm: mvebu: clearfog: add SPI offsets
Add reasonable default SPI offsets and ENV size when configured to boot from SPI flash. Signed-off-by: Joel Johnson <mrjoel@lixil.net> Reviewed-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'board/solidrun')
-rw-r--r--board/solidrun/clearfog/Kconfig12
1 files changed, 12 insertions, 0 deletions
diff --git a/board/solidrun/clearfog/Kconfig b/board/solidrun/clearfog/Kconfig
index 44224d903d..ea9c419472 100644
--- a/board/solidrun/clearfog/Kconfig
+++ b/board/solidrun/clearfog/Kconfig
@@ -39,4 +39,16 @@ config CLEARFOG_SFP_25GB
SGMII connection (requires a supporting SFP). By default, transfer speed
of 1.25 Gbps is used, suitable for a more common 1 Gbps SFP module.
+config ENV_SECT_SIZE
+ hex "Environment Sector-Size"
+ # Use SPI flash erase block size of 4 KiB
+ default 0x1000 if MVEBU_SPL_BOOT_DEVICE_SPI
+ # Use optimistic 64 KiB erase block, will vary between actual media
+ default 0x10000 if MVEBU_SPL_BOOT_DEVICE_MMC
+
+config SYS_SPI_U_BOOT_OFFS
+ hex "address of u-boot payload in SPI flash"
+ default 0x20000
+ depends on MVEBU_SPL_BOOT_DEVICE_SPI
+
endmenu