summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Brezillon <bbrezillon@kernel.org>2020-05-03 18:53:36 +0300
committerMiquel Raynal <miquel.raynal@bootlin.com>2020-05-11 10:51:41 +0300
commitd652f3a5bdaf51010191b69744d6719d1e977d17 (patch)
tree957c3109d99d9f4312a2dbfd65a31140fa8f9301
parent18729b17769c73fdf854dad99cd22dd0290e7f00 (diff)
downloadlinux-d652f3a5bdaf51010191b69744d6719d1e977d17.tar.xz
mtd: rawnand: toshiba: Set the pairing scheme for TC58TEG5DCLTA00
TC58TEG5DCLTA00 uses a stride of 3 between its lower and upper page. Set the appropriate pairing scheme at init time. Signed-off-by: Boris Brezillon <bbrezillon@kernel.org> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/20200503155341.16712-4-miquel.raynal@bootlin.com
-rw-r--r--drivers/mtd/nand/raw/nand_toshiba.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mtd/nand/raw/nand_toshiba.c b/drivers/mtd/nand/raw/nand_toshiba.c
index 6b887ce20f30..ae069905d7e4 100644
--- a/drivers/mtd/nand/raw/nand_toshiba.c
+++ b/drivers/mtd/nand/raw/nand_toshiba.c
@@ -196,8 +196,11 @@ static void toshiba_nand_decode_id(struct nand_chip *chip)
static int tc58teg5dclta00_init(struct nand_chip *chip)
{
+ struct mtd_info *mtd = nand_to_mtd(chip);
+
chip->onfi_timing_mode_default = 5;
chip->options |= NAND_NEED_SCRAMBLING;
+ mtd_set_pairing_scheme(mtd, &dist3_pairing_scheme);
return 0;
}