mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Steffen Trumtrar <s.trumtrar@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Subject: [PATCH 0/9] Socfpga: QSPI support
Date: Fri,  6 Mar 2015 17:25:14 +0100	[thread overview]
Message-ID: <1425659123-5365-1-git-send-email-s.trumtrar@pengutronix.de> (raw)

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.
A next step would be to update the m25p80 driver, as both share a lot of code.
In linux this migration is already done.

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.

Regards,
Steffen

Steffen Trumtrar (9):
  mtd: spi-nor: add SPI-NOR framework
  mtd: spi-nor: enable quadspi for n25q00/n25q256a
  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
  ARM: socfpga: update defconfigs

 Documentation/boards/socfpga.rst                  |   56 +-
 arch/arm/configs/socfpga-xload_defconfig          |    3 +-
 arch/arm/configs/socfpga_defconfig                |   77 +-
 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/spi-nor/Kconfig                       |   15 +
 drivers/mtd/spi-nor/Makefile                      |    2 +
 drivers/mtd/spi-nor/cadence-quadspi.c             | 1193 +++++++++++++++++++++
 drivers/mtd/spi-nor/spi-nor.c                     | 1143 ++++++++++++++++++++
 include/linux/mod_devicetable.h                   |    7 +
 include/linux/mtd/spi-nor.h                       |  204 ++++
 include/platform_data/cadence_qspi.h              |    9 +
 19 files changed, 2808 insertions(+), 44 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

             reply	other threads:[~2015-03-06 16:25 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-06 16:25 Steffen Trumtrar [this message]
2015-03-06 16:25 ` [PATCH 1/9] mtd: spi-nor: add SPI-NOR framework Steffen Trumtrar
2015-03-09 11:12   ` Sascha Hauer
2015-03-06 16:25 ` [PATCH 2/9] mtd: spi-nor: enable quadspi for n25q00/n25q256a Steffen Trumtrar
2015-03-06 16:25 ` [PATCH 3/9] mtd: spi-nor: add cadence quadspi driver Steffen Trumtrar
2015-03-06 16:25 ` [PATCH 4/9] ARM: dts: socfpga: add qspi node Steffen Trumtrar
2015-03-09 11:13   ` Sascha Hauer
2015-03-06 16:25 ` [PATCH 5/9] ARM: socfpga: socdk add qspi flash Steffen Trumtrar
2015-03-06 16:25 ` [PATCH 6/9] ARM: socfpga: socrates: " Steffen Trumtrar
2015-03-06 16:25 ` [PATCH 7/9] ARM: socfpga: sockit: " Steffen Trumtrar
2015-03-06 16:25 ` [PATCH 8/9] ARM: socfpga: xload: support qspi bootsource Steffen Trumtrar
2015-03-06 16:25 ` [PATCH 9/9] ARM: socfpga: update defconfigs Steffen Trumtrar
2015-03-09 11:14 ` [PATCH 0/9] Socfpga: QSPI support Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1425659123-5365-1-git-send-email-s.trumtrar@pengutronix.de \
    --to=s.trumtrar@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox