]> asedeno.scripts.mit.edu Git - linux.git/commit
mtd: spi-nor: cadence-quadspi: add a delay in write sequence
authorVignesh R <vigneshr@ti.com>
Tue, 3 Oct 2017 05:19:21 +0000 (10:49 +0530)
committerCyrille Pitchen <cyrille.pitchen@wedev4u.fr>
Tue, 17 Oct 2017 18:38:27 +0000 (20:38 +0200)
commit61dc8493bae9ba82a1c72edbc6c6065f6a94456a
tree39eacded0ae461dc2df6e4c8709f574ab5009423
parent18a3dde9db78076755275423b754846a2da000ad
mtd: spi-nor: cadence-quadspi: add a delay in write sequence

As per 66AK2G02 TRM[1] SPRUHY8F section 11.15.5.3 Indirect Access
Controller programming sequence, a delay equal to couple of QSPI master
clock(~5ns) is required after setting CQSPI_REG_INDIRECTWR_START bit and
writing data to the flash. Introduce a quirk flag CQSPI_NEEDS_WR_DELAY
to handle this and set this flag for TI 66AK2G SoC.

[1]http://www.ti.com/lit/ug/spruhy8f/spruhy8f.pdf

Signed-off-by: Vignesh R <vigneshr@ti.com>
Acked-by: Marek Vasut <marek.vasut@gmail.com>
Signed-off-by: Cyrille Pitchen <cyrille.pitchen@wedev4u.fr>
drivers/mtd/spi-nor/cadence-quadspi.c