summaryrefslogtreecommitdiff
path: root/src/southbridge/amd/sb700/smbus.c
diff options
context:
space:
mode:
authorTimothy Pearson <tpearson@raptorengineeringinc.com>2015-10-17 04:36:47 -0500
committerPeter Stuge <peter@stuge.se>2015-10-24 02:01:17 +0200
commitacbdade5cd02c0abed1f1a6c65501893bc6bd679 (patch)
treecb9e0c3df6584bcce04b48fe36070d841d7d664b /src/southbridge/amd/sb700/smbus.c
parentcab71b638f6bd9d8c7e6d7955d4527c5236177cb (diff)
downloadcoreboot-acbdade5cd02c0abed1f1a6c65501893bc6bd679.tar.xz
southbridge/amd/sb700: Allow use of auxiliary SMBUS controller
Change-Id: I29ece10eeefc2c75a3829c169f1e1aede7194ec2 Signed-off-by: Timothy Pearson <tpearson@raptorengineeringinc.com> Reviewed-on: http://review.coreboot.org/12079 Reviewed-by: Peter Stuge <peter@stuge.se> Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/southbridge/amd/sb700/smbus.c')
-rw-r--r--src/southbridge/amd/sb700/smbus.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/southbridge/amd/sb700/smbus.c b/src/southbridge/amd/sb700/smbus.c
index 94f5e247ae..bc9626ac4f 100644
--- a/src/southbridge/amd/sb700/smbus.c
+++ b/src/southbridge/amd/sb700/smbus.c
@@ -22,6 +22,11 @@
#include "smbus.h"
+extern uint8_t amd_sb700_aux_smbus;
+
+void smbus_switch_to_channel(uint8_t channel_number);
+uint8_t smbus_get_current_channel(void);
+
void alink_ab_indx(u32 reg_space, u32 reg_addr, u32 mask, u32 val)
{
u32 tmp;
@@ -216,4 +221,14 @@ int do_smbus_write_byte(u32 smbus_io_base, u32 device, u32 address, u8 val)
return 0;
}
+void smbus_switch_to_channel(uint8_t channel_number)
+{
+ amd_sb700_aux_smbus = !!channel_number;
+}
+
+uint8_t smbus_get_current_channel(void)
+{
+ return amd_sb700_aux_smbus;
+}
+
#endif