From 8d41ad83befa12b905bdde5fb853898c3569f0e9 Mon Sep 17 00:00:00 2001 From: "Ronald G. Minnich" Date: Thu, 11 Nov 2004 14:04:25 +0000 Subject: in loglevel.h, if ASM_CONSOLE_LOGLEVEL is defined, don't try to set it. Set adl855pc ROM_SIZE to 1M Other minor debug prints until we get this fixed. We're almost as far along as we were before the Change :-) git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1780 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/southbridge/intel/i82801dbm/i82801dbm_early_smbus.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/southbridge/intel/i82801dbm') diff --git a/src/southbridge/intel/i82801dbm/i82801dbm_early_smbus.c b/src/southbridge/intel/i82801dbm/i82801dbm_early_smbus.c index 05ad2d7b5c..82bcf761b9 100644 --- a/src/southbridge/intel/i82801dbm/i82801dbm_early_smbus.c +++ b/src/southbridge/intel/i82801dbm/i82801dbm_early_smbus.c @@ -105,7 +105,9 @@ static int smbus_read_byte(unsigned device, unsigned address) unsigned char global_status_register; unsigned char byte; +print_err("smbus_read_byte\r\n"); if (smbus_wait_until_ready() < 0) { + print_err_hex8(-2); return -2; } @@ -129,11 +131,13 @@ static int smbus_read_byte(unsigned device, unsigned address) outb((inb(SMBUS_IO_BASE + SMBHSTCTL) | 0x40), SMBUS_IO_BASE + SMBHSTCTL); /* poll for it to start */ if (smbus_wait_until_active() < 0) { + print_err_hex8(-4); return -4; } /* poll for transaction completion */ if (smbus_wait_until_done() < 0) { + print_err_hex8(-3); return -3; } @@ -143,8 +147,12 @@ static int smbus_read_byte(unsigned device, unsigned address) byte = inb(SMBUS_IO_BASE + SMBHSTDAT0); if (global_status_register != 2) { + print_err_hex8(-1); return -1; } + print_err("smbus_read_byte: "); + print_err_hex32(device); print_err(" ad "); print_err_hex32(address); + print_err("value "); print_err_hex8(byte); print_err("\r\n"); return byte; } #if 0 -- cgit v1.2.3