mtd: spi: Port SPI NOR framework from Linux
authorVignesh R <vigneshr@ti.com>
Tue, 5 Feb 2019 05:59:17 +0000 (11:29 +0530)
committerJagan Teki <jagan@amarulasolutions.com>
Thu, 7 Feb 2019 10:03:21 +0000 (15:33 +0530)
commit7aeedac01534ab343c28abed60f8e0fb9311bbee
tree4edf0ddcc4e5d17c7054dd3afff08e567991280a
parentce13c19f4cb4bfd24c3c213d3eb9ad86b2c4b91b
mtd: spi: Port SPI NOR framework from Linux

Current U-Boot SPI NOR support (sf layer) is quite outdated as it does not
support 4 byte addressing opcodes, SFDP table parsing and different types of
quad mode enable sequences. Many newer flashes no longer support BANK
registers used by sf layer to a access >16MB of flash address space.
So, sync SPI NOR framework from Linux v4.19 that supports all the
above features. Start with basic sync up that brings in basic framework
subsequent commits will bring in more features.

Signed-off-by: Vignesh R <vigneshr@ti.com>
Tested-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Tested-by: Stefan Roese <sr@denx.de>
Tested-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>
Tested-by: Jagan Teki <jagan@amarulasolutions.com> #zynq-microzed
drivers/mtd/spi/spi-nor-core.c [new file with mode: 0644]
include/linux/mtd/cfi.h [new file with mode: 0644]
include/linux/mtd/spi-nor.h [new file with mode: 0644]