diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2011-10-17 17:37:45 +0300 |
---|---|---|
committer | Peter Stuge <peter@stuge.se> | 2011-10-20 01:50:11 +0200 |
commit | 2588db496d8037c9e548a9dd75360a3785b0ae7f (patch) | |
tree | db3679de0021d7786828ed28132706775b63ee00 /src | |
parent | 096161a5e44a9104083794c5950ea3cc2108dfb0 (diff) | |
download | coreboot-2588db496d8037c9e548a9dd75360a3785b0ae7f.tar.xz |
i82801dx: Replace romstage printk's
Patch is required to compile this with romcc.
Change-Id: I5c4c0f5b32e5edeb8c48d8455b3493ca79f8b452
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: http://review.coreboot.org/291
Tested-by: build bot (Jenkins)
Reviewed-by: Peter Stuge <peter@stuge.se>
Diffstat (limited to 'src')
-rw-r--r-- | src/southbridge/intel/i82801dx/early_smbus.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/southbridge/intel/i82801dx/early_smbus.c b/src/southbridge/intel/i82801dx/early_smbus.c index f58cd86342..00eaee0f9e 100644 --- a/src/southbridge/intel/i82801dx/early_smbus.c +++ b/src/southbridge/intel/i82801dx/early_smbus.c @@ -41,7 +41,7 @@ static void enable_smbus(void) { device_t dev = PCI_DEV(0x0, 0x1f, 0x3); - printk(BIOS_DEBUG, "SMBus controller enabled\n"); + print_debug("SMBus controller enabled\n"); /* set smbus iobase */ pci_write_config32(dev, 0x20, SMBUS_IO_BASE | 1); /* Set smbus enable */ @@ -117,9 +117,9 @@ static int smbus_read_byte(unsigned device, unsigned address) unsigned char global_status_register; unsigned char byte; - /* printk(BIOS_ERR, "smbus_read_byte\n"); */ + /* print_err("smbus_read_byte\n"); */ if (smbus_wait_until_ready() < 0) { - printk(BIOS_ERR, "SMBUS not ready (%02x)\n", -2); + print_err("SMBUS not ready (-2)\n"); return -2; } @@ -145,13 +145,13 @@ static int smbus_read_byte(unsigned device, unsigned address) SMBUS_IO_BASE + SMBHSTCTL); /* poll for it to start */ if (smbus_wait_until_active() < 0) { - printk(BIOS_ERR, "SMBUS not active (%02x)\n", -4); + print_err("SMBUS not active (-4)\n"); return -4; } /* poll for transaction completion */ if (smbus_wait_until_done() < 0) { - printk(BIOS_ERR, "SMBUS not completed (%02x)\n", -3); + print_err("SMBUS not completed (-3)\n"); return -3; } @@ -161,10 +161,10 @@ static int smbus_read_byte(unsigned device, unsigned address) byte = inb(SMBUS_IO_BASE + SMBHSTDAT0); if (global_status_register != 2) { - //printk(BIOS_SPEW, "%s: no device (%02x, %02x)\n", __func__, device, address); + //print_spew("%s: no device (%02x, %02x)\n", __func__, device, address); return -1; } - //printk(BIOS_DEBUG, "%s: %02x@%02x = %02x\n", __func__, device, address, byte); + //print_debug("%s: %02x@%02x = %02x\n", __func__, device, address, byte); return byte; } |