]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit78416e2c8d02c3d4d7bf2631c1213248b8a11d89
tree4edf0ddcc4e5d17c7054dd3afff08e567991280a
parent2aada565f04a21b399218aac002e4a8c3d1aed20
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]