[U-Boot] [PATCH v2 0/2] sunxi: DM-based driver for SPI

Philipp Tomsich philipp.tomsich at theobroma-systems.com
Wed Mar 1 21:29:05 UTC 2017


A new iteration of the dual-IO aware device-model based SPI driver
for sunxi (Allwinner SoCs).

As before, this has been tested with dual-IO flashes (Winbond
W25Q80DV) on our A64-uQ7 at up to 100MHz.

Changes in v2:
 * Uses wait_bit instead of readl_poll_... for better readability
 * To address Jagan's concerns regarding the layering violation from
   detecting SPI-NOR transactions and parsing the command-byte to
   detect dual-IO reads, I split this off into a separate patch (to
   make it easier to revert, once the SPI flash subsystem is able to
   handle this for us)---see the commit message for even more info.


Philipp Tomsich (2):
  spi: sunxi_spi: Add DM SPI driver for A31/A80/A64
  sunxi_spi: add support for dual-IO flashes

 drivers/spi/Kconfig     |  14 ++
 drivers/spi/Makefile    |   1 +
 drivers/spi/sunxi_spi.c | 582 ++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 597 insertions(+)
 create mode 100644 drivers/spi/sunxi_spi.c

-- 
1.9.1



More information about the U-Boot mailing list