]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: spi-nor: cadence-quadspi: Make driver independent of flash geometry
authorVignesh Raghavendra <vigneshr@ti.com>
Mon, 1 Jun 2020 07:04:37 +0000 (12:34 +0530)
committerMark Brown <broonie@kernel.org>
Fri, 19 Jun 2020 13:26:47 +0000 (14:26 +0100)
commit6d07835ca514df6b803fbb74d8dedd6ad8eb6331
tree274824b547576649f4c1445898fd7d92f8f7f0bc
parent74a27a5f5a99e6b5adfd790053b6cccac3270c76
mtd: spi-nor: cadence-quadspi: Make driver independent of flash geometry

Drop configuration of Flash size, erase size and page size
configuration. Flash size is needed only if using AHB decoder (BIT 23 of
CONFIG_REG) which is not used by the driver.
Erase size and page size are needed if IP is configured to send WREN
automatically. But since SPI NOR layer takes care of sending WREN, there
is no need to configure these fields either.

Therefore drop these in preparation to move the driver to spi-mem
framework where flash geometry is not visible to controller driver.

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-2-vigneshr@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/mtd/spi-nor/controllers/cadence-quadspi.c