Skip to contentSkip to conversation

Nand boot: MPC8569 support

PATCH New Liu Yu 2 participants 2 messages Jan 14, 2010 – Jan 17, 2010 Kbuild

lore
Share & tools
lore

Liu Yu

author
#0 lore raw

PATCH 1/1 Nand boot: MPC8569 support

---
 MAKEALL                                         |    1 +
 Makefile                                        |    3 +-
 board/freescale/mpc8569mds/config.mk            |    9 ++
 board/freescale/mpc8569mds/tlb.c                |   11 ++
 include/configs/MPC8569MDS.h                    |   64 +++++++++++-
 nand_spl/board/freescale/mpc8569mds/Makefile    |  133 +++++++++++++++++++++++
 nand_spl/board/freescale/mpc8569mds/nand_boot.c |   75 +++++++++++++
 7 files changed, 292 insertions(+), 4 deletions(-)
 create mode 100644 nand_spl/board/freescale/mpc8569mds/Makefile
 create mode 100644 nand_spl/board/freescale/mpc8569mds/nand_boot.c
MAKEALL +1 -0
index a6d0f20..2b303f8 100755
@@ -403,6 +403,7 @@ LIST_85xx="		\
 	MPC8560ADS	\
 	MPC8568MDS	\
 	MPC8569MDS	\
+	MPC8569MDS_NAND \
 	MPC8572DS	\
 	MPC8572DS_36BIT	\
 	P2020DS		\
Makefile +2 -1
index 1abe64a..3e3d11b 100644
@@ -2477,8 +2477,9 @@ MPC8555CDS_config:	unconfig
 MPC8568MDS_config:	unconfig
 	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds freescale
 
+MPC8569MDS_NAND_config \
 MPC8569MDS_config:	unconfig
-	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8569mds freescale
+	@$(MKCONFIG) -t $(@:_config=) MPC8569MDS ppc mpc85xx mpc8569mds freescale
 
 MPC8572DS_36BIT_config \
 MPC8572DS_config:       unconfig
board/freescale/mpc8569mds/config.mk +9 -0
index 962f79b..7de0f7c 100644
@@ -23,4 +23,13 @@
 #
 # mpc8569mds board
 #
+ifndef NAND_SPL
+ifeq ($(CONFIG_MK_NAND), y)
+TEXT_BASE = $(CONFIG_RAMBOOT_TEXT_BASE)
+LDSCRIPT := $(TOPDIR)/cpu/$(CPU)/u-boot-nand.lds
+endif
+endif
+
+ifndef TEXT_BASE
 TEXT_BASE = 0xfff80000
+endif
board/freescale/mpc8569mds/tlb.c +11 -0
index 3b8ee05..73dcc3e 100644
@@ -90,6 +90,17 @@ struct fsl_e_tlb_entry tlb_table[] = {
 	SET_TLB_ENTRY(1, CONFIG_SYS_CCSRBAR, CONFIG_SYS_CCSRBAR_PHYS,
 		      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
 		      0, 4, BOOKE_PAGESZ_64M, 1),
+
+#if defined(CONFIG_SYS_RAMBOOT) && defined(CONFIG_SYS_INIT_L2_ADDR)
+	/* *I*G - L2SRAM */
+	SET_TLB_ENTRY(1, CONFIG_SYS_INIT_L2_ADDR, CONFIG_SYS_INIT_L2_ADDR_PHYS,
+			MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
+			0, 5, BOOKE_PAGESZ_256K, 1),
+	SET_TLB_ENTRY(1, CONFIG_SYS_INIT_L2_ADDR + 0x40000,
+			CONFIG_SYS_INIT_L2_ADDR_PHYS + 0x40000,
+			MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
+			0, 6, BOOKE_PAGESZ_256K, 1),
+#endif
 };
 
 int num_tlb_entries = ARRAY_SIZE(tlb_table);
include/configs/MPC8569MDS.h +61 -3

121 lines not on this page · raw message

nand_spl/board/freescale/mpc8569mds/Makefile new file +133 -0

133 lines not on this page · raw message

nand_spl/board/freescale/mpc8569mds/nand_boot.c new file +75 -0

75 lines not on this page · raw message

Signature · 1 line
1.6.4
#1 lore raw

PATCH 1/1 Nand boot: MPC8569 support

Dear Liu Yu,

Quoted 1 line · In message <[email protected]> you wrote:

Please use a subject (and a commit message) that actually describes (in an understandable way) what you are doing. When I just read "Nand
boot: MPC8569 support" I really don;t understand what you are about to do.

Add somethign? Fix something? remove somthing? Something for the MPC8569 processors?

It seems you are adding NAND boot support for the MPC8569MDS board - then please write that!

Best regards,

Wolfgang Denk

Signature · 7 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Yes, it's a technical challenge, and  you  have  to  kind  of  admire
people  who go to the lengths of actually implementing it, but at the
same time you wonder about their IQ...
         --  Linus Torvalds in <[email protected]>