ppc/P1_P2_RDB: NAND Boot Support
PATCH v2 1/3 ppc/P1_P2_RDB: NAND Boot Support
NAND Boot support for P1 and P2 series RDB platforms.
This patch is derived from latest NAND Boot support on MPC8536DS by Mingkai Hu.
---
- Applies to http://git.denx.de/u-boot.git
- Changes from v1: Integrated kumar's comments
MAKEALL | 4 + Makefile | 6 +- board/freescale/p1_p2_rdb/config.mk | 7 ++ board/freescale/p1_p2_rdb/tlb.c | 10 ++ include/configs/P1_P2_RDB.h | 72 ++++++++++++-- nand_spl/board/freescale/p1_p2_rdb/Makefile | 127 ++++++++++++++++++++++++ nand_spl/board/freescale/p1_p2_rdb/nand_boot.c | 97 ++++++++++++++++++ 7 files changed, 315 insertions(+), 8 deletions(-) create mode 100644 nand_spl/board/freescale/p1_p2_rdb/Makefile create mode 100644 nand_spl/board/freescale/p1_p2_rdb/nand_boot.c
MAKEALL +4 -0
@@ -395,9 +395,13 @@ LIST_85xx=" \ P2020DS \ P2020DS_36BIT \ P1011RDB \ + P1011RDB_NAND \ P1020RDB \ + P1020RDB_NAND \ P2010RDB \ + P2010RDB_NAND \ P2020RDB \ + P2020RDB_NAND \ PM854 \ PM856 \ sbc8540 \
Makefile +5 -1
@@ -2524,9 +2524,13 @@ P2020DS_config: unconfig @$(MKCONFIG) -t $(@:_config=) P2020DS ppc mpc85xx p2020ds freescale P1011RDB_config \ +P1011RDB_NAND_config \ P1020RDB_config \ +P1020RDB_NAND_config \ P2010RDB_config \ -P2020RDB_config: unconfig +P2010RDB_NAND_config \ +P2020RDB_config \ +P2020RDB_NAND_config: unconfig @$(MKCONFIG) -t $(@:_config=) P1_P2_RDB ppc mpc85xx p1_p2_rdb freescale PM854_config: unconfig
board/freescale/p1_p2_rdb/config.mk +7 -0
@@ -24,6 +24,13 @@ # p1_p2rdb 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 = 0xeff80000 endif
board/freescale/p1_p2_rdb/tlb.c +10 -0
@@ -78,6 +78,16 @@ struct fsl_e_tlb_entry tlb_table[] = { MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G, 0, 6, BOOKE_PAGESZ_1M, 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 ,7 ,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, 8, BOOKE_PAGESZ_256K, 1), +#endif };int num_tlb_entries =ARRAY_SIZE (tlb_table);
include/configs/P1_P2_RDB.h +65 -7
130 lines not on this page · raw message
nand_spl/board/freescale/p1_p2_rdb/Makefile new file +127 -0
127 lines not on this page · raw message
nand_spl/board/freescale/p1_p2_rdb/nand_boot.c new file +97 -0
97 lines not on this page · raw message
Signature · 1 line
1.5.6.3
Kumar Gala
AppliedPATCH v2 1/3 ppc/P1_P2_RDB: NAND Boot Support
Quoted 19 lines · Dipen Dudhat
NAND Boot support for P1 and P2 series RDB platforms.
This patch is derived from latest NAND Boot support on MPC8536DS by Mingkai Hu.
Signed-off-by Dipen Dudhat <[email protected]>---
- Applies to http://git.denx.de/u-boot.git
- Changes from v1: Integrated kumar's commentsMAKEALL | 4 + Makefile | 6 +- board/freescale/p1_p2_rdb/config.mk | 7 ++ board/freescale/p1_p2_rdb/tlb.c | 10 ++ include/configs/P1_P2_RDB.h | 72 ++++++++++++-- nand_spl/board/freescale/p1_p2_rdb/Makefile | 127 +++++++++++++++ +++++++++ nand_spl/board/freescale/p1_p2_rdb/nand_boot.c | 97 +++++++++++++++ +++ 7 files changed, 315 insertions(+), 8 deletions(-)
Quoted 2 lines
create mode 100644 nand_spl/board/freescale/p1_p2_rdb/Makefile create mode 100644
nand_spl/board/freescale/p1_p2_rdb/nand_boot.c
applied to 85xx
- k