smbus: Fix a typo ("Set the device I'm talking too")
Change-Id: Ia14bbdfe973cec4b366879cd2ed5602b43754260 Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net> Reviewed-on: https://review.coreboot.org/21653 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
parent
7a2d4e56c7
commit
7090377a87
|
@ -59,7 +59,7 @@ int do_smbus_recv_byte(u32 smbus_io_base, u32 device)
|
|||
if (smbus_wait_until_ready(smbus_io_base) < 0)
|
||||
return -2; /* not ready */
|
||||
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) | 1, smbus_io_base + SMBHSTADDR);
|
||||
|
||||
byte = inb(smbus_io_base + SMBHSTCTRL);
|
||||
|
@ -87,7 +87,7 @@ int do_smbus_send_byte(u32 smbus_io_base, u32 device, u8 val)
|
|||
/* set the command... */
|
||||
outb(val, smbus_io_base + SMBHSTCMD);
|
||||
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) | 0, smbus_io_base + SMBHSTADDR);
|
||||
|
||||
byte = inb(smbus_io_base + SMBHSTCTRL);
|
||||
|
@ -113,7 +113,7 @@ int do_smbus_read_byte(u32 smbus_io_base, u32 device,
|
|||
/* set the command/address... */
|
||||
outb(address & 0xff, smbus_io_base + SMBHSTCMD);
|
||||
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) | 1, smbus_io_base + SMBHSTADDR);
|
||||
|
||||
byte = inb(smbus_io_base + SMBHSTCTRL);
|
||||
|
@ -142,7 +142,7 @@ int do_smbus_write_byte(u32 smbus_io_base, u32 device,
|
|||
/* set the command/address... */
|
||||
outb(address & 0xff, smbus_io_base + SMBHSTCMD);
|
||||
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) | 0, smbus_io_base + SMBHSTADDR);
|
||||
|
||||
/* output value */
|
||||
|
|
|
@ -68,7 +68,7 @@ int do_smbus_read_byte(unsigned int smbus_base, unsigned int device,
|
|||
/* Setup transaction */
|
||||
/* Disable interrupts */
|
||||
outb(inb(smbus_base + SMBHSTCTL) & (~1), smbus_base + SMBHSTCTL);
|
||||
/* Set the device I'm talking too */
|
||||
/* Set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) | 1, smbus_base + SMBXMITADD);
|
||||
/* Set the command/address... */
|
||||
outb(address & 0xff, smbus_base + SMBHSTCMD);
|
||||
|
@ -112,7 +112,7 @@ int do_smbus_write_byte(unsigned int smbus_base, unsigned int device,
|
|||
/* Setup transaction */
|
||||
/* Disable interrupts */
|
||||
outb(inb(smbus_base + SMBHSTCTL) & (~1), smbus_base + SMBHSTCTL);
|
||||
/* Set the device I'm talking too */
|
||||
/* Set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) & ~0x01, smbus_base + SMBXMITADD);
|
||||
/* Set the command/address... */
|
||||
outb(address & 0xff, smbus_base + SMBHSTCMD);
|
||||
|
|
|
@ -58,7 +58,7 @@ int smbus_read8(unsigned int smbus_base, unsigned int device,
|
|||
/* Setup transaction */
|
||||
/* Disable interrupts */
|
||||
outb(inb(smbus_base + SMBHSTCTL) & (~1), smbus_base + SMBHSTCTL);
|
||||
/* Set the device I'm talking too */
|
||||
/* Set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) | 1, smbus_base + SMBXMITADD);
|
||||
/* Set the command/address... */
|
||||
outb(address & 0xff, smbus_base + SMBHSTCMD);
|
||||
|
@ -103,7 +103,7 @@ int smbus_write8(unsigned int smbus_base, unsigned int device,
|
|||
/* Setup transaction */
|
||||
/* Disable interrupts */
|
||||
outb(inb(smbus_base + SMBHSTCTL) & (~1), smbus_base + SMBHSTCTL);
|
||||
/* Set the device I'm talking too */
|
||||
/* Set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) & ~0x01, smbus_base + SMBXMITADD);
|
||||
/* Set the command/address... */
|
||||
outb(address & 0xff, smbus_base + SMBHSTCMD);
|
||||
|
|
|
@ -67,7 +67,7 @@ int do_smbus_read_byte(unsigned smbus_base, unsigned device, unsigned address)
|
|||
/* Setup transaction */
|
||||
/* Disable interrupts */
|
||||
outb(inb(smbus_base + SMBHSTCTL) & (~1), smbus_base + SMBHSTCTL);
|
||||
/* Set the device I'm talking too */
|
||||
/* Set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) | 1, smbus_base + SMBXMITADD);
|
||||
/* Set the command/address... */
|
||||
outb(address & 0xff, smbus_base + SMBHSTCMD);
|
||||
|
@ -113,7 +113,7 @@ int do_smbus_write_byte(unsigned smbus_base, unsigned device,
|
|||
/* Setup transaction */
|
||||
/* Disable interrupts */
|
||||
outb(inb(smbus_base + SMBHSTCTL) & (~1), smbus_base + SMBHSTCTL);
|
||||
/* Set the device I'm talking too */
|
||||
/* Set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) & ~0x01, smbus_base + SMBXMITADD);
|
||||
/* Set the command/address... */
|
||||
outb(address & 0xff, smbus_base + SMBHSTCMD);
|
||||
|
|
|
@ -59,7 +59,7 @@ static int do_smbus_read_byte(unsigned smbus_base, unsigned device,
|
|||
/* Setup transaction */
|
||||
/* Disable interrupts */
|
||||
outb(inb(smbus_base + SMBHSTCTL) & (~1), smbus_base + SMBHSTCTL);
|
||||
/* Set the device I'm talking too */
|
||||
/* Set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) | 1, smbus_base + SMBXMITADD);
|
||||
/* Set the command/address... */
|
||||
outb(address & 0xff, smbus_base + SMBHSTCMD);
|
||||
|
|
|
@ -64,7 +64,7 @@ int do_smbus_recv_byte(u32 smbus_io_base, u32 device)
|
|||
return -2; /* not ready */
|
||||
}
|
||||
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) | 1, smbus_io_base + SMBHSTADDR);
|
||||
|
||||
byte = inb(smbus_io_base + SMBHSTCTRL);
|
||||
|
@ -94,7 +94,7 @@ int do_smbus_send_byte(u32 smbus_io_base, u32 device, u8 val)
|
|||
/* set the command... */
|
||||
outb(val, smbus_io_base + SMBHSTCMD);
|
||||
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) | 0, smbus_io_base + SMBHSTADDR);
|
||||
|
||||
byte = inb(smbus_io_base + SMBHSTCTRL);
|
||||
|
@ -122,7 +122,7 @@ int do_smbus_read_byte(u32 smbus_io_base, u32 device,
|
|||
/* set the command/address... */
|
||||
outb(address & 0xff, smbus_io_base + SMBHSTCMD);
|
||||
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) | 1, smbus_io_base + SMBHSTADDR);
|
||||
|
||||
byte = inb(smbus_io_base + SMBHSTCTRL);
|
||||
|
@ -153,7 +153,7 @@ int do_smbus_write_byte(u32 smbus_io_base, u32 device,
|
|||
/* set the command/address... */
|
||||
outb(address & 0xff, smbus_io_base + SMBHSTCMD);
|
||||
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) | 0, smbus_io_base + SMBHSTADDR);
|
||||
|
||||
/* output value */
|
||||
|
|
|
@ -62,7 +62,7 @@ static int do_smbus_recv_byte(unsigned smbus_io_base, unsigned device)
|
|||
/* setup transaction */
|
||||
/* disable interrupts */
|
||||
outw(inw(smbus_io_base + SMBGCTL) & ~((1<<10)|(1<<9)|(1<<8)|(1<<4)), smbus_io_base + SMBGCTL);
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outw(((device & 0x7f) << 1) | 1, smbus_io_base + SMBHSTADDR);
|
||||
/* set the command/address... */
|
||||
outb(0, smbus_io_base + SMBHSTCMD);
|
||||
|
@ -107,7 +107,7 @@ static int do_smbus_send_byte(unsigned smbus_io_base, unsigned device, unsigned
|
|||
/* setup transaction */
|
||||
/* disable interrupts */
|
||||
outw(inw(smbus_io_base + SMBGCTL) & ~((1<<10)|(1<<9)|(1<<8)|(1<<4)), smbus_io_base + SMBGCTL);
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outw(((device & 0x7f) << 1) | 0, smbus_io_base + SMBHSTADDR);
|
||||
/* set the command/address... */
|
||||
outb(0, smbus_io_base + SMBHSTCMD);
|
||||
|
@ -150,7 +150,7 @@ static int do_smbus_read_byte(unsigned smbus_io_base, unsigned device, unsigned
|
|||
/* setup transaction */
|
||||
/* disable interrupts */
|
||||
outw(inw(smbus_io_base + SMBGCTL) & ~((1<<10)|(1<<9)|(1<<8)|(1<<4)), smbus_io_base + SMBGCTL);
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outw(((device & 0x7f) << 1) | 1, smbus_io_base + SMBHSTADDR);
|
||||
/* set the command/address... */
|
||||
outb(address & 0xFF, smbus_io_base + SMBHSTCMD);
|
||||
|
@ -195,7 +195,7 @@ static int do_smbus_write_byte(unsigned smbus_io_base, unsigned device, unsigned
|
|||
/* setup transaction */
|
||||
/* disable interrupts */
|
||||
outw(inw(smbus_io_base + SMBGCTL) & ~((1<<10)|(1<<9)|(1<<8)|(1<<4)), smbus_io_base + SMBGCTL);
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outw(((device & 0x7f) << 1) | 0, smbus_io_base + SMBHSTADDR);
|
||||
outb(address & 0xFF, smbus_io_base + SMBHSTCMD);
|
||||
/* set up for a byte data write */ /* FIXME */
|
||||
|
@ -235,7 +235,7 @@ static int do_smbus_block_read(unsigned smbus_io_base, unsigned device, unsigned
|
|||
/* setup transaction */
|
||||
/* disable interrupts */
|
||||
outw(inw(smbus_io_base + SMBGCTL) & ~((1<<10)|(1<<9)|(1<<8)|(1<<4)), smbus_io_base + SMBGCTL);
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outw(((device & 0x7f) << 1) | 1, smbus_io_base + SMBHSTADDR);
|
||||
/* set the command/address... */
|
||||
outb(cmd & 0xFF, smbus_io_base + SMBHSTCMD);
|
||||
|
@ -290,7 +290,7 @@ static int do_smbus_block_write(unsigned smbus_io_base, unsigned device, unsigne
|
|||
/* setup transaction */
|
||||
/* disable interrupts */
|
||||
outw(inw(smbus_io_base + SMBGCTL) & ~((1<<10)|(1<<9)|(1<<8)|(1<<4)), smbus_io_base + SMBGCTL);
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outw(((device & 0x7f) << 1) | 0, smbus_io_base + SMBHSTADDR);
|
||||
/* set the command/address... */
|
||||
outb(cmd & 0xFF, smbus_io_base + SMBHSTCMD);
|
||||
|
|
|
@ -67,7 +67,7 @@ int do_smbus_recv_byte(u32 smbus_io_base, u32 device)
|
|||
}
|
||||
|
||||
printk(BIOS_SPEW, "SB700 - Smbus.c - do_smbus_recv_byte - Start.\n");
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) | 1, smbus_io_base + SMBHSTADDR);
|
||||
|
||||
byte = inb(smbus_io_base + SMBHSTCTRL);
|
||||
|
@ -99,7 +99,7 @@ int do_smbus_send_byte(u32 smbus_io_base, u32 device, u8 val)
|
|||
/* set the command... */
|
||||
outb(val, smbus_io_base + SMBHSTCMD);
|
||||
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) | 0, smbus_io_base + SMBHSTADDR);
|
||||
|
||||
byte = inb(smbus_io_base + SMBHSTCTRL);
|
||||
|
@ -128,7 +128,7 @@ int do_smbus_read_byte(u32 smbus_io_base, u32 device, u32 address)
|
|||
/* set the command/address... */
|
||||
outb(address & 0xff, smbus_io_base + SMBHSTCMD);
|
||||
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) | 1, smbus_io_base + SMBHSTADDR);
|
||||
|
||||
byte = inb(smbus_io_base + SMBHSTCTRL);
|
||||
|
@ -160,7 +160,7 @@ int do_smbus_write_byte(u32 smbus_io_base, u32 device, u32 address, u8 val)
|
|||
/* set the command/address... */
|
||||
outb(address & 0xff, smbus_io_base + SMBHSTCMD);
|
||||
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) | 0, smbus_io_base + SMBHSTADDR);
|
||||
|
||||
/* output value */
|
||||
|
|
|
@ -68,7 +68,7 @@ int do_smbus_recv_byte(u32 smbus_io_base, u32 device)
|
|||
}
|
||||
|
||||
printk(BIOS_DEBUG, "SB800 - Smbus.c - do_smbus_recv_byte - Start.\n");
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) | 1, smbus_io_base + SMBHSTADDR);
|
||||
|
||||
byte = inb(smbus_io_base + SMBHSTCTRL);
|
||||
|
@ -101,7 +101,7 @@ int do_smbus_send_byte(u32 smbus_io_base, u32 device, u8 val)
|
|||
/* set the command... */
|
||||
outb(val, smbus_io_base + SMBHSTCMD);
|
||||
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) | 0, smbus_io_base + SMBHSTADDR);
|
||||
|
||||
byte = inb(smbus_io_base + SMBHSTCTRL);
|
||||
|
@ -131,7 +131,7 @@ int do_smbus_read_byte(u32 smbus_io_base, u32 device, u32 address)
|
|||
/* set the command/address... */
|
||||
outb(address & 0xff, smbus_io_base + SMBHSTCMD);
|
||||
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) | 1, smbus_io_base + SMBHSTADDR);
|
||||
|
||||
byte = inb(smbus_io_base + SMBHSTCTRL);
|
||||
|
@ -164,7 +164,7 @@ int do_smbus_write_byte(u32 smbus_io_base, u32 device, u32 address, u8 val)
|
|||
/* set the command/address... */
|
||||
outb(address & 0xff, smbus_io_base + SMBHSTCMD);
|
||||
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) | 0, smbus_io_base + SMBHSTADDR);
|
||||
|
||||
/* output value */
|
||||
|
|
|
@ -68,7 +68,7 @@ int do_smbus_recv_byte(u32 smbus_io_base, u32 device)
|
|||
}
|
||||
|
||||
printk(BIOS_INFO, "SB900 - Smbus.c - do_smbus_recv_byte - Start.\n");
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) | 1, smbus_io_base + SMBHSTADDR);
|
||||
|
||||
byte = inb(smbus_io_base + SMBHSTCTRL);
|
||||
|
@ -101,7 +101,7 @@ int do_smbus_send_byte(u32 smbus_io_base, u32 device, u8 val)
|
|||
/* set the command... */
|
||||
outb(val, smbus_io_base + SMBHSTCMD);
|
||||
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) | 0, smbus_io_base + SMBHSTADDR);
|
||||
|
||||
byte = inb(smbus_io_base + SMBHSTCTRL);
|
||||
|
@ -131,7 +131,7 @@ int do_smbus_read_byte(u32 smbus_io_base, u32 device, u32 address)
|
|||
/* set the command/address... */
|
||||
outb(address & 0xff, smbus_io_base + SMBHSTCMD);
|
||||
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) | 1, smbus_io_base + SMBHSTADDR);
|
||||
|
||||
byte = inb(smbus_io_base + SMBHSTCTRL);
|
||||
|
@ -164,7 +164,7 @@ int do_smbus_write_byte(u32 smbus_io_base, u32 device, u32 address, u8 val)
|
|||
/* set the command/address... */
|
||||
outb(address & 0xff, smbus_io_base + SMBHSTCMD);
|
||||
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) | 0, smbus_io_base + SMBHSTADDR);
|
||||
|
||||
/* output value */
|
||||
|
|
|
@ -64,7 +64,7 @@ int do_smbus_recv_byte(u32 smbus_io_base, u32 device)
|
|||
return -2; /* not ready */
|
||||
}
|
||||
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) | 1, smbus_io_base + SMBHSTADDR);
|
||||
|
||||
byte = inb(smbus_io_base + SMBHSTCTRL);
|
||||
|
@ -94,7 +94,7 @@ int do_smbus_send_byte(u32 smbus_io_base, u32 device, u8 val)
|
|||
/* set the command... */
|
||||
outb(val, smbus_io_base + SMBHSTCMD);
|
||||
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) | 0, smbus_io_base + SMBHSTADDR);
|
||||
|
||||
byte = inb(smbus_io_base + SMBHSTCTRL);
|
||||
|
@ -122,7 +122,7 @@ int do_smbus_read_byte(u32 smbus_io_base, u32 device,
|
|||
/* set the command/address... */
|
||||
outb(address & 0xff, smbus_io_base + SMBHSTCMD);
|
||||
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) | 1, smbus_io_base + SMBHSTADDR);
|
||||
|
||||
byte = inb(smbus_io_base + SMBHSTCTRL);
|
||||
|
@ -153,7 +153,7 @@ int do_smbus_write_byte(u32 smbus_io_base, u32 device,
|
|||
/* set the command/address... */
|
||||
outb(address & 0xff, smbus_io_base + SMBHSTCMD);
|
||||
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) | 0, smbus_io_base + SMBHSTADDR);
|
||||
|
||||
/* output value */
|
||||
|
|
|
@ -64,7 +64,7 @@ int do_smbus_recv_byte(u32 smbus_io_base, u32 device)
|
|||
return -2; /* not ready */
|
||||
}
|
||||
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) | 1, smbus_io_base + SMBHSTADDR);
|
||||
|
||||
byte = inb(smbus_io_base + SMBHSTCTRL);
|
||||
|
@ -94,7 +94,7 @@ int do_smbus_send_byte(u32 smbus_io_base, u32 device, u8 val)
|
|||
/* set the command... */
|
||||
outb(val, smbus_io_base + SMBHSTCMD);
|
||||
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) | 0, smbus_io_base + SMBHSTADDR);
|
||||
|
||||
byte = inb(smbus_io_base + SMBHSTCTRL);
|
||||
|
@ -121,7 +121,7 @@ int do_smbus_read_byte(u32 smbus_io_base, u32 device, u32 address)
|
|||
/* set the command/address... */
|
||||
outb(address & 0xff, smbus_io_base + SMBHSTCMD);
|
||||
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) | 1, smbus_io_base + SMBHSTADDR);
|
||||
|
||||
byte = inb(smbus_io_base + SMBHSTCTRL);
|
||||
|
@ -151,7 +151,7 @@ int do_smbus_write_byte(u32 smbus_io_base, u32 device, u32 address, u8 val)
|
|||
/* set the command/address... */
|
||||
outb(address & 0xff, smbus_io_base + SMBHSTCMD);
|
||||
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) | 0, smbus_io_base + SMBHSTADDR);
|
||||
|
||||
/* output value */
|
||||
|
|
|
@ -111,7 +111,7 @@ int do_smbus_recv_byte(u32 smbus_io_base, u32 device)
|
|||
return -2; /* not ready */
|
||||
}
|
||||
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) | 1, smbus_io_base + SMBHSTADDR);
|
||||
|
||||
byte = inb(smbus_io_base + SMBHSTCTRL);
|
||||
|
@ -141,7 +141,7 @@ int do_smbus_send_byte(u32 smbus_io_base, u32 device, u8 val)
|
|||
/* set the command... */
|
||||
outb(val, smbus_io_base + SMBHSTCMD);
|
||||
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) | 0, smbus_io_base + SMBHSTADDR);
|
||||
|
||||
byte = inb(smbus_io_base + SMBHSTCTRL);
|
||||
|
@ -168,7 +168,7 @@ int do_smbus_read_byte(u32 smbus_io_base, u32 device, u32 address)
|
|||
/* set the command/address... */
|
||||
outb(address & 0xff, smbus_io_base + SMBHSTCMD);
|
||||
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) | 1, smbus_io_base + SMBHSTADDR);
|
||||
|
||||
byte = inb(smbus_io_base + SMBHSTCTRL);
|
||||
|
@ -198,7 +198,7 @@ int do_smbus_write_byte(u32 smbus_io_base, u32 device, u32 address, u8 val)
|
|||
/* set the command/address... */
|
||||
outb(address & 0xff, smbus_io_base + SMBHSTCMD);
|
||||
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) | 0, smbus_io_base + SMBHSTADDR);
|
||||
|
||||
/* output value */
|
||||
|
|
|
@ -67,7 +67,7 @@ int do_smbus_recv_byte(u32 smbus_io_base, u32 device)
|
|||
return -2; /* not ready */
|
||||
}
|
||||
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) | 1, smbus_io_base + SMBHSTADDR);
|
||||
|
||||
byte = inb(smbus_io_base + SMBHSTCTRL);
|
||||
|
@ -97,7 +97,7 @@ int do_smbus_send_byte(u32 smbus_io_base, u32 device, u8 val)
|
|||
/* set the command... */
|
||||
outb(val, smbus_io_base + SMBHSTCMD);
|
||||
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) | 0, smbus_io_base + SMBHSTADDR);
|
||||
|
||||
byte = inb(smbus_io_base + SMBHSTCTRL);
|
||||
|
@ -125,7 +125,7 @@ int do_smbus_read_byte(u32 smbus_io_base, u32 device,
|
|||
/* set the command/address... */
|
||||
outb(address & 0xff, smbus_io_base + SMBHSTCMD);
|
||||
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) | 1, smbus_io_base + SMBHSTADDR);
|
||||
|
||||
byte = inb(smbus_io_base + SMBHSTCTRL);
|
||||
|
@ -156,7 +156,7 @@ int do_smbus_write_byte(u32 smbus_io_base, u32 device,
|
|||
/* set the command/address... */
|
||||
outb(address & 0xff, smbus_io_base + SMBHSTCMD);
|
||||
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) | 0, smbus_io_base + SMBHSTADDR);
|
||||
|
||||
/* output value */
|
||||
|
|
|
@ -85,7 +85,7 @@ static int do_smbus_recv_byte(unsigned smbus_io_base, unsigned device)
|
|||
return -2; // not ready
|
||||
}
|
||||
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1)|1 , smbus_io_base + SMBHSTADDR);
|
||||
|
||||
byte = inb(smbus_io_base + SMBHSTCTRL);
|
||||
|
@ -115,7 +115,7 @@ static int do_smbus_send_byte(unsigned smbus_io_base, unsigned device, unsigned
|
|||
/* set the command... */
|
||||
outb(val, smbus_io_base + SMBHSTCMD);
|
||||
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1)|0 , smbus_io_base + SMBHSTADDR);
|
||||
|
||||
byte = inb(smbus_io_base + SMBHSTCTRL);
|
||||
|
@ -142,7 +142,7 @@ static int do_smbus_read_byte(unsigned smbus_io_base, unsigned device, unsigned
|
|||
/* set the command/address... */
|
||||
outb(address & 0xff, smbus_io_base + SMBHSTCMD);
|
||||
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1)|1 , smbus_io_base + SMBHSTADDR);
|
||||
|
||||
byte = inb(smbus_io_base + SMBHSTCTRL);
|
||||
|
@ -172,7 +172,7 @@ static int do_smbus_write_byte(unsigned smbus_io_base, unsigned device, unsigned
|
|||
/* set the command/address... */
|
||||
outb(address & 0xff, smbus_io_base + SMBHSTCMD);
|
||||
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1)|0 , smbus_io_base + SMBHSTADDR);
|
||||
|
||||
/* output value */
|
||||
|
|
|
@ -115,7 +115,7 @@ int do_smbus_read_byte(unsigned int smbus_base, u8 device,
|
|||
/* Disable interrupts */
|
||||
outb(inb(smbus_base + SMBHSTCTL) & ~SMBHSTCNT_INTREN,
|
||||
smbus_base + SMBHSTCTL);
|
||||
/* Set the device I'm talking too */
|
||||
/* Set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) | 1, smbus_base + SMBXMITADD);
|
||||
/* Set the command/address... */
|
||||
outb(address & 0xff, smbus_base + SMBHSTCMD);
|
||||
|
@ -164,7 +164,7 @@ int do_smbus_write_byte(unsigned int smbus_base, u8 device,
|
|||
/* Disable interrupts */
|
||||
outb(inb(smbus_base + SMBHSTCTL) & ~SMBHSTCNT_INTREN,
|
||||
smbus_base + SMBHSTCTL);
|
||||
/* Set the device I'm talking too */
|
||||
/* Set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) & ~0x01, smbus_base + SMBXMITADD);
|
||||
/* Set the command/address... */
|
||||
outb(address & 0xff, smbus_base + SMBHSTCMD);
|
||||
|
@ -217,7 +217,7 @@ int do_smbus_block_read(unsigned int smbus_base, u8 device, u8 cmd,
|
|||
/* Disable interrupts */
|
||||
outb(inb(smbus_base + SMBHSTCTL) & ~SMBHSTCNT_INTREN,
|
||||
smbus_base + SMBHSTCTL);
|
||||
/* Set the device I'm talking too */
|
||||
/* Set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) | 1, smbus_base + SMBXMITADD);
|
||||
/* Set the command/address... */
|
||||
outb(cmd & 0xff, smbus_base + SMBHSTCMD);
|
||||
|
@ -292,7 +292,7 @@ int do_smbus_block_write(unsigned int smbus_base, u8 device, u8 cmd,
|
|||
/* Disable interrupts */
|
||||
outb(inb(smbus_base + SMBHSTCTL) & ~SMBHSTCNT_INTREN,
|
||||
smbus_base + SMBHSTCTL);
|
||||
/* Set the device I'm talking too */
|
||||
/* Set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) & ~0x01, smbus_base + SMBXMITADD);
|
||||
/* Set the command/address... */
|
||||
outb(cmd & 0xff, smbus_base + SMBHSTCMD);
|
||||
|
|
|
@ -56,7 +56,7 @@ static int do_smbus_recv_byte(unsigned smbus_io_base, unsigned device)
|
|||
unsigned char global_status_register;
|
||||
unsigned char byte;
|
||||
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1)|1 , smbus_io_base + SMBXMITADD);
|
||||
smbus_delay();
|
||||
|
||||
|
@ -90,7 +90,7 @@ static int do_smbus_send_byte(unsigned smbus_io_base, unsigned device, unsigned
|
|||
outb(val, smbus_io_base + SMBHSTCMD);
|
||||
smbus_delay();
|
||||
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) | 0, smbus_io_base + SMBXMITADD);
|
||||
smbus_delay();
|
||||
|
||||
|
@ -114,7 +114,7 @@ static int do_smbus_read_byte(unsigned smbus_io_base, unsigned device, unsigned
|
|||
unsigned char global_status_register;
|
||||
unsigned char byte;
|
||||
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1)|1 , smbus_io_base + SMBXMITADD);
|
||||
smbus_delay();
|
||||
/* set the command/address... */
|
||||
|
@ -148,7 +148,7 @@ static int do_smbus_write_byte(unsigned smbus_io_base, unsigned device, unsigned
|
|||
outb(val, smbus_io_base + SMBHSTDAT0);
|
||||
smbus_delay();
|
||||
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) | 0, smbus_io_base + SMBXMITADD);
|
||||
smbus_delay();
|
||||
|
||||
|
|
|
@ -62,7 +62,7 @@ int do_smbus_recv_byte(unsigned smbus_io_base, unsigned device)
|
|||
unsigned char global_status_register;
|
||||
unsigned char byte;
|
||||
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1)|1 , smbus_io_base + SMBXMITADD);
|
||||
smbus_delay();
|
||||
|
||||
|
@ -97,7 +97,7 @@ int do_smbus_send_byte(unsigned smbus_io_base, unsigned device, unsigned char va
|
|||
outb(val, smbus_io_base + SMBHSTCMD);
|
||||
smbus_delay();
|
||||
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) | 0, smbus_io_base + SMBXMITADD);
|
||||
smbus_delay();
|
||||
|
||||
|
@ -161,7 +161,7 @@ static inline int do_smbus_write_byte(unsigned smbus_io_base, unsigned device, u
|
|||
outb(val, smbus_io_base + SMBHSTDAT0);
|
||||
smbus_delay();
|
||||
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) | 0, smbus_io_base + SMBXMITADD);
|
||||
smbus_delay();
|
||||
|
||||
|
|
|
@ -314,7 +314,7 @@ int smbus_read_byte(unsigned device, unsigned address)
|
|||
/* setup transaction */
|
||||
/* disable interrupts */
|
||||
outb(inb(SMBUS_IO_BASE + SMBHSTCTL) & (~1), SMBUS_IO_BASE + SMBHSTCTL);
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) | 1, SMBUS_IO_BASE + SMBHSTADD);
|
||||
/* set the command/address... */
|
||||
outb(address & 0xFF, SMBUS_IO_BASE + SMBHSTCMD);
|
||||
|
|
|
@ -314,7 +314,7 @@ int smbus_read_byte(unsigned device, unsigned address)
|
|||
/* setup transaction */
|
||||
/* disable interrupts */
|
||||
outb(inb(SMBUS_IO_BASE + SMBHSTCTL) & (~1), SMBUS_IO_BASE + SMBHSTCTL);
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) | 1, SMBUS_IO_BASE + SMBHSTADD);
|
||||
/* set the command/address... */
|
||||
outb(address & 0xFF, SMBUS_IO_BASE + SMBHSTCMD);
|
||||
|
|
|
@ -314,7 +314,7 @@ int smbus_read_byte(unsigned device, unsigned address)
|
|||
/* setup transaction */
|
||||
/* disable interrupts */
|
||||
outb(inb(SMBUS_IO_BASE + SMBHSTCTL) & (~1), SMBUS_IO_BASE + SMBHSTCTL);
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) | 1, SMBUS_IO_BASE + SMBHSTADD);
|
||||
/* set the command/address... */
|
||||
outb(address & 0xFF, SMBUS_IO_BASE + SMBHSTCMD);
|
||||
|
|
|
@ -313,7 +313,7 @@ int smbus_read_byte(unsigned device, unsigned address)
|
|||
/* setup transaction */
|
||||
/* disable interrupts */
|
||||
outb(inb(SMBUS_IO_BASE + SMBHSTCTL) & (~1), SMBUS_IO_BASE + SMBHSTCTL);
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) | 1, SMBUS_IO_BASE + SMBHSTADD);
|
||||
/* set the command/address... */
|
||||
outb(address & 0xFF, SMBUS_IO_BASE + SMBHSTCMD);
|
||||
|
@ -383,7 +383,7 @@ short smbus_read_byte(unsigned char device, unsigned char address)
|
|||
/* setup transaction */
|
||||
/* disable interrupts */
|
||||
outb(inb(SMBUS_IO_HSTCTL) & (~1), SMBUS_IO_HSTCTL);
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) | 1, SMBUS_IO_HSTADD);
|
||||
/* set the command/address... */
|
||||
outb(address & 0xFF, SMBUS_IO_HSTCMD);
|
||||
|
|
|
@ -141,7 +141,7 @@ int smbus_read_byte(unsigned device, unsigned address)
|
|||
/* setup transaction */
|
||||
/* disable interrupts */
|
||||
outb(inb(SMBUS_IO_BASE + SMBHSTCTL) & (~1), SMBUS_IO_BASE + SMBHSTCTL);
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) | 1, SMBUS_IO_BASE + SMBHSTADD);
|
||||
/* set the command/address... */
|
||||
outb(address & 0xFF, SMBUS_IO_BASE + SMBHSTCMD);
|
||||
|
@ -211,7 +211,7 @@ int smbus_read_byte(unsigned device, unsigned address)
|
|||
/* setup transaction */
|
||||
/* disable interrupts */
|
||||
outb(inb(SMBUS_IO_HSTCTL) & (~1), SMBUS_IO_HSTCTL);
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) | 1, SMBUS_IO_HSTADD);
|
||||
/* set the command/address... */
|
||||
outb(address & 0xFF, SMBUS_IO_HSTCMD);
|
||||
|
|
|
@ -137,7 +137,7 @@ int smbus_read_byte(unsigned device, unsigned address)
|
|||
/* setup transaction */
|
||||
/* disable interrupts */
|
||||
outb(inb(SMBUS_IO_BASE + SMBHSTCTL) & (~1), SMBUS_IO_BASE + SMBHSTCTL);
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) | 1, SMBUS_IO_BASE + SMBHSTADD);
|
||||
/* set the command/address... */
|
||||
outb(address & 0xFF, SMBUS_IO_BASE + SMBHSTCMD);
|
||||
|
@ -207,7 +207,7 @@ short smbus_read_byte(unsigned char device, unsigned char address)
|
|||
/* setup transaction */
|
||||
/* disable interrupts */
|
||||
outb(inb(SMBUS_IO_HSTCTL) & (~1), SMBUS_IO_HSTCTL); /* 3 */
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
outb(((device & 0x7f) << 1) | 1, SMBUS_IO_HSTADD); /* 1 + 3 */
|
||||
/* set the command/address... */
|
||||
outb(address & 0xFF, SMBUS_IO_HSTCMD); /* 1 + 3 */
|
||||
|
|
|
@ -14,7 +14,7 @@ static void spd_set_nbxcfg(void)
|
|||
/* 0 == None, 1 == Parity, 2 == ECC */
|
||||
if (byte != 2) continue;
|
||||
|
||||
/* set the device I'm talking too */
|
||||
/* set the device I'm talking to */
|
||||
__builtin_outb(device, 0x1004);
|
||||
|
||||
/* poll for transaction completion */
|
||||
|
|
Loading…
Reference in New Issue