diff options
author | Andres Salomon <dilinger@queued.net> | 2008-04-28 05:14:57 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-28 11:58:36 -0400 |
commit | fa20c8a6e520d9ccd68c8101155ffdbc19c977c3 (patch) | |
tree | a5ffc4f1ae08f7be8a2cb0cdbea7bbf9d64c945f /drivers/video/geode/display_gx.c | |
parent | 0a5e79098799a4bead070a9bd7f1a2213ba5eef5 (diff) |
gxfb: replace FBSIZE config option with a module parameter
Use a command line option (vram) rather than hardcoding the vram size. LxFB
already does this; it's useful for machines that can't query the BIOS for fb
size. This patch originated from David Woodhouse, was modified by Jordan
Crouse, and was then modified further by me.
This also adds some gxfb documentation in Documentation/fb.
Signed-off-by: Andres Salomon <dilinger@debian.org>
Cc: Jordan Crouse <jordan.crouse@amd.com>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video/geode/display_gx.c')
-rw-r--r-- | drivers/video/geode/display_gx.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/video/geode/display_gx.c b/drivers/video/geode/display_gx.c index 0f16e4bffc6c..8cd75725a31b 100644 --- a/drivers/video/geode/display_gx.c +++ b/drivers/video/geode/display_gx.c | |||
@@ -21,12 +21,6 @@ | |||
21 | #include "geodefb.h" | 21 | #include "geodefb.h" |
22 | #include "display_gx.h" | 22 | #include "display_gx.h" |
23 | 23 | ||
24 | #ifdef CONFIG_FB_GEODE_GX_SET_FBSIZE | ||
25 | unsigned int gx_frame_buffer_size(void) | ||
26 | { | ||
27 | return CONFIG_FB_GEODE_GX_FBSIZE; | ||
28 | } | ||
29 | #else | ||
30 | unsigned int gx_frame_buffer_size(void) | 24 | unsigned int gx_frame_buffer_size(void) |
31 | { | 25 | { |
32 | unsigned int val; | 26 | unsigned int val; |
@@ -41,7 +35,6 @@ unsigned int gx_frame_buffer_size(void) | |||
41 | val = (unsigned int)(inw(0xAC1E)) & 0xFFl; | 35 | val = (unsigned int)(inw(0xAC1E)) & 0xFFl; |
42 | return (val << 19); | 36 | return (val << 19); |
43 | } | 37 | } |
44 | #endif | ||
45 | 38 | ||
46 | int gx_line_delta(int xres, int bpp) | 39 | int gx_line_delta(int xres, int bpp) |
47 | { | 40 | { |