summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Gmeiner <christian.gmeiner@gmail.com>2013-06-05 16:40:34 +0200
committerPatrick Georgi <patrick@georgi-clan.de>2013-08-16 11:27:54 +0200
commit95b573a2db59c21cc60cd6802194beb999919e7f (patch)
tree08bb51e23d9ed1851e1a70b3c32fa5934bec3536
parent59c3a0615498b6fa79bb4152deab7e837f7ed389 (diff)
AMD Southbridge CS5536: make use of #include <device/smbus_def.h>
Change-Id: Ia2dff49d3e2b086546785d992f2d92bcf4d1ef1c Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com> Reviewed-on: http://review.coreboot.org/3376 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
-rw-r--r--src/southbridge/amd/cs5536/smbus.c3
-rw-r--r--src/southbridge/amd/cs5536/smbus.h2
2 files changed, 2 insertions, 3 deletions
diff --git a/src/southbridge/amd/cs5536/smbus.c b/src/southbridge/amd/cs5536/smbus.c
index f6b187e523..5373824587 100644
--- a/src/southbridge/amd/cs5536/smbus.c
+++ b/src/southbridge/amd/cs5536/smbus.c
@@ -22,9 +22,6 @@
#include "cs5536.h"
#include "smbus.h"
-#define SMBUS_ERROR -1
-#define SMBUS_WAIT_UNTIL_READY_TIMEOUT -2
-#define SMBUS_WAIT_UNTIL_DONE_TIMEOUT -3
#define SMBUS_TIMEOUT (1000)
static void smbus_delay(void)
diff --git a/src/southbridge/amd/cs5536/smbus.h b/src/southbridge/amd/cs5536/smbus.h
index cbfa7b2baa..0dd2fc5bb8 100644
--- a/src/southbridge/amd/cs5536/smbus.h
+++ b/src/southbridge/amd/cs5536/smbus.h
@@ -20,6 +20,8 @@
#ifndef _CS5536_SMBUS_H
#define _CS5536_SMBUS_H
+#include <device/smbus_def.h>
+
int smbus_start_condition(unsigned smbus_io_base);
int smbus_stop_condition(unsigned smbus_io_base);
int smbus_check_stop_condition(unsigned smbus_io_base);