spi: sirf: add support for USP-based SPI
Subsystems (2)
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
@@ -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
A message that is not in the archive (sent off-list or not yet received): 1432046472-2954-1-git-send-email-21cnbao-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Mark Brown
AppliedQuoted 5 lines · Barry Song
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.
Applied, thanks.