iMX31: Add support to iMX31PDK board boots from NAND Flash
PATCH 3/3 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 | 15 +++-- 3 files changed, 104 insertions(+), 9 deletions(-)
(quoted diff) +0 -0
b/board/freescale/mx31pdk/lowlevel_init.S
index f368d10..58f6d3d 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 04a8f77..1cfa3ca 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 +10 -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 */
@@ -136,6 +134,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
Signature · 1 line
1.5.4.3