Merge branch 'org.openembedded.dev' of git@git.openembedded.net:openembedded into...
[vuplus_openembedded] / packages / u-boot / u-boot-1.3.2 / boc01 / 013-090206-FIX_OOB_8BITS_LARGEPAGE_NAND.patch
1 Index: u-boot-1.3.2/drivers/mtd/nand/nand_bbt.c
2 ===================================================================
3 --- u-boot-1.3.2.orig/drivers/mtd/nand/nand_bbt.c       2008-03-09 16:20:02.000000000 +0100
4 +++ u-boot-1.3.2/drivers/mtd/nand/nand_bbt.c    2009-02-06 14:50:35.000000000 +0100
5 @@ -914,10 +914,11 @@
6         .pattern = scan_ff_pattern
7  };
8  
9 +//Samsung makes sure that either the 1st or 2nd page of every initial invalid block has non-FFh data at the column address of 2048.
10  static struct nand_bbt_descr largepage_memorybased = {
11         .options = 0,
12         .offs = 0,
13 -       .len = 2,
14 +       .len = 1,
15         .pattern = scan_ff_pattern
16  };
17  
18 Index: u-boot-1.3.2/include/configs/MPC8313ERDB.h
19 ===================================================================
20 --- u-boot-1.3.2.orig/include/configs/MPC8313ERDB.h     2009-02-06 15:42:07.000000000 +0100
21 +++ u-boot-1.3.2/include/configs/MPC8313ERDB.h  2009-02-06 15:42:45.000000000 +0100
22 @@ -205,6 +205,7 @@
23                                 | BR_MS_FCM             /* MSEL = FCM */ \
24                                 | BR_V )                /* valid */
25  #define CFG_OR1_PRELIM         ( 0xFFFF8000            /* length 32K */ \
26 +                               | OR_FCM_PGS \
27                                 | OR_FCM_CSCT \
28                                 | OR_FCM_CST \
29                                 | OR_FCM_CHT \