]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd14b37d4c6c63bbe5babe1aad2b4233bf7744400
tree8d2602c4f084100851b09c740b34c7b6c835a877
parent09315a92213a6585caf97fc79b1d3c597be86bcd
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