MX31: Add NAND SPL boot support to i.MX31 PDK board.
Subsystems (2)
PATCH v5 1/1 MX31: Add NAND SPL boot support to i.MX31 PDK board.
Signed-off-by Magnus Lilja <[email protected]>
---
Applies to arm-master.
Changes since v4: Fixed comments received from Jean-Christophe.
MAKEALL | 1 + Makefile | 12 +++- board/freescale/mx31pdk/config.mk | 4 + board/freescale/mx31pdk/lowlevel_init.S | 93 +++++++++++++++++++++++++++ include/asm-arm/arch-mx31/mx31-regs.h | 54 +++++++++++++++ include/configs/mx31pdk.h | 43 ++++++++++++- nand_spl/board/freescale/mx31pdk/Makefile | 54 +++++++++++++++ nand_spl/board/freescale/mx31pdk/config.mk | 1 + nand_spl/board/freescale/mx31pdk/u-boot.lds | 36 ++++++++++ 9 files changed, 293 insertions(+), 5 deletions(-) create mode 100644 board/freescale/mx31pdk/lowlevel_init.S create mode 100644 nand_spl/board/freescale/mx31pdk/Makefile create mode 100644 nand_spl/board/freescale/mx31pdk/config.mk create mode 100644 nand_spl/board/freescale/mx31pdk/u-boot.lds
MAKEALL +1 -0
@@ -555,6 +555,7 @@ LIST_ARM11=" \ imx31_phycore_eet \ mx31ads \ mx31pdk \ + mx31pdk_nand \ qong \ smdk6400 \ "
Makefile +10 -2
@@ -3143,8 +3143,16 @@ imx31_phycore_config : unconfig mx31ads_config : unconfig @$(MKCONFIG) $(@:_config=) arm arm1136 mx31ads freescale mx31 -mx31pdk_config : unconfig - @$(MKCONFIG) $(@:_config=) arm arm1136 mx31pdk freescale mx31 +mx31pdk_config \ +mx31pdk_nand_config : unconfig + @mkdir -p $(obj)include + @if [ -n "$(findstring _nand_,$@)" ]; then \ + echo "#define CONFIG_NAND_U_BOOT" >> $(obj)include/config.h; \ + else \ + echo "#define CONFIG_SKIP_LOWLEVEL_INIT" >> $(obj)include/config.h; \ + echo "#define CONFIG_SKIP_RELOCATE_UBOOT" >> $(obj)include/config.h; \ + fi + @$(MKCONFIG) -a mx31pdk arm arm1136 mx31pdk freescale mx31 omap2420h4_config : unconfig @$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4 NULL omap24xx
board/freescale/mx31pdk/config.mk +4 -0
@@ -1 +1,5 @@ +ifdef CONFIG_NAND_SPL +TEXT_BASE = 0x87ec0000 +else TEXT_BASE = 0x87f00000 +endif
board/freescale/mx31pdk/lowlevel_init.S new file +93 -0
93 lines not on this page · raw message
include/asm-arm/arch-mx31/mx31-regs.h +54 -0
66 lines not on this page · raw message
include/configs/mx31pdk.h +40 -3
54 lines not on this page · raw message
nand_spl/board/freescale/mx31pdk/Makefile new file +54 -0
54 lines not on this page · raw message
nand_spl/board/freescale/mx31pdk/config.mk new file +1 -0
@@ -0,0 +1 @@ +PAD_TO := 2048
nand_spl/board/freescale/mx31pdk/u-boot.lds new file +36 -0
@@ -0,0 +1,36 @@ +OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm") +OUTPUT_ARCH(arm) +ENTRY(_start) +SECTIONS +{ + . = 0x00000000; + + . = ALIGN(4); + .text : + { + start.o (.text) + lowlevel_init.o (.text) + nand_boot_fsl_nfc.o (.text) + *(.text) + . = 2K; + } + + . = ALIGN(4); + .rodata : { *(.rodata) } + + . = ALIGN(4); + .data : { *(.data) } + + . = ALIGN(4); + .got : { *(.got) } + + . = .; + __u_boot_cmd_start = .; + .u_boot_cmd : { *(.u_boot_cmd) } + __u_boot_cmd_end = .; + + . = ALIGN(4); + __bss_start = .; + .bss : { *(.bss) } + _end = .; +}
Signature · 1 line
1.5.6
PATCH v5 1/1 MX31: Add NAND SPL boot support to i.MX31 PDK board.
Quoted 6 lines · Magnus Lilja
Signed-off-by Magnus Lilja <[email protected]>---
Applies to arm-master.
Changes since v4: Fixed comments received from Jean-Christophe.
Quoted 15 lines
MAKEALL | 1 + Makefile | 12 +++- board/freescale/mx31pdk/config.mk | 4 + board/freescale/mx31pdk/lowlevel_init.S | 93 +++++++++++++++++++++++++++ include/asm-arm/arch-mx31/mx31-regs.h | 54 +++++++++++++++ include/configs/mx31pdk.h | 43 ++++++++++++- nand_spl/board/freescale/mx31pdk/Makefile | 54 +++++++++++++++ nand_spl/board/freescale/mx31pdk/config.mk | 1 + nand_spl/board/freescale/mx31pdk/u-boot.lds | 36 ++++++++++ 9 files changed, 293 insertions(+), 5 deletions(-) create mode 100644 board/freescale/mx31pdk/lowlevel_init.S create mode 100644 nand_spl/board/freescale/mx31pdk/Makefile create mode 100644 nand_spl/board/freescale/mx31pdk/config.mk create mode 100644 nand_spl/board/freescale/mx31pdk/u-boot.lds
applied to u-boot-arm
Best Regards,
J.