changeset 2134:27bfb445ca85

Fully enabled new logic
author nick
date Mon, 08 Oct 2001 09:02:24 +0000
parents 96d1926373a1
children fcf5bd49c68f
files drivers/radeon/radeonfb.c
diffstat 1 files changed, 3 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/drivers/radeon/radeonfb.c	Mon Oct 08 08:46:13 2001 +0000
+++ b/drivers/radeon/radeonfb.c	Mon Oct 08 09:02:24 2001 +0000
@@ -2012,7 +2012,7 @@
 			      (useable_precision << 16) |
 			      (rinfo->ram.rloop << 20));
 	save->dda_on_off = (ron << 16) | roff;
-	return 0;
+	return 1;
 }
 
 /*
@@ -2055,7 +2055,7 @@
     prim_mon = PRIMARY_MONITOR(rinfo);
     if (((prim_mon == MT_DFP) || (prim_mon == MT_LCD)))
     {
-        radeon_init_fp_regs(rinfo, save, mode);
+/*        radeon_init_fp_regs(rinfo, save, mode);*/
     }
 
 RTRACE("radeonfb: radeon_init_mode returns SUCCESS\n"); 
@@ -3142,7 +3142,7 @@
 static int radeon_load_video_mode (struct radeonfb_info *rinfo,
                                     struct fb_var_screeninfo *mode)
 {
-/*
+
 	struct radeon_regs newmode;
 
 RTRACE("radeonfb: radeon_load_video_mode is called\n"); 
@@ -3152,16 +3152,6 @@
 	radeon_write_mode(rinfo, &newmode);
 	radeonfb_blank(VESA_NO_BLANKING,&rinfo->info);
 	return 0;
-*/
-	struct radeon_regs newmode;
-
-radeon_init_common_regs(rinfo,&newmode);
-radeon_init_crtc_regs(rinfo,&newmode,mode);
-radeon_init_pll_regs(rinfo,&newmode,mode);
-radeon_init_dda_regs(rinfo,&newmode,mode);
-	/* do it! */
-	radeon_write_mode (rinfo, &newmode);
-	return 0;
 }
 
 static void radeon_write_mode (struct radeonfb_info *rinfo,