aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/geode/video_gx.c
diff options
context:
space:
mode:
authorAndres Salomon <dilinger@queued.net>2008-04-28 05:15:01 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-04-28 11:58:36 -0400
commitd1b4cc3ec5f8ddbac57ada58cbab36f5a0be38eb (patch)
tree76f9fa67cf3f717f22f1a293a4ca2c23cadc975e /drivers/video/geode/video_gx.c
parent9f1277bd1497858a05a80222a6e98f9c43343491 (diff)
gxfb: stop sharing code with gx1fb
We want to stop sharing stuff with gx1fb; it makes little sense. There were fields in geodefb_par that weren't being used, there was little point to the DC/VP ops callbacks, etc. This implements the following: - Create gxfb_par (based on geodefb_par), place it in gxfb.h - Drop display_gx.h and video_gx.h. The last few patches moved most stuff into gxfb.h anyways, so there was very little left. - Drop the geode_{dc,vid}_ops stuff. Un-static functions, add declarations to gxfb.h. 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/video_gx.c')
-rw-r--r--drivers/video/geode/video_gx.c20
1 files changed, 6 insertions, 14 deletions
diff --git a/drivers/video/geode/video_gx.c b/drivers/video/geode/video_gx.c
index 1e26bc422461..0072d9ec2e24 100644
--- a/drivers/video/geode/video_gx.c
+++ b/drivers/video/geode/video_gx.c
@@ -18,8 +18,6 @@
18#include <asm/msr.h> 18#include <asm/msr.h>
19#include <asm/geode.h> 19#include <asm/geode.h>
20 20
21#include "geodefb.h"
22#include "video_gx.h"
23#include "gxfb.h" 21#include "gxfb.h"
24 22
25 23
@@ -119,7 +117,7 @@ static const struct gx_pll_entry gx_pll_table_14MHz[] = {
119 { 4357, 0, 0x0000057D }, /* 229.5000 */ 117 { 4357, 0, 0x0000057D }, /* 229.5000 */
120}; 118};
121 119
122static void gx_set_dclk_frequency(struct fb_info *info) 120void gx_set_dclk_frequency(struct fb_info *info)
123{ 121{
124 const struct gx_pll_entry *pll_table; 122 const struct gx_pll_entry *pll_table;
125 int pll_table_len; 123 int pll_table_len;
@@ -180,7 +178,7 @@ static void gx_set_dclk_frequency(struct fb_info *info)
180static void 178static void
181gx_configure_tft(struct fb_info *info) 179gx_configure_tft(struct fb_info *info)
182{ 180{
183 struct geodefb_par *par = info->par; 181 struct gxfb_par *par = info->par;
184 unsigned long val; 182 unsigned long val;
185 unsigned long fp; 183 unsigned long fp;
186 184
@@ -235,9 +233,9 @@ gx_configure_tft(struct fb_info *info)
235 write_fp(par, FP_PM, fp); 233 write_fp(par, FP_PM, fp);
236} 234}
237 235
238static void gx_configure_display(struct fb_info *info) 236void gx_configure_display(struct fb_info *info)
239{ 237{
240 struct geodefb_par *par = info->par; 238 struct gxfb_par *par = info->par;
241 u32 dcfg, misc; 239 u32 dcfg, misc;
242 240
243 /* Write the display configuration */ 241 /* Write the display configuration */
@@ -297,9 +295,9 @@ static void gx_configure_display(struct fb_info *info)
297 gx_configure_tft(info); 295 gx_configure_tft(info);
298} 296}
299 297
300static int gx_blank_display(struct fb_info *info, int blank_mode) 298int gx_blank_display(struct fb_info *info, int blank_mode)
301{ 299{
302 struct geodefb_par *par = info->par; 300 struct gxfb_par *par = info->par;
303 u32 dcfg, fp_pm; 301 u32 dcfg, fp_pm;
304 int blank, hsync, vsync; 302 int blank, hsync, vsync;
305 303
@@ -347,9 +345,3 @@ static int gx_blank_display(struct fb_info *info, int blank_mode)
347 345
348 return 0; 346 return 0;
349} 347}
350
351struct geode_vid_ops gx_vid_ops = {
352 .set_dclk = gx_set_dclk_frequency,
353 .configure_display = gx_configure_display,
354 .blank_display = gx_blank_display,
355};