Skip to contentSkip to conversation

powerpc/mpc85xx: new SPL support for IFC NAND

PATCH Superseded Prabhakar Kushwaha 2 participants 3 messages Apr 11, 2013 – Apr 12, 2013

Subsystems (3)

v3 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

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
index f2b7bff..cf6fa7c 100644
@@ -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
index 75725b4..a4d521c 100644
@@ -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
index c77c0c4..9d7deb8 100644
@@ -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
#1 lore raw

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 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

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

#2 lore raw

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 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

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
Quoted 2 lines

Did you use -C in git format-patch? I'd expect fsl_ifc_spl.c to be recognized as a copy.

Yes Scott,
I used -C option during git format-patch.

$ git format-patch -C -M HEAD^^^^^^

Regards,
Prabhakar