cell: add ps3 platform spu support
PATCH 15/16 cell: add ps3 platform spu support
Adds spu support for the PS3 Platform.
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/ps3pf/Makefile | 3 arch/powerpc/platforms/ps3pf/platform.h | 8 arch/powerpc/platforms/ps3pf/setup.c | 2 arch/powerpc/platforms/ps3pf/spu.c | 625 ++++++++++++++++++++++++++++++++ 4 files changed, 638 insertions(+)
arch/powerpc/platforms/ps3pf/Makefile +3 -0
@@ -1,2 +1,5 @@ obj-$(CONFIG_PS3PF) += setup.o mm.o smp.o time.o hvcall.o htab.o repository.o obj-$(CONFIG_PS3PF) += interrupt.o exports.o os-area.o + +spu-base-$(CONFIG_PS3PF) += spu.o +obj-$(CONFIG_SPU_BASE) += $(spu-base-y)
arch/powerpc/platforms/ps3pf/platform.h +8 -0
@@ -56,4 +56,12 @@int __init ps3pf_os_area_init (void );u64 ps3pf_os_area_rtc_diff (void ); +/* spu */ + +#if defined(CONFIG_SPU_BASE ) +void ps3pf_spu_set_platform (void ); +#else +static inline void ps3pf_spu_set_platform (void ) {} +#endif +#endif
arch/powerpc/platforms/ps3pf/setup.c +2 -0
@@ -76,6 +76,8 @@ {pr_debug (" -> %s:%d\n" , __func__, __LINE__); +ps3pf_spu_set_platform (); +ps3pf_map_htab ();#if defined(CONFIG_BLK_DEV_INITRD )
arch/powerpc/platforms/ps3pf/spu.c new file +625 -0
625 lines not on this page · raw message
Quoted 4 lines · Geoff Levand
Adds spu support for the PS3 Platform.
Signed-off-by Geoff Levand <[email protected]>
Acked-by Arnd Bergmann <[email protected]>