]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: mvebu: clearfog: set U-Boot offset for SATA boot
authorBaruch Siach <baruch@tkos.co.il>
Thu, 16 May 2019 10:04:02 +0000 (13:04 +0300)
committerStefan Roese <sr@denx.de>
Thu, 11 Jul 2019 08:58:02 +0000 (10:58 +0200)
See the offset of U-Boot in raw SATA disk to the same value as the MMC
offset. That is 0x140 sectors from the beginning of the SPL, which is
0x141 sectors from the beginning of the device (after the MBR sector).

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Reviewed-by: Chris Packham <judge.packham@gmail.com>
Signed-off-by: Stefan Roese <sr@denx.de>
include/configs/clearfog.h

index 4198ff0511770d7d12bc9b8de00a49845df7551f..15c402b542e94b74ae5990f7a52a686a7a4fea10 100644 (file)
@@ -85,7 +85,7 @@
 /* SPL related SPI defines */
 #define CONFIG_SYS_SPI_U_BOOT_OFFS     0x20000
 #define CONFIG_SYS_U_BOOT_OFFS         CONFIG_SYS_SPI_U_BOOT_OFFS
-#elif defined(CONFIG_MVEBU_SPL_BOOT_DEVICE_MMC)
+#elif defined(CONFIG_MVEBU_SPL_BOOT_DEVICE_MMC) || defined(CONFIG_MVEBU_SPL_BOOT_DEVICE_SATA)
 /* SPL related MMC defines */
 #define CONFIG_SYS_MMC_U_BOOT_OFFS             (160 << 10)
 #define CONFIG_SYS_U_BOOT_OFFS                 CONFIG_SYS_MMC_U_BOOT_OFFS