mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-22 22:24:13 +07:00
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
This commit is contained in:
parent
18729b1776
commit
d652f3a5bd
@ -196,8 +196,11 @@ static void toshiba_nand_decode_id(struct nand_chip *chip)
|
|||||||
|
|
||||||
static int tc58teg5dclta00_init(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->onfi_timing_mode_default = 5;
|
||||||
chip->options |= NAND_NEED_SCRAMBLING;
|
chip->options |= NAND_NEED_SCRAMBLING;
|
||||||
|
mtd_set_pairing_scheme(mtd, &dist3_pairing_scheme);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user