diff options
author | Ronald G. Minnich <rminnich@gmail.com> | 2004-11-11 14:04:25 +0000 |
---|---|---|
committer | Ronald G. Minnich <rminnich@gmail.com> | 2004-11-11 14:04:25 +0000 |
commit | 8d41ad83befa12b905bdde5fb853898c3569f0e9 (patch) | |
tree | 2400e2d1093cdae54c4fa51f427eb451367ac2bf /src/southbridge/intel/i82801dbm | |
parent | 029517c77a1d756ccbb196b5178ba2a1cf952c97 (diff) | |
download | coreboot-8d41ad83befa12b905bdde5fb853898c3569f0e9.tar.xz |
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
Diffstat (limited to 'src/southbridge/intel/i82801dbm')
-rw-r--r-- | src/southbridge/intel/i82801dbm/i82801dbm_early_smbus.c | 8 |
1 files changed, 8 insertions, 0 deletions
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 |