diff options
| -rw-r--r-- | drivers/mtd/nand/spi/micron.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/mtd/nand/spi/micron.c b/drivers/mtd/nand/spi/micron.c index 7a3fe2c7c3f1..1b60d8ac7279 100644 --- a/drivers/mtd/nand/spi/micron.c +++ b/drivers/mtd/nand/spi/micron.c @@ -35,9 +35,9 @@ (CFG_OTP_ENABLE | MICRON_MT29F2G01ABAGD_CFG_OTP_STATE) static SPINAND_OP_VARIANTS(quadio_read_cache_variants, - SPINAND_PAGE_READ_FROM_CACHE_1S_4S_4S_OP(0, 2, NULL, 0, 0), + //SPINAND_PAGE_READ_FROM_CACHE_1S_4S_4S_OP(0, 2, NULL, 0, 0), SPINAND_PAGE_READ_FROM_CACHE_1S_1S_4S_OP(0, 1, NULL, 0, 0), - SPINAND_PAGE_READ_FROM_CACHE_1S_2S_2S_OP(0, 1, NULL, 0, 0), + //SPINAND_PAGE_READ_FROM_CACHE_1S_2S_2S_OP(0, 1, NULL, 0, 0), SPINAND_PAGE_READ_FROM_CACHE_1S_1S_2S_OP(0, 1, NULL, 0, 0), SPINAND_PAGE_READ_FROM_CACHE_FAST_1S_1S_1S_OP(0, 1, NULL, 0, 0), SPINAND_PAGE_READ_FROM_CACHE_1S_1S_1S_OP(0, 1, NULL, 0, 0)); @@ -83,8 +83,8 @@ static int micron_8_ooblayout_ecc(struct mtd_info *mtd, int section, if (section) return -ERANGE; - region->offset = mtd->oobsize / 2; - region->length = mtd->oobsize / 2; + region->offset = 64; + region->length = 64; return 0; } @@ -97,7 +97,7 @@ static int micron_8_ooblayout_free(struct mtd_info *mtd, int section, /* Reserve 4 bytes for the BBM. */ region->offset = 4; - region->length = (mtd->oobsize / 2) - 4; + region->length = 28; return 0; } |
