summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJason Liu <r64343@freescale.com>2010-12-27 20:22:11 +0800
committerJason Liu <r64343@freescale.com>2010-12-27 20:29:32 +0800
commit2205133fb6fdea1393933e332ed693d82d922dba (patch)
treec7e777208bde3761fb89ba5ebc0741114d966703 /drivers
parentd0309988aa96ca12dd2ae1855a52449415a46466 (diff)
downloadu-boot-imx-2205133fb6fdea1393933e332ed693d82d922dba.zip
u-boot-imx-2205133fb6fdea1393933e332ed693d82d922dba.tar.gz
u-boot-imx-2205133fb6fdea1393933e332ed693d82d922dba.tar.bz2
ENGR00137390 UBOOT:NAND: BBT not found on MX53 board
BBT table can't be found on MX53 board, which is due to that the BBT table flag has been written to the ECC area which cause the BBT flag lost. This patch also fix the BBT version not correct issue. Signed-off-by: Jason Liu <r64343@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mtd/nand/mxc_nand.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c
index eb20f58..be4be3e 100644
--- a/drivers/mtd/nand/mxc_nand.c
+++ b/drivers/mtd/nand/mxc_nand.c
@@ -1205,6 +1205,13 @@ skip_it:
/* fix up the offset */
largepage_memorybased.offs = BAD_BLK_MARKER_OOB_OFFS;
+ /* keep compatible for bbt table with old soc */
+#ifdef CONFIG_MX53
+ bbt_mirror_descr.offs = BAD_BLK_MARKER_OOB_OFFS + 2;
+ bbt_main_descr.offs = BAD_BLK_MARKER_OOB_OFFS + 2;
+ bbt_mirror_descr.veroffs = bbt_mirror_descr.offs + 4;
+ bbt_main_descr.veroffs = bbt_main_descr.offs + 4;
+#endif
/* use flash based bbt */
this->bbt_td = &bbt_main_descr;
this->bbt_md = &bbt_mirror_descr;