diff mbox series

[v3,2/3] arm: mvebu: clearfog: set uboot image SD card offset

Message ID 66cc6f0acc87aa657bb44dbeb2915e4b4243851b.1579072090.git.baruch@tkos.co.il
State Accepted
Commit 14f14911f47ca2daf4ee9dfa50c3b392ac89e9e2
Headers show
Series [v3,1/3] spl: mmc: support uboot image offset on main partition | expand

Commit Message

Baruch Siach Jan. 15, 2020, 7:08 a.m. UTC
Armada 38x ROM skips the first SD card offset when loading SPL. This
affects the location of the main U-Boot image. SPL MMC code now supports
U-Boot image offset based on run-time detection of the boot partition.
Use this feature to make the same generated image support both SD card
and eMMC boot partition.

Signed-off-by: Baruch Siach <baruch at tkos.co.il>
---
v3: Rebase on top of http://patchwork.ozlabs.org/patch/1205597/

v2: No change
---
 configs/clearfog_defconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Stefan Roese Jan. 16, 2020, 9:57 a.m. UTC | #1
On 15.01.20 08:08, Baruch Siach wrote:
> Armada 38x ROM skips the first SD card offset when loading SPL. This
> affects the location of the main U-Boot image. SPL MMC code now supports
> U-Boot image offset based on run-time detection of the boot partition.
> Use this feature to make the same generated image support both SD card
> and eMMC boot partition.
> 
> Signed-off-by: Baruch Siach <baruch at tkos.co.il>

Reviewed-by: Stefan Roese <sr at denx.de>

Thanks,
Stefan
Stefan Roese Jan. 16, 2020, 2:27 p.m. UTC | #2
On 15.01.20 08:08, Baruch Siach wrote:
> Armada 38x ROM skips the first SD card offset when loading SPL. This
> affects the location of the main U-Boot image. SPL MMC code now supports
> U-Boot image offset based on run-time detection of the boot partition.
> Use this feature to make the same generated image support both SD card
> and eMMC boot partition.
> 
> Signed-off-by: Baruch Siach <baruch at tkos.co.il>

Applied to u-boot-marvell/master

Thanks,
Stefan
diff mbox series

Patch

diff --git a/configs/clearfog_defconfig b/configs/clearfog_defconfig
index 10c39e34fb6e..b48a4abfcb9e 100644
--- a/configs/clearfog_defconfig
+++ b/configs/clearfog_defconfig
@@ -26,7 +26,7 @@  CONFIG_USE_PREBOOT=y
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
 # CONFIG_DISPLAY_BOARDINFO is not set
 CONFIG_DISPLAY_BOARDINFO_LATE=y
-CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x141
+CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_DATA_PART_OFFSET=0x1
 CONFIG_SPL_DM_GPIO=y
 CONFIG_SPL_I2C_SUPPORT=y
 # CONFIG_CMD_FLASH is not set