mtd: spi-nor-core: Add support for Cypress Semper flash
authorPratyush Yadav <p.yadav@ti.com>
Fri, 25 Jun 2021 19:17:28 +0000 (00:47 +0530)
committerJagan Teki <jagan@amarulasolutions.com>
Mon, 28 Jun 2021 06:36:43 +0000 (12:06 +0530)
commitea9a22f7e79cbc951a2aca204b3eec6948837827
tree6c554f748128f6ee223283cc59e363602b97abe1
parentee52b0b764d3eaa69f20f7e142945d56fe3f6fdb
mtd: spi-nor-core: Add support for Cypress Semper flash

The Cypress Semper flash is an xSPI compliant octal DTR flash. Add
support for using it in octal DTR mode.

The flash by default boots in a hybrid sector mode. Switch to uniform
sector mode on boot. Use the default 20 dummy cycles for a read fast
command.

The SFDP programming on some older versions of the flash was incorrect.
Fixes for that are included in the fixup hooks.

Signed-off-by: Pratyush Yadav <p.yadav@ti.com>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
drivers/mtd/spi/Kconfig
drivers/mtd/spi/spi-nor-core.c
drivers/mtd/spi/spi-nor-ids.c
include/linux/mtd/spi-nor.h