aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGraham Moore <grmoore@opensource.altera.com>2015-01-14 10:38:50 -0500
committerBrian Norris <computersforpeace@gmail.com>2015-03-30 21:32:44 -0400
commitd99d72829ec00a96d2d71f30a704b901c198a673 (patch)
tree28e4b2c487eb6114bd4aa4e9967ca93e6417323a
parente5860c18e68606446a10c3e926a2a0162c385cbf (diff)
mtd: denali: Disable sub-page writes in Denali NAND driver
The Denali Controller IP does not support sub-page writes. Signed-off-by: Graham Moore <grmoore@opensource.altera.com> Signed-off-by: Dinh Nguyen <dinguyen@opensource.altera.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
-rw-r--r--drivers/mtd/nand/denali.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mtd/nand/denali.c b/drivers/mtd/nand/denali.c
index 09f51395f2c0..870c7fc0f759 100644
--- a/drivers/mtd/nand/denali.c
+++ b/drivers/mtd/nand/denali.c
@@ -1533,6 +1533,9 @@ int denali_init(struct denali_nand_info *denali)
1533 denali->nand.options |= NAND_SKIP_BBTSCAN; 1533 denali->nand.options |= NAND_SKIP_BBTSCAN;
1534 denali->nand.ecc.mode = NAND_ECC_HW_SYNDROME; 1534 denali->nand.ecc.mode = NAND_ECC_HW_SYNDROME;
1535 1535
1536 /* no subpage writes on denali */
1537 denali->nand.options |= NAND_NO_SUBPAGE_WRITE;
1538
1536 /* 1539 /*
1537 * Denali Controller only support 15bit and 8bit ECC in MRST, 1540 * Denali Controller only support 15bit and 8bit ECC in MRST,
1538 * so just let controller do 15bit ECC for MLC and 8bit ECC for 1541 * so just let controller do 15bit ECC for MLC and 8bit ECC for