From 6e9275ea26495089e3e4ab13728f61d659eba6c1 Mon Sep 17 00:00:00 2001 From: hcg Date: Wed, 18 Mar 2009 15:59:08 +0000 Subject: Backport of ps3vram from 2.6.29 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14940 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- ...am-Add-ps3vram-driver-for-accessing-video.patch | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 target/linux/ps3/patches-2.6.28/0005-mtd-ps3vram-Add-ps3vram-driver-for-accessing-video.patch (limited to 'target/linux/ps3/patches-2.6.28/0005-mtd-ps3vram-Add-ps3vram-driver-for-accessing-video.patch') diff --git a/target/linux/ps3/patches-2.6.28/0005-mtd-ps3vram-Add-ps3vram-driver-for-accessing-video.patch b/target/linux/ps3/patches-2.6.28/0005-mtd-ps3vram-Add-ps3vram-driver-for-accessing-video.patch new file mode 100644 index 000000000..3c5efa618 --- /dev/null +++ b/target/linux/ps3/patches-2.6.28/0005-mtd-ps3vram-Add-ps3vram-driver-for-accessing-video.patch @@ -0,0 +1,29 @@ +From cffb4add03b1fc83026b06dc3664279cfbf70155 Mon Sep 17 00:00:00 2001 +From: Jim Paris +Date: Tue, 6 Jan 2009 11:32:10 +0000 +Subject: [PATCH] mtd/ps3vram: Add ps3vram driver for accessing video RAM as MTD + +Add ps3vram driver, which exposes unused video RAM on the PS3 as a MTD +device suitable for storage or swap. Fast data transfer is achieved +using a local cache in system RAM and DMA transfers via the GPU. + +Signed-off-by: Vivien Chappelier +Signed-off-by: Jim Paris +Acked-by: Geoff Levand +Acked-by: David Woodhouse +Signed-off-by: Benjamin Herrenschmidt +--- + arch/powerpc/include/asm/ps3.h | 1 + + +diff --git a/arch/powerpc/include/asm/ps3.h b/arch/powerpc/include/asm/ps3.h +index cff30c0..66b6505 100644 +--- a/arch/powerpc/include/asm/ps3.h ++++ b/arch/powerpc/include/asm/ps3.h +@@ -320,6 +320,7 @@ enum ps3_match_id { + + enum ps3_match_sub_id { + PS3_MATCH_SUB_ID_GPU_FB = 1, ++ PS3_MATCH_SUB_ID_GPU_RAMDISK = 2, + }; + + #define PS3_MODULE_ALIAS_EHCI "ps3:1:0" -- cgit v1.2.3