]> git.baikalelectronics.ru Git - uboot.git/commit
spi: cadence_qspi: Move to spi-mem framework
authorVignesh Raghavendra <vigneshr@ti.com>
Mon, 27 Jan 2020 05:06:39 +0000 (10:36 +0530)
committerJagan Teki <jagan@amarulasolutions.com>
Mon, 27 Jan 2020 16:57:22 +0000 (22:27 +0530)
commite1f89d9519ea9f0e6d6d64be6083446caa9e37ed
treeee992aefb043954c71dd35d916ed3ecd0c2b43fa
parentafa16f2f6ca75d1fd7744267895096a27d83a81a
spi: cadence_qspi: Move to spi-mem framework

Current Cadence QSPI driver has few limitations. It assumes all read
operations to be in Quad mode and thus does not support SFDP parsing.
Also, adding support for new mode such as Octal mode would not be
possible with current configuration. Therefore move the driver over to spi-mem
framework. This has added advantage that driver can be used to support
SPI NAND memories too.
Hence, move driver over to new spi-mem APIs.

Please note that this gets rid of mode bit setting done when
CONFIG_SPL_SPI_XIP is defined as there does not seem to be any user to
that config option.

Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Tested-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Acked-by: Jagan Teki <jagan@amarulasolutions.com>
drivers/spi/cadence_qspi.c
drivers/spi/cadence_qspi.h
drivers/spi/cadence_qspi_apb.c