[U-Boot] [PATCH] ppc/85xx: make boot from NAND full relocation to RAM

Take advantage of the latest full relocation commit of PPC platform for boot from NAND.
Signed-off-by: Mingkai Hu Mingkai.hu@freescale.com ---
Changelog:
- according to Scott's comments to seperate this patch.
cpu/mpc85xx/u-boot-nand.lds | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/cpu/mpc85xx/u-boot-nand.lds b/cpu/mpc85xx/u-boot-nand.lds index a0fc8f1..b4c63e2 100644 --- a/cpu/mpc85xx/u-boot-nand.lds +++ b/cpu/mpc85xx/u-boot-nand.lds @@ -58,7 +58,6 @@ SECTIONS .text : { *(.text) - *(.fixup) *(.got1) } :text _etext = .;

The commit 66372fe2 manually relocated the bbt pattern pointer, which can be removed by using full relocation.
Signed-off-by: Mingkai Hu Mingkai.hu@freescale.com --- drivers/mtd/nand/fsl_elbc_nand.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/drivers/mtd/nand/fsl_elbc_nand.c b/drivers/mtd/nand/fsl_elbc_nand.c index 50cb4aa..146e9bf 100644 --- a/drivers/mtd/nand/fsl_elbc_nand.c +++ b/drivers/mtd/nand/fsl_elbc_nand.c @@ -766,9 +766,6 @@ int board_nand_init(struct nand_chip *nand) nand->waitfunc = fsl_elbc_wait;
/* set up nand options */ - /* redirect the pointer of bbt pattern to RAM */ - bbt_main_descr.pattern = bbt_pattern; - bbt_mirror_descr.pattern = mirror_pattern; nand->bbt_td = &bbt_main_descr; nand->bbt_md = &bbt_mirror_descr;
@@ -815,7 +812,6 @@ int board_nand_init(struct nand_chip *nand) /* Large-page-specific setup */ if (or & OR_FCM_PGS) { priv->page_size = 1; - largepage_memorybased.pattern = scan_ff_pattern; nand->badblock_pattern = &largepage_memorybased;
/* adjust ecc setup if needed */

On Oct 20, 2009, at 3:58 AM, Mingkai Hu wrote:
The commit 66372fe2 manually relocated the bbt pattern pointer, which can be removed by using full relocation.
Signed-off-by: Mingkai Hu Mingkai.hu@freescale.com
drivers/mtd/nand/fsl_elbc_nand.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-)
Scott are you picking this up via the NAND tree?
Do you want to take both patches?
- k

On Tue, Oct 20, 2009 at 10:27:05AM -0500, Kumar Gala wrote:
On Oct 20, 2009, at 3:58 AM, Mingkai Hu wrote:
The commit 66372fe2 manually relocated the bbt pattern pointer, which can be removed by using full relocation.
Signed-off-by: Mingkai Hu Mingkai.hu@freescale.com
drivers/mtd/nand/fsl_elbc_nand.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-)
Scott are you picking this up via the NAND tree?
I can if you want.
-Scott

On Oct 20, 2009, at 10:28 AM, Scott Wood wrote:
On Tue, Oct 20, 2009 at 10:27:05AM -0500, Kumar Gala wrote:
On Oct 20, 2009, at 3:58 AM, Mingkai Hu wrote:
The commit 66372fe2 manually relocated the bbt pattern pointer, which can be removed by using full relocation.
Signed-off-by: Mingkai Hu Mingkai.hu@freescale.com
drivers/mtd/nand/fsl_elbc_nand.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-)
Scott are you picking this up via the NAND tree?
I can if you want.
Go ahead and pick both up via NAND tree. I'll ack the second one.
- k

On Tue, Oct 20, 2009 at 10:30:55AM -0500, Kumar Gala wrote:
On Oct 20, 2009, at 10:28 AM, Scott Wood wrote:
On Tue, Oct 20, 2009 at 10:27:05AM -0500, Kumar Gala wrote:
On Oct 20, 2009, at 3:58 AM, Mingkai Hu wrote:
The commit 66372fe2 manually relocated the bbt pattern pointer, which can be removed by using full relocation.
Signed-off-by: Mingkai Hu Mingkai.hu@freescale.com
drivers/mtd/nand/fsl_elbc_nand.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-)
Scott are you picking this up via the NAND tree?
I can if you want.
Go ahead and pick both up via NAND tree. I'll ack the second one.
Applied both to next.
-Scott

On Oct 20, 2009, at 3:58 AM, Mingkai Hu wrote:
Take advantage of the latest full relocation commit of PPC platform for boot from NAND.
Signed-off-by: Mingkai Hu Mingkai.hu@freescale.com
Acked-by: Kumar Gala galak@kernel.crashing.org
Scott, go ahead and take this via the NAND tree to keep the patches together.
- k
Changelog:
- according to Scott's comments to seperate this patch.
cpu/mpc85xx/u-boot-nand.lds | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/cpu/mpc85xx/u-boot-nand.lds b/cpu/mpc85xx/u-boot-nand.lds index a0fc8f1..b4c63e2 100644 --- a/cpu/mpc85xx/u-boot-nand.lds +++ b/cpu/mpc85xx/u-boot-nand.lds @@ -58,7 +58,6 @@ SECTIONS .text : { *(.text)
- *(.fixup) *(.got1) } :text _etext = .;
-- 1.6.4
U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
participants (3)
-
Kumar Gala
-
Mingkai Hu
-
Scott Wood