Skip to contentSkip to conversation

ppc/85xx: make boot from NAND full relocation to RAM

PATCH New Mingkai Hu 3 participants 7 messages Oct 20, 2009 – Nov 9, 2009

Subsystems (2)
lore
Share & tools
lore

Mingkai Hu

author
#0 lore raw

PATCH 1/1 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.

---

Changelog:

- according to Scott's comments to seperate this patch.

 cpu/mpc85xx/u-boot-nand.lds |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
cpu/mpc85xx/u-boot-nand.lds +0 -1
index a0fc8f1..b4c63e2 100644
@@ -58,7 +58,6 @@ SECTIONS
   .text      :
   {
     *(.text)
-    *(.fixup)
     *(.got1)
    } :text
     _etext = .;
Signature · 1 line
1.6.4
author
#1 lore raw

PATCH 1/1 fsl_elbc_nand: remove the bbt descriptors relocation fixup

The commit 66372fe2 manually relocated the bbt pattern pointer, which can be removed by using full relocation.

---
 drivers/mtd/nand/fsl_elbc_nand.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
drivers/mtd/nand/fsl_elbc_nand.c +0 -4
index 50cb4aa..146e9bf 100644
@@ -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 */
Signature · 1 line
1.6.4
#2 lore raw

PATCH 1/1 fsl_elbc_nand: remove the bbt descriptors relocation fixup

Quoted 7 lines · Mingkai Hu

The commit 66372fe2 manually relocated the bbt pattern pointer, which can be removed by using full relocation.

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

#3 lore raw

PATCH 1/1 fsl_elbc_nand: remove the bbt descriptors relocation fixup

Quoted 6 lines · Kumar Gala
Quoted 3 lines · Mingkai Hu

The commit 66372fe2 manually relocated the bbt pattern pointer, which can be removed by using full relocation.

Quoted 6 lines
Quoted 4 lines

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

#4 lore raw

PATCH 1/1 fsl_elbc_nand: remove the bbt descriptors relocation fixup

Quoted 7 lines · Scott Wood
Quoted 6 lines · Kumar Gala
Quoted 3 lines · Mingkai Hu

The commit 66372fe2 manually relocated the bbt pattern pointer, which can be removed by using full relocation.

Quoted 8 lines
Quoted 6 lines
Quoted 4 lines

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

Applied
#5 lore raw

PATCH 1/1 fsl_elbc_nand: remove the bbt descriptors relocation fixup

Quoted 15 lines · Kumar Gala
Quoted 12 lines · Scott Wood
Quoted 11 lines · Kumar Gala
Quoted 7 lines · Mingkai Hu

The commit 66372fe2 manually relocated the bbt pattern pointer, which can be removed by using full relocation.

---
drivers/mtd/nand/fsl_elbc_nand.c | 4 ----

1 files changed, 0 insertions(+), 4 deletions(-)
Quoted 5 lines
Quoted 3 lines
Quoted 1 line

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

#6 lore raw

PATCH 1/1 ppc/85xx: make boot from NAND full relocation to RAM

In reply to Mingkai Hu
Quoted 5 lines · Mingkai Hu

Take advantage of the latest full relocation commit of PPC platform for boot from NAND.

---

Scott, go ahead and take this via the NAND tree to keep the patches together.

- k

Quoted 27 lines

Changelog:

- according to Scott's comments to seperate this patch.

cpu/mpc85xx/u-boot-nand.lds | 1 -

1 files changed, 0 insertions(+), 1 deletions(-)
cpu/mpc85xx/u-boot-nand.lds +0 -1
index a0fc8f1..b4c63e2 100644
@@ -58,7 +58,6 @@ SECTIONS
  .text      :
  {
    *(.text)
-    *(.fixup)
    *(.got1)
   } :text
    _etext = .;
Signature · 6 lines
1.6.4

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot