]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: mvebu: helios4 adjust env sizes to enable SPI to work
authorDennis Gilmore <dennis@ausil.us>
Wed, 9 Dec 2020 03:07:36 +0000 (21:07 -0600)
committerStefan Roese <sr@denx.de>
Wed, 27 Jan 2021 06:25:39 +0000 (07:25 +0100)
mirror the clearfog setup to enable SPI to work

Signed-off-by: Dennis Gilmore <dennis@ausil.us>
arch/arm/mach-mvebu/Kconfig
board/kobol/helios4/Kconfig [new file with mode: 0644]
configs/helios4_defconfig

index 72aee8b3e581d4991dfaecd8e623e5a886c00d38..0299611cbf946a540b9d7bac668c72d8e5cc27f3 100644 (file)
@@ -299,5 +299,6 @@ config SECURED_MODE_CSK_INDEX
        depends on SECURED_MODE_IMAGE
 
 source "board/solidrun/clearfog/Kconfig"
+source "board/kobol/helios4/Kconfig"
 
 endif
diff --git a/board/kobol/helios4/Kconfig b/board/kobol/helios4/Kconfig
new file mode 100644 (file)
index 0000000..cad51c1
--- /dev/null
@@ -0,0 +1,24 @@
+menu "Helios4 configuration"
+       depends on TARGET_HELIOS4
+
+config ENV_SIZE
+       hex "Environment Size"
+       default 0x10000
+
+config ENV_OFFSET
+       hex "Environment offset"
+       default 0xF0000
+
+config ENV_SECT_SIZE
+       hex "Environment Sector-Size"
+       # Use SPI or SATA flash erase block size of 4 KiB
+       default 0x1000 if MVEBU_SPL_BOOT_DEVICE_SPI || MVEBU_SPL_BOOT_DEVICE_SATA
+       # Use optimistic 64 KiB erase block, will vary between actual media
+       default 0x10000 if MVEBU_SPL_BOOT_DEVICE_MMC || MVEBU_SPL_BOOT_DEVICE_UART
+
+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
index eceb85f082925fc2d77698bebe750df1aa873e2c..bdc6f435540e07f717b2587fc9b4bc251da00b74 100644 (file)
@@ -9,8 +9,6 @@ CONFIG_SYS_MALLOC_F_LEN=0x2000
 CONFIG_NR_DRAM_BANKS=2
 CONFIG_TARGET_HELIOS4=y
 CONFIG_MVEBU_SPL_BOOT_DEVICE_MMC=y
-CONFIG_ENV_SIZE=0x2000
-CONFIG_ENV_OFFSET=0xFE000
 CONFIG_DM_GPIO=y
 CONFIG_SPL_TEXT_BASE=0x40000030
 CONFIG_SPL_SERIAL_SUPPORT=y