Skip to content

Commit

Permalink
[POWERPC] ps3: add support for ps3 platform
Browse files Browse the repository at this point in the history
Adds the core platform support for the PS3 game console and other devices
using the PS3 hypervisor.

Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
  • Loading branch information
Geoff Levand authored and Paul Mackerras committed Dec 4, 2006
1 parent a985239 commit f58a9d1
Show file tree
Hide file tree
Showing 11 changed files with 1,624 additions and 1 deletion.
7 changes: 7 additions & 0 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -2443,6 +2443,13 @@ M: promise@pnd-pc.demon.co.uk
W: http://www.pnd-pc.demon.co.uk/promise/
S: Maintained

PS3 PLATFORM SUPPORT
P: Geoff Levand
M: geoffrey.levand@am.sony.com
L: linuxppc-dev@ozlabs.org
L: cbe-oss-dev@ozlabs.org
S: Supported

PVRUSB2 VIDEO4LINUX DRIVER
P: Mike Isely
M: isely@pobox.com
Expand Down
11 changes: 10 additions & 1 deletion arch/powerpc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,14 @@ config UDBG_RTAS_CONSOLE
depends on PPC_RTAS
default n

config PPC_PS3
bool "Sony PS3"
depends on PPC_MULTIPLATFORM && PPC64
select PPC_CELL
help
This option enables support for the Sony PS3 game console
and other platforms using the PS3 hypervisor.

config XICS
depends on PPC_PSERIES
bool
Expand Down Expand Up @@ -647,6 +655,7 @@ source arch/powerpc/platforms/85xx/Kconfig
source arch/powerpc/platforms/86xx/Kconfig
source arch/powerpc/platforms/8xx/Kconfig
source arch/powerpc/platforms/cell/Kconfig
source arch/powerpc/platforms/ps3/Kconfig

menu "Kernel options"

Expand Down Expand Up @@ -917,7 +926,7 @@ config MCA

config PCI
bool "PCI support" if 40x || CPM2 || PPC_83xx || PPC_85xx || PPC_86xx \
|| PPC_MPC52xx || (EMBEDDED && PPC_ISERIES) || MPC7448HPC2
|| PPC_MPC52xx || (EMBEDDED && PPC_ISERIES) || MPC7448HPC2 || PPC_PS3
default y if !40x && !CPM2 && !8xx && !APUS && !PPC_83xx \
&& !PPC_85xx && !PPC_86xx
default PCI_PERMEDIA if !4xx && !CPM2 && !8xx && APUS
Expand Down
1 change: 1 addition & 0 deletions arch/powerpc/platforms/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ obj-$(CONFIG_PPC_ISERIES) += iseries/
obj-$(CONFIG_PPC_MAPLE) += maple/
obj-$(CONFIG_PPC_PASEMI) += pasemi/
obj-$(CONFIG_PPC_CELL) += cell/
obj-$(CONFIG_PS3) += ps3/
obj-$(CONFIG_EMBEDDED6xx) += embedded6xx/
32 changes: 32 additions & 0 deletions arch/powerpc/platforms/ps3/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
menu "PS3 Platform Options"
depends on PPC_PS3

config PS3_HTAB_SIZE
depends on PPC_PS3
int "PS3 Platform pagetable size"
range 18 20
default 20
help
This option is only for experts who may have the desire to fine
tune the pagetable size on their system. The value here is
expressed as the log2 of the page table size. Valid values are
18, 19, and 20, corresponding to 256KB, 512KB and 1MB respectively.

If unsure, choose the default (20) with the confidence that your
system will have optimal runtime performance.

config PS3_DYNAMIC_DMA
depends on PPC_PS3 && EXPERIMENTAL
bool "PS3 Platform dynamic DMA page table management"
default n
help
This option will enable kernel support to take advantage of the
per device dynamic DMA page table management provided by the Cell
processor's IO Controller. This support incurs some runtime
overhead and also slightly increases kernel memory usage. The
current implementation should be considered experimental.

This support is mainly for Linux kernel development. If unsure,
say N.

endmenu
2 changes: 2 additions & 0 deletions arch/powerpc/platforms/ps3/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
obj-y += setup.o mm.o smp.o time.o hvcall.o htab.o repository.o
obj-y += interrupt.o exports.o
Loading

0 comments on commit f58a9d1

Please sign in to comment.