Skip to contentSkip to conversation

spi: sirf: add support for USP-based SPI

PATCH Applied Barry Song 2 participants 2 messages May 19, 2015 – May 20, 2015 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

Barry Song

author
#0 lore raw

PATCH v3 1/1 spi: sirf: add support for USP-based SPI

From: Qipan Li <[email protected]>

USP is a general purpose serial port in SiRFSoC, which can work as SPI. the most data flow of USP and pure SPI is same with main differences in registers layout.
this patch moves registers layout to private data, and use flags to differentiate other minor differences between prima2-spi, prima2-usp and atlas7-usp for hardware configuration.

---
-v3: rebase againest spi tree

 Documentation/devicetree/bindings/spi/spi-sirf.txt |   3 +-
 drivers/spi/spi-sirf.c                             | 792 +++++++++++++++------
 2 files changed, 586 insertions(+), 209 deletions(-)
Documentation/devicetree/bindings/spi/spi-sirf.txt +2 -1
index 4c7adb8f..ddd78ff 100644
@@ -1,7 +1,8 @@
 * CSR SiRFprimaII Serial Peripheral Interface
 
 Required properties:
-- compatible : Should be "sirf,prima2-spi"
+- compatible : Should be "sirf,prima2-spi", "sirf,prima2-usp"
+               or "sirf,atlas7-usp"
 - reg : Offset and length of the register set for the device
 - interrupts : Should contain SPI interrupt
 - resets: phandle to the reset controller asserting this device in
drivers/spi/spi-sirf.c +584 -208

1,067 lines not on this page · raw message

Signature · 6 lines
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html