]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: spi-nor: cadence-quadspi: Provide a way to disable DAC mode
authorVignesh Raghavendra <vigneshr@ti.com>
Mon, 1 Jun 2020 07:04:38 +0000 (12:34 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 May 2023 09:35:48 +0000 (11:35 +0200)
commitf37314df1f81ce0d4a2f29c6bf6646314a2603a7
tree3207cf9261cbe7ae19d95d91143b0c161605e09f
parent6d89defa4d8d782694d5d062b918d31b56fa6df0
mtd: spi-nor: cadence-quadspi: Provide a way to disable DAC mode

[ Upstream commit f8a1f75c49c136ca4c73de65e0f1f321f43eea48 ]

Currently direct access mode is used on platforms that have AHB window
(memory mapped window) larger than flash size. This feature is limited
to TI platforms as non TI platforms have < 1MB of AHB window.
Therefore introduce a driver quirk to disable DAC mode and set it for
non TI compatibles. This is in preparation to move to spi-mem framework
where flash geometry cannot be known.

Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Reviewed-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Acked-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Link: https://lore.kernel.org/r/20200601070444.16923-3-vigneshr@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Stable-dep-of: 2087e85bb66e ("spi: cadence-quadspi: fix suspend-resume implementations")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mtd/spi-nor/cadence-quadspi.c