aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/ps3
diff options
context:
space:
mode:
authorGeert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>2007-06-15 18:05:38 -0400
committerPaul Mackerras <paulus@samba.org>2007-06-28 05:16:42 -0400
commit9e6b99bd4494dadebb189d2db4d1f55ae726b0bb (patch)
tree327eed606e5ff03d898d516f8728cbfb79672724 /arch/powerpc/platforms/ps3
parent13a5e30cf7407415387b5592b15ef4b352d28283 (diff)
[POWERPC] PS3: Frame buffer system-bus rework
Convert the ps3fb device from a platform device to a PS3 system bus device. Fix the remove and shutdown methods to support kexec and to make ps3fb a loadable module. Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com> Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/platforms/ps3')
-rw-r--r--arch/powerpc/platforms/ps3/setup.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/powerpc/platforms/ps3/setup.c b/arch/powerpc/platforms/ps3/setup.c
index 96ad4263bd29..ba38319ed8af 100644
--- a/arch/powerpc/platforms/ps3/setup.c
+++ b/arch/powerpc/platforms/ps3/setup.c
@@ -107,7 +107,7 @@ static void ps3_panic(char *str)
107 while(1); 107 while(1);
108} 108}
109 109
110#ifdef CONFIG_FB_PS3 110#if defined(CONFIG_FB_PS3) || defined(CONFIG_FB_PS3_MODULE)
111static void prealloc(struct ps3_prealloc *p) 111static void prealloc(struct ps3_prealloc *p)
112{ 112{
113 if (!p->size) 113 if (!p->size)
@@ -125,10 +125,11 @@ static void prealloc(struct ps3_prealloc *p)
125} 125}
126 126
127struct ps3_prealloc ps3fb_videomemory = { 127struct ps3_prealloc ps3fb_videomemory = {
128 .name = "ps3fb videomemory", 128 .name = "ps3fb videomemory",
129 .size = CONFIG_FB_PS3_DEFAULT_SIZE_M*1024*1024, 129 .size = CONFIG_FB_PS3_DEFAULT_SIZE_M*1024*1024,
130 .align = 1024*1024 /* the GPU requires 1 MiB alignment */ 130 .align = 1024*1024 /* the GPU requires 1 MiB alignment */
131}; 131};
132EXPORT_SYMBOL_GPL(ps3fb_videomemory);
132#define prealloc_ps3fb_videomemory() prealloc(&ps3fb_videomemory) 133#define prealloc_ps3fb_videomemory() prealloc(&ps3fb_videomemory)
133 134
134static int __init early_parse_ps3fb(char *p) 135static int __init early_parse_ps3fb(char *p)