summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/spi-nor/core.h
diff options
context:
space:
mode:
authorSudip Mukherjee <sudip.mukherjee@sifive.com>2022-09-20 19:48:07 +0100
committerTudor Ambarus <tudor.ambarus@microchip.com>2022-11-22 08:17:46 +0200
commita30f53d8bc0f9b55b4e8eea0e17b68cfd1f07f34 (patch)
tree4db8a57b5c3c9b88194317138caa1a4cd7088771 /drivers/mtd/spi-nor/core.h
parentef434f08b0562069cf431873a052692357d325a1 (diff)
downloadlinux-a30f53d8bc0f9b55b4e8eea0e17b68cfd1f07f34.tar.bz2
mtd: spi-nor: issi: is25wp256: Init flash based on SFDP
The datasheet of is25wp256 says it supports SFDP. Get rid of the static initialization of the flash parameters and init them when parsing SFDP. Testing showed the flash using SPINOR_OP_READ_1_1_4_4B 0x6c, SPINOR_OP_PP_4B 0x12 and SPINOR_OP_BE_4K_4B 0x21 before enabling SFDP. After this patch, it parses the SFDP information and still uses the same opcodes. Set sector_size and n_sectors to zero as they will be discovered when parsing SFDP. Signed-off-by: Sudip Mukherjee <sudip.mukherjee@sifive.com> [tudor.ambarus@microchip.com: set sector_size and n_sectors to zero] Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com> Link: https://lore.kernel.org/r/20220920184808.44876-1-sudip.mukherjee@sifive.com
Diffstat (limited to 'drivers/mtd/spi-nor/core.h')
0 files changed, 0 insertions, 0 deletions