projects
/
coreboot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert "m5a99x-evo: ugly quirks, but WOOT: ohai seabios :-)"
[coreboot.git]
/
src
/
southbridge
/
amd
/
cimx
/
sb900
/
smbus.c
diff --git
a/src/southbridge/amd/cimx/sb900/smbus.c
b/src/southbridge/amd/cimx/sb900/smbus.c
index 0fb040b928fdd0301ac8fd7d480b62f04da0eae5..1fbf5ac6c76f527fcee92f122f28184310c8ff61 100644
(file)
--- a/
src/southbridge/amd/cimx/sb900/smbus.c
+++ b/
src/southbridge/amd/cimx/sb900/smbus.c
@@
-132,15
+132,11
@@
int do_smbus_read_byte(u32 smbus_io_base, u32 device, u32 address)
u8 byte;
if (smbus_wait_until_ready(smbus_io_base) < 0) {
u8 byte;
if (smbus_wait_until_ready(smbus_io_base) < 0) {
-#if 0
printk(BIOS_INFO, "SB900 - Smbus.c - do_smbus_read_byte - smbus no ready.\n");
printk(BIOS_INFO, "SB900 - Smbus.c - do_smbus_read_byte - smbus no ready.\n");
-#endif
return -2; /* not ready */
}
return -2; /* not ready */
}
-#if 0
printk(BIOS_INFO, "SB900 - Smbus.c - do_smbus_read_byte - Start.\n");
printk(BIOS_INFO, "SB900 - Smbus.c - do_smbus_read_byte - Start.\n");
-#endif
/* set the command/address... */
outb(address & 0xff, smbus_io_base + SMBHSTCMD);
/* set the command/address... */
outb(address & 0xff, smbus_io_base + SMBHSTCMD);
@@
-160,9
+156,7
@@
int do_smbus_read_byte(u32 smbus_io_base, u32 device, u32 address)
/* read results of transaction */
byte = inb(smbus_io_base + SMBHSTDAT0);
/* read results of transaction */
byte = inb(smbus_io_base + SMBHSTDAT0);
-#if 0
printk(BIOS_INFO, "SB900 - Smbus.c - do_smbus_read_byte - End.\n");
printk(BIOS_INFO, "SB900 - Smbus.c - do_smbus_read_byte - End.\n");
-#endif
return byte;
}
return byte;
}