aboutsummaryrefslogtreecommitdiff
path: root/src/southbridge/amd
diff options
context:
space:
mode:
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>2017-09-23 21:39:02 +0200
committerMartin Roth <martinroth@google.com>2017-09-27 16:38:18 +0000
commit7090377a873aaef9715b9ac8e669e9ca1a3b3651 (patch)
treec73c8104df07ff056f278daab5db128f3d55dfc3 /src/southbridge/amd
parent7a2d4e56c7da1f2d8ddb70cc0a0eeba4564c75e9 (diff)
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>
Diffstat (limited to 'src/southbridge/amd')
-rw-r--r--src/southbridge/amd/agesa/hudson/smbus.c8
-rw-r--r--src/southbridge/amd/amd8111/amd8111_smbus.h12
-rw-r--r--src/southbridge/amd/cimx/sb700/smbus.c8
-rw-r--r--src/southbridge/amd/cimx/sb800/smbus.c8
-rw-r--r--src/southbridge/amd/cimx/sb900/smbus.c8
-rw-r--r--src/southbridge/amd/pi/hudson/smbus.c8
-rw-r--r--src/southbridge/amd/sb600/smbus.c8
-rw-r--r--src/southbridge/amd/sb700/smbus.c8
-rw-r--r--src/southbridge/amd/sb800/smbus.c8
9 files changed, 38 insertions, 38 deletions
diff --git a/src/southbridge/amd/agesa/hudson/smbus.c b/src/southbridge/amd/agesa/hudson/smbus.c
index 9aa152b2ea..ce0361a121 100644
--- a/src/southbridge/amd/agesa/hudson/smbus.c
+++ b/src/southbridge/amd/agesa/hudson/smbus.c
@@ -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 */
diff --git a/src/southbridge/amd/amd8111/amd8111_smbus.h b/src/southbridge/amd/amd8111/amd8111_smbus.h
index f82bb19e8e..6b2459f808 100644
--- a/src/southbridge/amd/amd8111/amd8111_smbus.h
+++ b/src/southbridge/amd/amd8111/amd8111_smbus.h
@@ -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);
diff --git a/src/southbridge/amd/cimx/sb700/smbus.c b/src/southbridge/amd/cimx/sb700/smbus.c
index 8ae6d3b8f4..9d78cd06ee 100644
--- a/src/southbridge/amd/cimx/sb700/smbus.c
+++ b/src/southbridge/amd/cimx/sb700/smbus.c
@@ -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 */
diff --git a/src/southbridge/amd/cimx/sb800/smbus.c b/src/southbridge/amd/cimx/sb800/smbus.c
index 80395f1231..53b0a13977 100644
--- a/src/southbridge/amd/cimx/sb800/smbus.c
+++ b/src/southbridge/amd/cimx/sb800/smbus.c
@@ -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 */
diff --git a/src/southbridge/amd/cimx/sb900/smbus.c b/src/southbridge/amd/cimx/sb900/smbus.c
index 7d1189812a..aaa09686bc 100644
--- a/src/southbridge/amd/cimx/sb900/smbus.c
+++ b/src/southbridge/amd/cimx/sb900/smbus.c
@@ -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 */
diff --git a/src/southbridge/amd/pi/hudson/smbus.c b/src/southbridge/amd/pi/hudson/smbus.c
index 9aa152b2ea..ce0361a121 100644
--- a/src/southbridge/amd/pi/hudson/smbus.c
+++ b/src/southbridge/amd/pi/hudson/smbus.c
@@ -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 */
diff --git a/src/southbridge/amd/sb600/smbus.c b/src/southbridge/amd/sb600/smbus.c
index 6c61cf0f39..990098f1a6 100644
--- a/src/southbridge/amd/sb600/smbus.c
+++ b/src/southbridge/amd/sb600/smbus.c
@@ -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 */
diff --git a/src/southbridge/amd/sb700/smbus.c b/src/southbridge/amd/sb700/smbus.c
index 373c33985f..58bbe4cc6a 100644
--- a/src/southbridge/amd/sb700/smbus.c
+++ b/src/southbridge/amd/sb700/smbus.c
@@ -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 */
diff --git a/src/southbridge/amd/sb800/smbus.c b/src/southbridge/amd/sb800/smbus.c
index d9bb746f46..89244f4c4c 100644
--- a/src/southbridge/amd/sb800/smbus.c
+++ b/src/southbridge/amd/sb800/smbus.c
@@ -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 */