diff options
author | Arve Hjønnevåg <arve@android.com> | 2011-08-15 17:47:25 -0700 |
---|---|---|
committer | Arve Hjønnevåg <arve@android.com> | 2011-11-17 17:54:24 -0800 |
commit | ae2305d767f87e214418d73b749ad3047ce8e600 (patch) | |
tree | 3e3148ddda047983df16dac08ffc80f2c2af614d /drivers/mtd/onenand | |
parent | 5f9df28fc1dde07d604875b17c2e87cfa4e62d96 (diff) | |
download | kernel_samsung_aries-ae2305d767f87e214418d73b749ad3047ce8e600.zip kernel_samsung_aries-ae2305d767f87e214418d73b749ad3047ce8e600.tar.gz kernel_samsung_aries-ae2305d767f87e214418d73b749ad3047ce8e600.tar.bz2 |
Revert "mtd: onenand: add ecclayout and subpage_sft for non-flex 4KiB page onenand"
This reverts commit 99b17c08bca2810f5910b3027f1b9d82edf7a576.
This change broke support for the onenand chip used in Nexus-S
which is also reported as non-flex 4KiB pagesize.
Change-Id: I1a9a30fa42491400a664fd42f574a099a0c29978
Signed-off-by: Arve Hjønnevåg <arve@android.com>
Diffstat (limited to 'drivers/mtd/onenand')
-rw-r--r-- | drivers/mtd/onenand/onenand_base.c | 46 |
1 files changed, 6 insertions, 40 deletions
diff --git a/drivers/mtd/onenand/onenand_base.c b/drivers/mtd/onenand/onenand_base.c index f55190a..c274911 100644 --- a/drivers/mtd/onenand/onenand_base.c +++ b/drivers/mtd/onenand/onenand_base.c @@ -66,11 +66,11 @@ MODULE_PARM_DESC(otp, "Corresponding behaviour of OneNAND in OTP" " : 2 -> 1st Block lock" " : 3 -> BOTH OTP Block and 1st Block lock"); -/* - * flexonenand_oob_128 - oob info for Flex-Onenand with 4KB page - * For now, we expose only 64 out of 80 ecc bytes +/** + * onenand_oob_128 - oob info for Flex-Onenand with 4KB page + * For now, we expose only 64 out of 80 ecc bytes */ -static struct nand_ecclayout flexonenand_oob_128 = { +static struct nand_ecclayout onenand_oob_128 = { .eccbytes = 64, .eccpos = { 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, @@ -87,35 +87,6 @@ static struct nand_ecclayout flexonenand_oob_128 = { } }; -/* - * onenand_oob_128 - oob info for OneNAND with 4KB page - * - * Based on specification: - * 4Gb M-die OneNAND Flash (KFM4G16Q4M, KFN8G16Q4M). Rev. 1.3, Apr. 2010 - * - * For eccpos we expose only 64 bytes out of 72 (see struct nand_ecclayout) - * - * oobfree uses the spare area fields marked as - * "Managed by internal ECC logic for Logical Sector Number area" - */ -static struct nand_ecclayout onenand_oob_128 = { - .eccbytes = 64, - .eccpos = { - 7, 8, 9, 10, 11, 12, 13, 14, 15, - 23, 24, 25, 26, 27, 28, 29, 30, 31, - 39, 40, 41, 42, 43, 44, 45, 46, 47, - 55, 56, 57, 58, 59, 60, 61, 62, 63, - 71, 72, 73, 74, 75, 76, 77, 78, 79, - 87, 88, 89, 90, 91, 92, 93, 94, 95, - 103, 104, 105, 106, 107, 108, 109, 110, 111, - 119 - }, - .oobfree = { - {2, 3}, {18, 3}, {34, 3}, {50, 3}, - {66, 3}, {82, 3}, {98, 3}, {114, 3} - } -}; - /** * onenand_oob_64 - oob info for large (2KB) page */ @@ -4052,13 +4023,8 @@ int onenand_scan(struct mtd_info *mtd, int maxchips) */ switch (mtd->oobsize) { case 128: - if (FLEXONENAND(this)) { - this->ecclayout = &flexonenand_oob_128; - mtd->subpage_sft = 0; - } else { - this->ecclayout = &onenand_oob_128; - mtd->subpage_sft = 2; - } + this->ecclayout = &onenand_oob_128; + mtd->subpage_sft = 0; break; case 64: this->ecclayout = &onenand_oob_64; |