summaryrefslogtreecommitdiff
path: root/include/configs/clearfog.h
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2019-05-16 13:04:02 +0300
committerStefan Roese <sr@denx.de>2019-07-11 10:58:02 +0200
commit6403d385b6dfe8de0485f119c20edaba2c460ab0 (patch)
tree4ad98999882e872836b06ba3b12ba938c5986a27 /include/configs/clearfog.h
parent22c47f6bbe3aa8cbc9de2186e78fd40ebaa16d67 (diff)
arm: mvebu: clearfog: set U-Boot offset for SATA boot
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>
Diffstat (limited to 'include/configs/clearfog.h')
-rw-r--r--include/configs/clearfog.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/configs/clearfog.h b/include/configs/clearfog.h
index 4198ff0511..15c402b542 100644
--- a/include/configs/clearfog.h
+++ b/include/configs/clearfog.h
@@ -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