summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorQianyu Gong <qianyu.gong@nxp.com>2016-04-01 17:52:53 +0800
committerYork Sun <york.sun@nxp.com>2016-04-06 10:26:46 -0700
commit2a5558399828e24fce9e948288a88cd28887875e (patch)
tree5f1791009e2c0d62597c3bb2cf5981fac295a9f2 /include
parentfd1b147c2cd65be5a6a048e7c1b0c265bd575e6e (diff)
downloadu-boot-imx-2a5558399828e24fce9e948288a88cd28887875e.zip
u-boot-imx-2a5558399828e24fce9e948288a88cd28887875e.tar.gz
u-boot-imx-2a5558399828e24fce9e948288a88cd28887875e.tar.bz2
armv8: ls1043a: load Fman ucode from SD/MMC under SD boot
Signed-off-by: Gong Qianyu <Qianyu.Gong@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
Diffstat (limited to 'include')
-rw-r--r--include/configs/ls1043a_common.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/configs/ls1043a_common.h b/include/configs/ls1043a_common.h
index 2432531..e900c50 100644
--- a/include/configs/ls1043a_common.h
+++ b/include/configs/ls1043a_common.h
@@ -216,7 +216,15 @@
/* Store Fman ucode at offeset 0x160000(11 blocks). */
#define CONFIG_SYS_QE_FMAN_FW_IN_NAND
#define CONFIG_SYS_FMAN_FW_ADDR (11 * CONFIG_SYS_NAND_BLOCK_SIZE)
-#elif defined(CONFIG_QSPI_BOOT) || defined(CONFIG_SD_BOOT_QSPI)
+#elif defined(CONFIG_SD_BOOT)
+/*
+ * PBL SD boot image should stored at 0x1000(8 blocks), the size of the image is
+ * about 1MB (2040 blocks), Env is stored after the image, and the env size is
+ * 0x2000 (16 blocks), 8 + 2040 + 16 = 2064, enlarge it to 2080(0x820).
+ */
+#define CONFIG_SYS_QE_FMAN_FW_IN_MMC
+#define CONFIG_SYS_FMAN_FW_ADDR (512 * 0x820)
+#elif defined(CONFIG_QSPI_BOOT)
#define CONFIG_SYS_QE_FW_IN_SPIFLASH
#define CONFIG_SYS_FMAN_FW_ADDR 0x400d0000
#define CONFIG_ENV_SPI_BUS 0