spi: Add support SH Queued SPI driver
PATCH 1/1 spi: Add support SH Queued SPI driver
This patch adds a driver for Renesas SoC's Queued SPI bus. This supports with 8 bits per transfer to use with SPI flash.
--- drivers/spi/Makefile | 1 + drivers/spi/sh_qspi.c | 204 ++++++++++++++++++++++++++++++++++++++++++++++++++ drivers/spi/sh_qspi.h | 56 ++++++++++++++ 3 files changed, 261 insertions(+) create mode 100644 drivers/spi/sh_qspi.c create mode 100644 drivers/spi/sh_qspi.h
drivers/spi/Makefile +1 -0
@@ -33,6 +33,7 @@ COBJS-$(CONFIG_OC_TINY_SPI) += oc_tiny_spi.o COBJS-$(CONFIG_OMAP3_SPI) += omap3_spi.o COBJS-$(CONFIG_SOFT_SPI) += soft_spi.o COBJS-$(CONFIG_SH_SPI) += sh_spi.o +COBJS-$(CONFIG_SH_QSPI) += sh_qspi.o COBJS-$(CONFIG_FSL_ESPI) += fsl_espi.o COBJS-$(CONFIG_FDT_SPI) += fdt_spi.o COBJS-$(CONFIG_TEGRA20_SFLASH) += tegra20_sflash.o
drivers/spi/sh_qspi.c new file +204 -0
204 lines not on this page · raw message
drivers/spi/sh_qspi.h new file +56 -0
56 lines not on this page · raw message
Signature · 1 line
1.8.3.2
PATCH 1/1 spi: Add support SH Queued SPI driver
Quoted 5 lines · Nobuhiro Iwamatsu
This patch adds a driver for Renesas SoC's Queued SPI bus. This supports with 8 bits per transfer to use with SPI flash.
Signed-off-by Kouei Abe <[email protected]>Signed-off-by Nobuhiro Iwamatsu <[email protected]>
[snip]
Quoted 3 lines
+/*
+ *drivers/spi/sh_qspi.c
+ * SH QSPI driver
[snip]
Since "QSPI" also means "Quad SPI", can you please do "SH QSPI (Queued SPI) driver" here and in the header, so it's clear what Q this is?
drivers/spi/sh_qspi.c line 61
Quoted 2 lines
drivers/spi/sh_qspi.c new file +2
-0+/* QSPI initialize */ +sh_qspi_writeb (0x08 , &ss->regs->spcr);
Can you please #define all of these magic numbers?
Thanks.
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130731/e7ef3823/attachment.pgp>
PATCH 1/1 spi: Add support SH Queued SPI driver
Hi,
Thank you for your review.
2013/7/31 Tom Rini <[email protected]>:
Quoted 7 lines · Nobuhiro Iwamatsu
Quoted 6 lines
This patch adds a driver for Renesas SoC's Queued SPI bus. This supports with 8 bits per transfer to use with SPI flash.
Signed-off-by Kouei Abe <[email protected]>Signed-off-by Nobuhiro Iwamatsu <[email protected]>
Quoted 9 lines
[snip]
Quoted 3 lines
+/*
+ *drivers/spi/sh_qspi.c
+ * SH QSPI driver[snip]
Since "QSPI" also means "Quad SPI", can you please do "SH QSPI (Queued SPI) driver" here and in the header, so it's clear what Q this is?
OK, I will fix this.
Quoted 4 lines
drivers/spi/sh_qspi.c line 61
Quoted 2 lines
drivers/spi/sh_qspi.c new file +2
-0+/* QSPI initialize */ +sh_qspi_writeb (0x08 , &ss->regs->spcr);Can you please #define all of these magic numbers?
OK, I will fix this too.
Quoted 2 lines
Thanks.
Best regards,
Nobuhiro
Signature · 1 line
Nobuhiro Iwamatsu