From 65648be911382542ed13a93e9d79aca1c9a0c4e5 Mon Sep 17 00:00:00 2001 From: "Ronald G. Minnich" Date: Fri, 16 Apr 2004 14:24:41 +0000 Subject: [PATCH] fix the !@#$#!@$ EPIA-M serial --- src/mainboard/via/epia-m/smbusenable.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mainboard/via/epia-m/smbusenable.inc b/src/mainboard/via/epia-m/smbusenable.inc index c17f97f596..0ed07be208 100644 --- a/src/mainboard/via/epia-m/smbusenable.inc +++ b/src/mainboard/via/epia-m/smbusenable.inc @@ -16,9 +16,9 @@ movl $dword, %ecx ; \ PCI_WRITE_CONFIG_DWORD -#define DEVFN(device, function) (((device) << 3) + (function)) +#define DEVFN(device, function) (((device) << 3) + (function)) #ifndef CONFIG_ADDR -#define CONFIG_ADDR(bus,devfn,where) (((bus) << 16) | ((devfn) << 8) | (where)) +#define CONFIG_ADDR(bus,devfn,where) (((bus) << 16) | ((devfn) << 8) | (where)) #endif /* generic SMB routines that work for many systems. The only one that might @@ -45,7 +45,7 @@ /* put the SMBUS at port 0xf00 + enable*/ CS_WRITE_WORD(PM_DEVFN+ 0xd0, SMBUS_IO_BASE|1) /* iobase addr */ - CS_WRITE_BYTE(PM_DEVFN + 0xd2, (0x4 << 1) | 1) /* smbus enable */ + CS_WRITE_BYTE(PM_DEVFN + 0xd2, (0x4 << 1) | 1) /* smbus enable */ CS_WRITE_WORD(PM_DEVFN + 0x4, 1) /* iospace enable */ /* The VT1211 serial port needs 48 mhz clock, on power up it is getting @@ -61,7 +61,7 @@ MYOUTB( $0xff, $(SMBUS_IO_BASE+SMBHSTSTAT)) MYOUTB( $0x7f, $(SMBUS_IO_BASE+SMBHSTDAT0)) MYOUTB( $0x83, $(SMBUS_IO_BASE+SMBHSTCMD)) - MYOUTB( $(CLOCK_SLAVE_ADDRESS<<1), $(SMBUS_IO_BASE+SMBHSTADD)) + MYOUTB( $(CLOCK_SLAVE_ADDRESS<<1), $(SMBUS_IO_BASE+SMBHSTADD)) MYOUTB( $(8 | I2C_TRANS_CMD), $(SMBUS_IO_BASE+SMBHSTCTL)) movw $(SMBUS_IO_BASE+SMBHSTSTAT), %dx smbwait1: