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)
commit834b4e8d344139ba64cda22099b2b2ef6c9a542d
tree274824b547576649f4c1445898fd7d92f8f7f0bc
parentb3a9e3b9622ae10064826dccb4f7a52bd88c7407
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