Skip to contentSkip to conversation

86xx: mpc8610_hpcd: add support for SPI and MMC-over-SPI

PATCH In review Anton Vorontsov 1 participant 1 message May 16, 2008

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 2/4 86xx: mpc8610_hpcd: add support for SPI and MMC-over-SPI

This is mpc832x-like MMC setup, but with a quirk to work around PIXIS' CS line weirdness.

Probably someday we'll want to convert spi_mpc83xx driver into OF driver and place the MMC node into device tree. But this will need great efforts for SPI (alike I2C work we've seen lately), plus converting some PIXIS code into OF GPIO controller(s).

---
 arch/powerpc/boot/dts/mpc8610_hpcd.dts     |    9 ++++
 arch/powerpc/platforms/86xx/mpc8610_hpcd.c |   63 +++++++++++++++++++++++++--
 2 files changed, 67 insertions(+), 5 deletions(-)
arch/powerpc/boot/dts/mpc8610_hpcd.dts +9 -0
index 44e9287..ed20ac4 100644
@@ -193,6 +193,15 @@
 			reg = <0xe4000 0x100>;
 		};
 
+		spi@7000 {
+			compatible = "fsl,mpc8610-spi", "fsl,spi";
+			cell-index = <0>;
+			reg = <0x7000 0x40>;
+			interrupts = <59 2>;
+			interrupt-parent = <&mpic>;
+			mode = "cpu";
+		};
+
 		i2s@16000 {
 			compatible = "fsl,mpc8610-ssi";
 			cell-index = <0>;
arch/powerpc/platforms/86xx/mpc8610_hpcd.c +58 -5

81 lines not on this page · raw message

Signature · 1 line
1.5.5.1