diff options
author | Michel Pollet <buserror@gmail.com> | 2009-05-13 17:54:14 +0200 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2009-06-08 13:10:36 +0200 |
commit | 9db41f9edcb87ae050fcb171c44be7f212728d54 (patch) | |
tree | 2a090576a84f7015821cda1c89f933156c3c127a /drivers/mtd/nand/s3c2410.c | |
parent | [MTD] [NAND] S3C2410: Added a kerneldoc for s3c2410_nand_set (diff) | |
download | linux-9db41f9edcb87ae050fcb171c44be7f212728d54.tar.xz linux-9db41f9edcb87ae050fcb171c44be7f212728d54.zip |
[MTD] [NAND] S3C2410: Allow the machine code to get the BBT table from NAND
Added a flag to allow the machine code to tell the NAND
subsystem that it should try to pickup a BBT from the flash,
and also skip the NAND full scan at startup.
Signed-off-by: Michel Pollet <buserror@gmail.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'drivers/mtd/nand/s3c2410.c')
-rw-r--r-- | drivers/mtd/nand/s3c2410.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/mtd/nand/s3c2410.c b/drivers/mtd/nand/s3c2410.c index ef5665258968..d315b513db5c 100644 --- a/drivers/mtd/nand/s3c2410.c +++ b/drivers/mtd/nand/s3c2410.c @@ -845,6 +845,12 @@ static void s3c2410_nand_init_chip(struct s3c2410_nand_info *info, dev_info(info->device, "NAND ECC UNKNOWN\n"); break; } + + /* If you use u-boot BBT creation code, specifying this flag will + * let the kernel fish out the BBT from the NAND, and also skip the + * full NAND scan that can take 1/2s or so. Little things... */ + if (set->flash_bbt) + chip->options |= NAND_USE_FLASH_BBT | NAND_SKIP_BBTSCAN; } /** |