]> git.sur5r.net Git - u-boot/commitdiff
armv8: ls1046aqds: Fix NAND offset for Fman ucode and env
authorGong Qianyu <Qianyu.Gong@nxp.com>
Mon, 18 Sep 2017 08:59:28 +0000 (16:59 +0800)
committerYork Sun <york.sun@nxp.com>
Mon, 9 Oct 2017 15:35:58 +0000 (08:35 -0700)
Fix a bug of 'commit 8104deb2d6b7 ("armv8: layerscape: Adjust memory
mapping for Flash/SD card on LS1046A")' as NAND block size is 256KB
on LS1046AQDS.

Signed-off-by: Gong Qianyu <Qianyu.Gong@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
include/configs/ls1046a_common.h
include/configs/ls1046aqds.h

index dfc8e9237d09d715e59b4cc630f2db2c9e3e80b3..6d501b9c545af213dd98e4024f8763799774a5e8 100644 (file)
 #define CONFIG_ENV_SPI_MODE            0x03
 #elif defined(CONFIG_NAND_BOOT)
 #define CONFIG_SYS_QE_FMAN_FW_IN_NAND
-#define CONFIG_SYS_FMAN_FW_ADDR                (72 * CONFIG_SYS_NAND_BLOCK_SIZE)
+#define CONFIG_SYS_FMAN_FW_ADDR                (36 * CONFIG_SYS_NAND_BLOCK_SIZE)
 #else
 #define CONFIG_SYS_QE_FMAN_FW_IN_NOR
 #define CONFIG_SYS_FMAN_FW_ADDR                0x60900000
index 9231cca9e95d6200f9f9dd3b6ccc38ee5e8b993e..39bd1c38a8019b3576fe0557f641136f15271425 100644 (file)
@@ -435,7 +435,7 @@ unsigned long get_board_ddr_clk(void);
 
 #ifdef CONFIG_NAND_BOOT
 #define CONFIG_ENV_SIZE                        0x2000
-#define CONFIG_ENV_OFFSET              (24 * CONFIG_SYS_NAND_BLOCK_SIZE)
+#define CONFIG_ENV_OFFSET              (12 * CONFIG_SYS_NAND_BLOCK_SIZE)
 #elif defined(CONFIG_SD_BOOT)
 #define CONFIG_ENV_OFFSET              (3 * 1024 * 1024)
 #define CONFIG_SYS_MMC_ENV_DEV         0