Skip to contentSkip to conversation

powerpc: add ps3 platform spu support

PATCH In review Geoff Levand 1 participant 1 message Nov 22, 2006

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

PATCH 12/14 powerpc: add ps3 platform spu support

From: Geoff Levand <[email protected]>

Adds spu support for the PS3 platform.

---

This patch requires my previous patch which split the existing spu support into platform specific and platform independent parts.

 arch/powerpc/platforms/ps3/Makefile   |    2 
 arch/powerpc/platforms/ps3/platform.h |    8 
 arch/powerpc/platforms/ps3/spu.c      |  613 ++++++++++++++++++++++++++++++++++
 3 files changed, 623 insertions(+)
arch/powerpc/platforms/ps3/Makefile +2 -0
Index: cell--common--6/arch/powerpc/platforms/ps3/Makefile
===================================================================
@@ -1,2 +1,4 @@
 obj-y += setup.o mm.o smp.o time.o hvcall.o htab.o repository.o
 obj-y += interrupt.o exports.o os-area.o
+
+obj-$(CONFIG_SPU_BASE) += spu.o
arch/powerpc/platforms/ps3/platform.h +8 -0
Index: cell--common--6/arch/powerpc/platforms/ps3/platform.h
===================================================================
@@ -57,4 +57,12 @@
 int __init ps3_os_area_init(void);
 u64 ps3_os_area_rtc_diff(void);
 
+/* spu */
+
+#if defined(CONFIG_SPU_BASE)
+void ps3_spu_set_platform (void);
+#else
+static inline void ps3_spu_set_platform (void) {}
+#endif
+
 #endif
arch/powerpc/platforms/ps3/spu.c new file +613 -0

613 lines not on this page · raw message