diff options
author | Stefan Reinauer <stepan@openbios.org> | 2004-05-28 14:55:28 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2004-05-28 14:55:28 +0000 |
commit | 319d6730e9db850609f75be2b4fdef2a622e04ef (patch) | |
tree | 782408f40ee241de476715897d4e71160970e4c9 /src/drivers | |
parent | d67e76568acff164328467a744a76de62b67f026 (diff) | |
download | coreboot-staging-319d6730e9db850609f75be2b4fdef2a622e04ef.zip coreboot-staging-319d6730e9db850609f75be2b4fdef2a622e04ef.tar.gz |
add some debugging
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1584 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/drivers')
-rw-r--r-- | src/drivers/trident/blade3d/blade3d.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/drivers/trident/blade3d/blade3d.c b/src/drivers/trident/blade3d/blade3d.c index 005aa8c..d2094f2 100644 --- a/src/drivers/trident/blade3d/blade3d.c +++ b/src/drivers/trident/blade3d/blade3d.c @@ -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(); } |