powerpc/mpc85xx: new SPL support for IFC NAND
Subsystems (3)
PATCH v3 2/5 powerpc/mpc85xx: new SPL support for IFC NAND
Linker script is not able find start.o binary. So add its absolute path in u-boot-spl.lds. This change is similar to u-boot-nand.lds
common/Makefile: Avoid compiling unnecssary files
fsl_ifc_spl.c : It is is responsible for reading u-boot binary from NAND flash and copying into DDR. It also transfer cotrol from NAND SPL to u-boot image present in DDR.
---
Based upon git://git.denx.de/u-boot.git branch master
Changes for v2: Sending as it is
Changes for v3: Fix tools/checkpatch errors
arch/powerpc/cpu/mpc85xx/u-boot-spl.lds | 2 +- board/freescale/common/Makefile | 10 ++ drivers/mtd/nand/Makefile | 1 + drivers/mtd/nand/fsl_ifc_spl.c | 258 +++++++++++++++++++++++++++++++ 4 files changed, 270 insertions(+), 1 deletion(-) create mode 100644 drivers/mtd/nand/fsl_ifc_spl.c
arch/powerpc/cpu/mpc85xx/u-boot-spl.lds +1 -1
@@ -60,7 +60,7 @@ SECTIONS #if defined(CONFIG_FSL_IFC) /* Restrict bootpg at 4K boundry for IFC */ .bootpg ADDR(.text) + 0x1000 : { - start.o (.bootpg) + arch/powerpc/cpu/mpc85xx/start.o (.bootpg) } #define RESET_VECTOR_OFFSET 0x1ffc /* IFC has 8K sram */ #elif defined(CONFIG_FSL_ELBC)
board/freescale/common/Makefile +10 -0
@@ -29,6 +29,15 @@ endif LIB = $(obj)libfreescale.o +MINIMAL= + +ifdef CONFIG_SPL_BUILD +ifdef CONFIG_SPL_INIT_MINIMAL +MINIMAL=y +endif +endif + +ifndef MINIMAL COBJS-$(CONFIG_FSL_CADMUS) += cadmus.o COBJS-$(CONFIG_FSL_VIA) += cds_via.o COBJS-$(CONFIG_FMAN_ENET) += fman.o
@@ -62,6 +71,7 @@ SUBLIB-$(CONFIG_P3041DS) += p_corenet/libp_corenet.o SUBLIB-$(CONFIG_P4080DS) += p_corenet/libp_corenet.o SUBLIB-$(CONFIG_P5020DS) += p_corenet/libp_corenet.o SUBLIB-$(CONFIG_P5040DS) += p_corenet/libp_corenet.o +endif SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c) OBJS := $(addprefix $(obj),$(COBJS-y))
drivers/mtd/nand/Makefile +1 -0
@@ -82,6 +82,7 @@ COBJS-$(CONFIG_NAND_PLAT) += nand_plat.o else # minimal SPL drivers COBJS-$(CONFIG_NAND_FSL_ELBC) += fsl_elbc_spl.o +COBJS-$(CONFIG_NAND_FSL_IFC) += fsl_ifc_spl.o endif # drivers endif # nand
drivers/mtd/nand/fsl_ifc_spl.c new file +258 -0
258 lines not on this page · raw message
Signature · 1 line
1.7.9.5
PATCH v3 2/5 powerpc/mpc85xx: new SPL support for IFC NAND
Quoted 17 lines · Prabhakar Kushwaha
Linker script is not able find start.o binary. So add its absolute path in
u-boot-spl.lds. This change is similar tou-boot-nand.ldscommon/Makefile: Avoid compiling unnecssary files
fsl_ifc_spl.c: It is is responsible for reading u-boot binary from NAND flash and copying into DDR. It also transfer cotrol from NAND SPL to u-boot image present in DDR.Signed-off-by Prabhakar Kushwaha <[email protected]>---
Based upongit://git.denx.de/u-boot.gitbranch masterChanges for v2: Sending as it is
Changes for v3: Fixtools/checkpatcherrors
Quoted 7 lines
arch/powerpc/cpu/mpc85xx/u-boot-spl.lds | 2 +- board/freescale/common/Makefile | 10 ++ drivers/mtd/nand/Makefile | 1 + drivers/mtd/nand/fsl_ifc_spl.c | 258 +++++++++++++++++++++++++++++++ 4 files changed, 270 insertions(+), 1 deletion(-) create mode 100644 drivers/mtd/nand/fsl_ifc_spl.c
Did you use -C in git format-patch? I'd expect fsl_ifc_spl.c to be recognized as a copy.
-Scott
PATCH v3 2/5 powerpc/mpc85xx: new SPL support for IFC NAND
Quoted 26 lines · Scott Wood
Quoted 17 lines · Prabhakar Kushwaha
Linker script is not able find start.o binary. So add its absolute path in
u-boot-spl.lds. This change is similar tou-boot-nand.ldscommon/Makefile: Avoid compiling unnecssary files
fsl_ifc_spl.c: It is is responsible for reading u-boot binary from NAND flash and copying into DDR. It also transfer cotrol from NAND SPL to u-boot image present in DDR.Signed-off-by Prabhakar Kushwaha <[email protected]>---
Based upongit://git.denx.de/u-boot.gitbranch masterChanges for v2: Sending as it is
Changes for v3: Fixtools/checkpatcherrorsQuoted 7 lines
arch/powerpc/cpu/mpc85xx/u-boot-spl.lds | 2 +- board/freescale/common/Makefile | 10 ++ drivers/mtd/nand/Makefile | 1 + drivers/mtd/nand/fsl_ifc_spl.c | 258 +++++++++++++++++++++++++++++++ 4 files changed, 270 insertions(+), 1 deletion(-) create mode 100644 drivers/mtd/nand/fsl_ifc_spl.c
Quoted 2 lines
Did you use -C in git format-patch? I'd expect
fsl_ifc_spl.cto be recognized as a copy.
Yes Scott,
I used -C option during git format-patch.
$ git format-patch -C -M HEAD^^^^^^
Regards,
Prabhakar