comparison drivers/radeon/radeonfb.c @ 2134:27bfb445ca85

Fully enabled new logic
author nick
date Mon, 08 Oct 2001 09:02:24 +0000
parents 96d1926373a1
children fcf5bd49c68f
comparison
equal deleted inserted replaced
2133:96d1926373a1 2134:27bfb445ca85
2010 2010
2011 save->dda_config = (xclk_per_trans_precise | 2011 save->dda_config = (xclk_per_trans_precise |
2012 (useable_precision << 16) | 2012 (useable_precision << 16) |
2013 (rinfo->ram.rloop << 20)); 2013 (rinfo->ram.rloop << 20));
2014 save->dda_on_off = (ron << 16) | roff; 2014 save->dda_on_off = (ron << 16) | roff;
2015 return 0; 2015 return 1;
2016 } 2016 }
2017 2017
2018 /* 2018 /*
2019 static void radeon_init_palette(struct radeon_regs *save) 2019 static void radeon_init_palette(struct radeon_regs *save)
2020 { 2020 {
2053 } 2053 }
2054 /* radeon_init_palete here */ 2054 /* radeon_init_palete here */
2055 prim_mon = PRIMARY_MONITOR(rinfo); 2055 prim_mon = PRIMARY_MONITOR(rinfo);
2056 if (((prim_mon == MT_DFP) || (prim_mon == MT_LCD))) 2056 if (((prim_mon == MT_DFP) || (prim_mon == MT_LCD)))
2057 { 2057 {
2058 radeon_init_fp_regs(rinfo, save, mode); 2058 /* radeon_init_fp_regs(rinfo, save, mode);*/
2059 } 2059 }
2060 2060
2061 RTRACE("radeonfb: radeon_init_mode returns SUCCESS\n"); 2061 RTRACE("radeonfb: radeon_init_mode returns SUCCESS\n");
2062 return 1; 2062 return 1;
2063 } 2063 }
3140 } 3140 }
3141 3141
3142 static int radeon_load_video_mode (struct radeonfb_info *rinfo, 3142 static int radeon_load_video_mode (struct radeonfb_info *rinfo,
3143 struct fb_var_screeninfo *mode) 3143 struct fb_var_screeninfo *mode)
3144 { 3144 {
3145 /* 3145
3146 struct radeon_regs newmode; 3146 struct radeon_regs newmode;
3147 3147
3148 RTRACE("radeonfb: radeon_load_video_mode is called\n"); 3148 RTRACE("radeonfb: radeon_load_video_mode is called\n");
3149 if(!radeon_init_mode(rinfo, &newmode, mode)) return -1; 3149 if(!radeon_init_mode(rinfo, &newmode, mode)) return -1;
3150 3150
3151 radeonfb_blank(VESA_POWERDOWN,&rinfo->info); 3151 radeonfb_blank(VESA_POWERDOWN,&rinfo->info);
3152 radeon_write_mode(rinfo, &newmode); 3152 radeon_write_mode(rinfo, &newmode);
3153 radeonfb_blank(VESA_NO_BLANKING,&rinfo->info); 3153 radeonfb_blank(VESA_NO_BLANKING,&rinfo->info);
3154 return 0;
3155 */
3156 struct radeon_regs newmode;
3157
3158 radeon_init_common_regs(rinfo,&newmode);
3159 radeon_init_crtc_regs(rinfo,&newmode,mode);
3160 radeon_init_pll_regs(rinfo,&newmode,mode);
3161 radeon_init_dda_regs(rinfo,&newmode,mode);
3162 /* do it! */
3163 radeon_write_mode (rinfo, &newmode);
3164 return 0; 3154 return 0;
3165 } 3155 }
3166 3156
3167 static void radeon_write_mode (struct radeonfb_info *rinfo, 3157 static void radeon_write_mode (struct radeonfb_info *rinfo,
3168 struct radeon_regs *mode) 3158 struct radeon_regs *mode)