mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH v2 0/8] Socfpga: QSPI support
@ 2015-05-28 15:55 Steffen Trumtrar
  2015-05-28 15:56 ` [PATCH v2 1/8] mtd: spi-nor: add SPI-NOR framework Steffen Trumtrar
                   ` (8 more replies)
  0 siblings, 9 replies; 13+ messages in thread
From: Steffen Trumtrar @ 2015-05-28 15:55 UTC (permalink / raw)
  To: barebox; +Cc: Steffen Trumtrar

Hi!

This series adds support for reading,writing and booting from Quad SPI
flash chips on the SoCFPFGA platform.

The driver is based on a patch for linux, which is still in development.
As this driver uses the spi-nor framework, this is imported into barebox, too.
To deduplicate the code base, the m25p80 is also converted to use the spi-nor
framework.

With the QSPI driver in place, support for booting from it is also added.
As the preloader barebox doesn't have a devicetree to go from, the driver doesn't
touch the registers that have already been set up successfully by the Boot ROM code.
If there ever is any other user of the Cadence QSPI core, that does not have a
devicetree to probe from, platform code might have to be added for this initialization.
As there isn't at the moment, I chose to not bother with this.

The cadence-qspi was tested on the Socrates, Sockit and Socdk.
The m25p80 was tested as "m25p80" on a Phycore AM335x SOM.

Regards,
Steffen

Steffen Trumtrar (8):
  mtd: spi-nor: add SPI-NOR framework
  mtd: spi-nor: add cadence quadspi driver
  ARM: dts: socfpga: add qspi node
  ARM: socfpga: socdk add qspi flash
  ARM: socfpga: socrates: add qspi flash
  ARM: socfpga: sockit: add qspi flash
  ARM: socfpga: xload: support qspi bootsource
  mtd: m25p80: use the SPI nor framework

 Documentation/boards/socfpga.rst                  |   56 +-
 arch/arm/dts/socfpga.dtsi                         |   15 +
 arch/arm/dts/socfpga_cyclone5_socdk.dts           |   21 +
 arch/arm/dts/socfpga_cyclone5_sockit.dts          |   20 +
 arch/arm/dts/socfpga_cyclone5_socrates.dts        |   20 +
 arch/arm/mach-socfpga/include/mach/generic.h      |    5 +
 arch/arm/mach-socfpga/include/mach/socfpga-regs.h |    2 +
 arch/arm/mach-socfpga/xload.c                     |   58 +-
 drivers/mtd/Kconfig                               |    1 +
 drivers/mtd/Makefile                              |    1 +
 drivers/mtd/devices/Kconfig                       |    2 +-
 drivers/mtd/devices/m25p80.c                      |  998 +++--------------
 drivers/mtd/spi-nor/Kconfig                       |   15 +
 drivers/mtd/spi-nor/Makefile                      |    2 +
 drivers/mtd/spi-nor/cadence-quadspi.c             | 1211 +++++++++++++++++++++
 drivers/mtd/spi-nor/spi-nor.c                     | 1148 +++++++++++++++++++
 include/linux/mod_devicetable.h                   |    7 +
 include/linux/mtd/spi-nor.h                       |  204 ++++
 include/platform_data/cadence_qspi.h              |    9 +
 19 files changed, 2955 insertions(+), 840 deletions(-)
 create mode 100644 drivers/mtd/spi-nor/Kconfig
 create mode 100644 drivers/mtd/spi-nor/Makefile
 create mode 100644 drivers/mtd/spi-nor/cadence-quadspi.c
 create mode 100644 drivers/mtd/spi-nor/spi-nor.c
 create mode 100644 include/linux/mtd/spi-nor.h
 create mode 100644 include/platform_data/cadence_qspi.h

-- 
2.1.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2015-06-17  6:05 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-28 15:55 [PATCH v2 0/8] Socfpga: QSPI support Steffen Trumtrar
2015-05-28 15:56 ` [PATCH v2 1/8] mtd: spi-nor: add SPI-NOR framework Steffen Trumtrar
2015-05-28 15:56 ` [PATCH v2 2/8] mtd: spi-nor: add cadence quadspi driver Steffen Trumtrar
2015-05-28 15:56 ` [PATCH v2 3/8] ARM: dts: socfpga: add qspi node Steffen Trumtrar
2015-05-28 15:56 ` [PATCH v2 4/8] ARM: socfpga: socdk add qspi flash Steffen Trumtrar
2015-05-28 15:56 ` [PATCH v2 5/8] ARM: socfpga: socrates: " Steffen Trumtrar
2015-05-28 15:56 ` [PATCH v2 6/8] ARM: socfpga: sockit: " Steffen Trumtrar
2015-05-28 15:56 ` [PATCH v2 7/8] ARM: socfpga: xload: support qspi bootsource Steffen Trumtrar
2015-05-28 15:56 ` [PATCH v2 8/8] mtd: m25p80: use the SPI nor framework Steffen Trumtrar
2015-06-16  5:48   ` Antony Pavlov
2015-06-17  6:05     ` Sascha Hauer
2015-05-29  7:25 ` [PATCH v2 0/8] Socfpga: QSPI support Sascha Hauer
2015-05-29  7:49   ` Steffen Trumtrar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox