add some debugging

git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1584 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Stefan Reinauer 2004-05-28 14:55:28 +00:00
parent d67e76568a
commit 319d6730e9
1 changed files with 10 additions and 2 deletions

View File

@ -777,6 +777,7 @@ static int init9880(void)
//if chip revB //if chip revB
if (CHIPREV == 0x02) { if (CHIPREV == 0x02) {
printk_debug("blade3d: chip revision B\n");
outp(Port_CRX, 0xc0); outp(Port_CRX, 0xc0);
outp(Port_CRX + 1, 0x00); outp(Port_CRX + 1, 0x00);
} }
@ -802,6 +803,8 @@ static void config_OEM_regs(void)
lpMode3_temp = &Mode3_temp[0]; lpMode3_temp = &Mode3_temp[0];
lpInit_reg = &Init_reg[0]; lpInit_reg = &Init_reg[0];
printk_debug("blade3d: config_OEM_regs()\n");
outp(Port_GRX, 0x24); outp(Port_GRX, 0x24);
outp(Port_GRX + 1, 0xe0); outp(Port_GRX + 1, 0xe0);
//MCLK VCLK to 16 bit //MCLK VCLK to 16 bit
@ -937,12 +940,14 @@ static void init_SGRAM(void)
outp(Port_CRX + 1, Temp & 0x08); outp(Port_CRX + 1, Temp & 0x08);
} }
} //SGRAM } else { //SGRAM
printk_debug("blade3d: No SGRAM found.\n");
}
} }
static void config_video_memory(void) static void config_video_memory(void)
{ {
printk_debug("blade3d: Error: no video memory init\n");
} }
static void set_video_mode(void) static void set_video_mode(void)
@ -952,6 +957,7 @@ static void set_video_mode(void)
lpDef_Reg_struct lpMode3_reg; lpDef_Reg_struct lpMode3_reg;
lpMode3_reg = &Mode3_reg[0]; lpMode3_reg = &Mode3_reg[0];
printk_debug("blade3d: setting video mode\n");
outp(0x3c2, 0x67); outp(0x3c2, 0x67);
for (i = 0; i < Length_Mode3_reg; i++) { for (i = 0; i < Length_Mode3_reg; i++) {
if (lpMode3_reg[i].rPort == Port_BRX) { if (lpMode3_reg[i].rPort == Port_BRX) {
@ -974,6 +980,7 @@ static void set_video_mode(void)
static void set_font(void) static void set_font(void)
{ {
printk_debug("blade3d: setting font (not implemented)\n");
} }
static void clear_MEM(void) static void clear_MEM(void)
@ -999,6 +1006,7 @@ static void clear_MEM(void)
static void trident_blade3d_init(struct device *dev) static void trident_blade3d_init(struct device *dev)
{ {
printk_info("blade3d: initializing video card\n");
init9880(); init9880();
} }