iMX31: Add support to iMX31PDK board boots from NAND Flash
PATCH 1/1 iMX31: Add support to iMX31PDK board boots from NAND Flash
This patch adds support to iMX31PDK board to boot directly from NAND Flash. In order to it works the previous patches (which reduces start.S size and copy NAND code to RAM) need be applied first.
Signed-off-by Alan Carvalho de Assis <[email protected]>
--- board/freescale/mx31pdk/lowlevel_init.S | 95 +++++++++++++++++++++++++++++- board/freescale/mx31pdk/u-boot.lds | 3 + include/configs/mx31pdk.h | 16 ++++-- 3 files changed, 105 insertions(+), 9 deletions(-)
(quoted diff) +0 -0
b/board/freescale/mx31pdk/lowlevel_init.S
index a94ea7f..71ab612 100644
board/freescale/mx31pdk/lowlevel_init.S +91 -4
102 lines not on this page · raw message
(quoted diff) +0 -0
b/board/freescale/mx31pdk/u-boot.lds
index 1460adc..8602f3e 100644
board/freescale/mx31pdk/u-boot.lds +3 -0
@@ -35,6 +35,9 @@ SECTIONS .text : { cpu/arm1136/start.o (.text) + board/freescale/mx31pdk/lowlevel_init.o (.text) + cpu/arm1136/mx31/nand_copy.o (.text) + . = 2K; /* lowlevel NAND needs to fit in 2KB of NFC buffer */ *(.text) }
include/configs/mx31pdk.h +11 -5
@@ -38,6 +38,9 @@#define CONFIG_MX31_HCLK_FREQ 26000000#define CONFIG_MX31_CLK32 32768 +/* We are booting from NAND. Used to shrink start.S */ +#define CONFIG_BOOT_FROM_NAND 1 +#define CONFIG_DISPLAY_CPUINFO #define CONFIG_DISPLAY_BOARDINFO
@@ -45,11 +48,6 @@#define CONFIG_SETUP_MEMORY_TAGS 1#define CONFIG_INITRD_TAG 1 -/* No support for NAND boot for i.MX31 PDK yet, so we rely on some other -* program to initialize the SDRAM. -*/ -#define CONFIG_SKIP_LOWLEVEL_INIT -/* * Size of malloc() pool */
@@ -132,6 +130,13 @@#define CONFIG_CMDLINE_EDITING 1/*----------------------------------------------------------------------- +* Early stack pointer +* +* Use internal SRAM memory as SP when booting from NAND (ie. to iMX NFC) +*/ +#define CFG_INTERNAL_SRAM_STACK 0x1FFFFFF0 + +/*----------------------------------------------------------------------- * Stack sizes * * The stack sizes are set up in start.S using the settings below
@@ -151,6 +156,7 @@/* No NOR flash present */ #define CFG_NO_FLASH 1 +/* We can't save to Flash. Then place Environment nowhere */ #define CFG_ENV_IS_NOWHERE 1#define CFG_ENV_SIZE (128 * 1024)
Signature · 1 line
1.5.4.3