mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com> Acked-by: Ronald G. Minnich <rminnich@gmail.com> git-svn-id: svn://coreboot.org/repository/coreboot-v3@774 f3766cd6-281f-0410-b1cd-43a5c92072e9
18 lines
323 B
C
18 lines
323 B
C
#include <device/smbus_def.h>
|
|
#include <io.h>
|
|
|
|
#define SMBGSTATUS 0xe0
|
|
#define SMBGCTL 0xe2
|
|
#define SMBHSTADDR 0xe4
|
|
#define SMBHSTDAT 0xe6
|
|
#define SMBHSTCMD 0xe8
|
|
#define SMBHSTFIFO 0xe9
|
|
|
|
#define SMBUS_TIMEOUT (100*1000*10)
|
|
#define SMBUS_STATUS_MASK 0xfbff
|
|
|
|
static inline void smbus_delay(void)
|
|
{
|
|
outb(0x80, 0x80);
|
|
}
|
|
|