radeonfb: small cleanup of common register init
PATCH 1/1 radeonfb: small cleanup of common register init
Hi !
This patch removes the unused common_regs_m6 and add one more register to be cleared, according to latest XFree code from ATI.
Ben.
drivers/video/aty/radeon_base.c +2 -11
@@ -222,16 +222,7 @@ { I2C_CNTL_1, 0 }, { GEN_INT_CNTL, 0 }, { CAP0_TRIG_CNTL, 0 }, -}; - -static reg_val common_regs_m6[] = { - {OVR_CLR ,0 }, - {OVR_WID_LEFT_RIGHT ,0 }, - {OVR_WID_TOP_BOTTOM ,0 }, - {OV0_SCALE_CNTL ,0 }, - {SUBPIC_CNTL ,0 }, - {GEN_INT_CNTL ,0 }, - {CAP0_TRIG_CNTL ,0 } + { CAP1_TRIG_CNTL, 0 }, };/*
@@ -1230,7 +1221,7 @@radeon_screen_blank (rinfo,VESA_POWERDOWN ); -for (i=0 ; i<9 ; i++) +for (i=0 ; i<10 ; i++)OUTREG (common_regs[i].reg, common_regs[i].val);/* Apply surface registers */
include/video/radeon.h +1 -0
@@ -24,6 +24,7 @@#define AGP_CNTL 0x0174#define BM_STATUS 0x0160#define CAP0_TRIG_CNTL 0x0950 +#define CAP1_TRIG_CNTL 0x09c0#define VIPH_CONTROL 0x0C40#define VENDOR_ID 0x0F00#define DEVICE_ID 0x0F02