mtd: spi-nor: cadence-quadspi: Add support to enable loop-back clock circuit
authorVignesh R <vigneshr@ti.com>
Tue, 3 Oct 2017 05:19:23 +0000 (10:49 +0530)
committerCyrille Pitchen <cyrille.pitchen@wedev4u.fr>
Tue, 17 Oct 2017 18:40:22 +0000 (20:40 +0200)
commite2580a4add6b061f1cc9d7bf9bac5a643112d744
tree07d1343c267eb6da54a1c26ce41efa20c2436f85
parent00df263560673cefe3341275990324730d4791d5
mtd: spi-nor: cadence-quadspi: Add support to enable loop-back clock circuit

Cadence QSPI IP has a adapted loop-back circuit which can be enabled by
setting BYPASS field to 0 in READCAPTURE register. It enables use of
QSPI return clock to latch the data rather than the internal QSPI
reference clock. For high speed operations, adapted loop-back circuit
using QSPI return clock helps to increase data valid window.

Based on DT parameter cdns,rclk-en enable adapted loop-back circuit
for boards which do have QSPI return clock provided.
This patch also modifies cqspi_readdata_capture() function's bypass
parameter to bool to match how its used in the function.

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