summaryrefslogtreecommitdiff
path: root/src/southbridge/nvidia/ck804/smbus.h
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2016-10-05 22:17:30 +0200
committerMartin Roth <martinroth@google.com>2016-10-11 23:33:23 +0200
commit49a7c37de95531eb2f8037542806ec56240388be (patch)
tree10dca0b6e05329afe2e5f2b531087141d27f1fd7 /src/southbridge/nvidia/ck804/smbus.h
parent571fb1fb4432d7e1e18ef610adbca6971e01573d (diff)
downloadcoreboot-49a7c37de95531eb2f8037542806ec56240388be.tar.xz
southbridge/nvidia: Remove commented code
Change-Id: Ice4a5cae1a289852895012bb55035707b54cefb5 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/16899 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/southbridge/nvidia/ck804/smbus.h')
-rw-r--r--src/southbridge/nvidia/ck804/smbus.h43
1 files changed, 0 insertions, 43 deletions
diff --git a/src/southbridge/nvidia/ck804/smbus.h b/src/southbridge/nvidia/ck804/smbus.h
index 6d0c510f89..40b8cb7dcd 100644
--- a/src/southbridge/nvidia/ck804/smbus.h
+++ b/src/southbridge/nvidia/ck804/smbus.h
@@ -34,25 +34,6 @@ static inline void smbus_delay(void)
outb(0x80, 0x80);
}
-#if 0
-/* Not needed, upon write to PRTCL, the status will be auto-cleared. */
-static int smbus_wait_until_ready(unsigned smbus_io_base)
-{
- unsigned long loops;
- loops = SMBUS_TIMEOUT;
- do {
- unsigned char val;
- smbus_delay();
- val = inb(smbus_io_base + SMBHSTSTAT);
- val &= 0x1f;
- if (val == 0)
- return 0;
- outb(val, smbus_io_base + SMBHSTSTAT);
- } while (--loops);
- return -2;
-}
-#endif
-
static int smbus_wait_until_done(unsigned smbus_io_base)
{
unsigned long loops;
@@ -72,12 +53,6 @@ static int do_smbus_recv_byte(unsigned smbus_io_base, unsigned device)
{
unsigned char global_status_register, byte;
-#if 0
- /* Not needed, upon write to PRTCL, the status will be auto-cleared. */
- if (smbus_wait_until_ready(smbus_io_base) < 0)
- return -2;
-#endif
-
/* Set the device I'm talking to. */
outb(((device & 0x7f) << 1) | 1, smbus_io_base + SMBXMITADD);
smbus_delay();
@@ -112,12 +87,6 @@ static int do_smbus_send_byte(unsigned smbus_io_base, unsigned device,
{
unsigned global_status_register;
-#if 0
- /* Not needed, upon write to PRTCL, the status will be auto-cleared. */
- if (smbus_wait_until_ready(smbus_io_base) < 0)
- return -2;
-#endif
-
outb(val, smbus_io_base + SMBHSTDAT0);
smbus_delay();
@@ -151,12 +120,6 @@ static int do_smbus_read_byte(unsigned smbus_io_base, unsigned device,
{
unsigned char global_status_register, byte;
-#if 0
- /* Not needed, upon write to PRTCL, the status will be auto-cleared. */
- if (smbus_wait_until_ready(smbus_io_base) < 0)
- return -2;
-#endif
-
/* Set the device I'm talking to. */
outb(((device & 0x7f) << 1) | 1, smbus_io_base + SMBXMITADD);
smbus_delay();
@@ -191,12 +154,6 @@ static int do_smbus_write_byte(unsigned smbus_io_base, unsigned device,
{
unsigned global_status_register;
-#if 0
- /* Not needed, upon write to PRTCL, the status will be auto-cleared. */
- if (smbus_wait_until_ready(smbus_io_base) < 0)
- return -2;
-#endif
-
outb(val, smbus_io_base + SMBHSTDAT0);
smbus_delay();