We can't print this early.
This patch fixes a hang on supermicro/h8dme supermicro/h8dmr supermicro/h8dmr_fam10 and possibly on other mcp55-based boards. Signed-off-by: Ward Vandewege <ward@gnu.org> Acked-by: Peter Stuge <peter@stuge.se> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6048 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
5c6bae213e
commit
f648d619c9
|
@ -32,11 +32,8 @@ static void enable_smbus(void)
|
||||||
device_t dev;
|
device_t dev;
|
||||||
dev = pci_locate_device(PCI_ID(0x10de, 0x0368), 0);
|
dev = pci_locate_device(PCI_ID(0x10de, 0x0368), 0);
|
||||||
|
|
||||||
if (dev == PCI_DEV_INVALID) {
|
if (dev == PCI_DEV_INVALID)
|
||||||
printk(BIOS_WARNING, "SMBUS controller not found\n");
|
die("SMBus controller not found\n");
|
||||||
} else {
|
|
||||||
printk(BIOS_DEBUG, "SMBus controller enabled\n");
|
|
||||||
}
|
|
||||||
|
|
||||||
/* set smbus iobase */
|
/* set smbus iobase */
|
||||||
pci_write_config32(dev, 0x20, SMBUS0_IO_BASE | 1);
|
pci_write_config32(dev, 0x20, SMBUS0_IO_BASE | 1);
|
||||||
|
|
Loading…
Reference in New Issue