arm: mvebu: clearfog: add SPI offsets
authorJoel Johnson <mrjoel@lixil.net>
Mon, 23 Mar 2020 20:21:36 +0000 (14:21 -0600)
committerStefan Roese <sr@denx.de>
Tue, 14 Apr 2020 11:16:42 +0000 (13:16 +0200)
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>
board/solidrun/clearfog/Kconfig

index 44224d903d278f33fe01dff77b26a130d2743942..ea9c419472f3b0a287555dfb76951099159efb2b 100644 (file)
@@ -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