powerpc: add ps3 platform spu support
Subsystems (2)
PATCH 12/14 powerpc: add ps3 platform spu support
From: Geoff Levand <[email protected]>
Adds spu support for the PS3 platform.
Signed-off-by Arnd Bergmann <[email protected]>
Signed-off-by Geoff Levand <[email protected]>
---
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
@@ -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
@@ -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