aboutsummaryrefslogtreecommitdiff
path: root/src/southbridge/intel/i82801dx/early_smbus.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/southbridge/intel/i82801dx/early_smbus.c')
-rw-r--r--src/southbridge/intel/i82801dx/early_smbus.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/southbridge/intel/i82801dx/early_smbus.c b/src/southbridge/intel/i82801dx/early_smbus.c
index 5e82ded6be..77b0aa084b 100644
--- a/src/southbridge/intel/i82801dx/early_smbus.c
+++ b/src/southbridge/intel/i82801dx/early_smbus.c
@@ -14,11 +14,9 @@
* GNU General Public License for more details.
*/
-#include <arch/io.h>
#include <device/pci_ops.h>
#include <device/pci_def.h>
#include <console/console.h>
-#include <southbridge/intel/common/smbus.h>
#include <device/smbus_host.h>
#include "i82801dx.h"
@@ -27,17 +25,16 @@ void enable_smbus(void)
{
pci_devfn_t dev = PCI_DEV(0x0, 0x1f, 0x3);
- printk(BIOS_DEBUG, "SMBus controller enabled\n");
/* set smbus iobase */
pci_write_config32(dev, 0x20, SMBUS_IO_BASE | 1);
/* Set smbus enable */
pci_write_config8(dev, 0x40, 0x01);
/* Set smbus iospace enable */
pci_write_config16(dev, 0x4, 0x01);
- /* Disable interrupt generation */
- outb(0, SMBUS_IO_BASE + SMBHSTCTL);
- /* clear any lingering errors, so the transaction will run */
- outb(inb(SMBUS_IO_BASE + SMBHSTSTAT), SMBUS_IO_BASE + SMBHSTSTAT);
+
+ smbus_host_reset(SMBUS_IO_BASE);
+
+ printk(BIOS_DEBUG, "SMBus controller enabled\n");
}
int smbus_read_byte(unsigned int device, unsigned int address)