OSDN Git Service

mtd: rawnand: Support enabling NV-DDR through SET_FEATURES
authorMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 5 May 2021 21:37:44 +0000 (23:37 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 26 May 2021 08:51:00 +0000 (10:51 +0200)
commitf3fe156ede6db96a060cc98ff1bce1ee6417a68b
tree8d2602c4f084100851b09c740b34c7b6c835a877
parente32df79f19c756f072bd517ece65df1efd496f95
mtd: rawnand: Support enabling NV-DDR through SET_FEATURES

Until now the parameter of the ADDR_TIMING_MODE feature was just the
ONFI timing mode (from 0 to 5) because we were only supporting the SDR
data interface. In the same byte, bits 4 and 5 indicate which data
interface is being configured so use them to set the right mode and also
read them back to ensure the right timing has been setup on the chip's
side.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20210505213750.257417-17-miquel.raynal@bootlin.com
drivers/mtd/nand/raw/nand_base.c
include/linux/mtd/onfi.h