aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/geode/video_gx.c
diff options
context:
space:
mode:
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};