add some debugging
authorStefan Reinauer <stepan@openbios.org>
Fri, 28 May 2004 14:55:28 +0000 (14:55 +0000)
committerStefan Reinauer <stepan@openbios.org>
Fri, 28 May 2004 14:55:28 +0000 (14:55 +0000)
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1584 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

src/drivers/trident/blade3d/blade3d.c

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