diff options
author | Eric Bénard <eric@eukrea.com> | 2013-05-15 09:43:29 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-05-17 07:42:54 +0200 |
commit | ae6f75111791dcf0ee5ccc4e37ce8612665ed9e3 (patch) | |
tree | 71a8ca62b16721daa0d73c289af67ade24fd471c /include | |
parent | 8fae46a207621bcf1ad847d0b4e1730db454f055 (diff) | |
download | barebox-ae6f75111791dcf0ee5ccc4e37ce8612665ed9e3.tar.gz barebox-ae6f75111791dcf0ee5ccc4e37ce8612665ed9e3.tar.xz |
nand_base: sync flash detection functions with linux 3.9's code
this fix the problems introduced when detecting non ONFI flashes in
commit 4c2bdc8728016b3412523e3264651651fe752860
"nand_base: detect more ONFI flash"
Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mtd/bbm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mtd/bbm.h b/include/linux/mtd/bbm.h index d546f40cd8..50bc4d9971 100644 --- a/include/linux/mtd/bbm.h +++ b/include/linux/mtd/bbm.h @@ -79,6 +79,8 @@ struct nand_bbt_descr { #define NAND_BBT_SAVECONTENT 0x00002000 /* Search good / bad pattern on the first and the second page */ #define NAND_BBT_SCAN2NDPAGE 0x00004000 +/* Search good / bad pattern on the last page of the eraseblock */ +#define NAND_BBT_SCANLASTPAGE 0x00010000 /* * Use a flash based bad block table. By default, OOB identifier is saved in |