mtd: spi-nor: Add support for S3AN spi-nor devices
authorRicardo Ribalda <ricardo.ribalda@gmail.com>
Fri, 2 Dec 2016 11:31:44 +0000 (12:31 +0100)
committerCyrille Pitchen <cyrille.pitchen@atmel.com>
Fri, 10 Feb 2017 12:54:16 +0000 (13:54 +0100)
commite99ca98f1d7190c16601b00d0c96212d7c00577d
tree07759ffe6d31b4379ca0ef3287883e476f33dc4b
parent0cf1725676a97fc8b4dd88794ea0acc1325b4fb7
mtd: spi-nor: Add support for S3AN spi-nor devices

Xilinx Spartan-3AN FPGAs contain an In-System Flash where they keep
their configuration data and (optionally) some user data.

The protocol of this flash follows most of the spi-nor standard. With
the following differences:

- Page size might not be a power of two.
- The address calculation (default addressing mode).
- The spi nor commands used.

Protocol is described on Xilinx User Guide UG333

Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Cc: Boris Brezillon <boris.brezillon@free-electrons.com>
Cc: Brian Norris <computersforpeace@gmail.com>
Cc: Marek Vasut <marek.vasut@gmail.com>
Reviewed-by: Marek Vasut <marek.vasut@gmail.com>
Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com>
drivers/mtd/spi-nor/spi-nor.c
include/linux/mtd/spi-nor.h