summaryrefslogtreecommitdiff
path: root/src/southbridge/intel/ibexpeak/smbus.h
diff options
context:
space:
mode:
authorVladimir Serbinenko <phcoder@gmail.com>2014-01-27 23:57:44 +0100
committerRudolf Marek <r.marek@assembler.cz>2014-02-01 18:43:11 +0100
commit5f20dbfbe38c6a7797b578f46006299a73d1bd90 (patch)
treeadfd4fe68f1cea91ee128504cf43daeb70dd1826 /src/southbridge/intel/ibexpeak/smbus.h
parente57718f522d3324bf9343200fabeb316700f49ed (diff)
ibexpeak: add smbus_write_byte
Change-Id: I045f1cff794d3c965c502fff98dd2442af2143bd Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com> Reviewed-on: http://review.coreboot.org/4839 Tested-by: build bot (Jenkins) Reviewed-by: Rudolf Marek <r.marek@assembler.cz>
Diffstat (limited to 'src/southbridge/intel/ibexpeak/smbus.h')
-rw-r--r--src/southbridge/intel/ibexpeak/smbus.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/southbridge/intel/ibexpeak/smbus.h b/src/southbridge/intel/ibexpeak/smbus.h
index 6858e7d176..cf57685fc1 100644
--- a/src/southbridge/intel/ibexpeak/smbus.h
+++ b/src/southbridge/intel/ibexpeak/smbus.h
@@ -99,8 +99,6 @@ static int do_smbus_read_byte(unsigned smbus_base, unsigned device, unsigned add
return byte;
}
-#ifdef __PRE_RAM__
-
static int do_smbus_write_byte(unsigned smbus_base, unsigned device, unsigned address, unsigned data)
{
unsigned char global_status_register;
@@ -144,6 +142,8 @@ static int do_smbus_write_byte(unsigned smbus_base, unsigned device, unsigned a
return 0;
}
+#ifdef __PRE_RAM__
+
static int do_smbus_block_write(unsigned smbus_base, unsigned device,
unsigned cmd, unsigned bytes, const u8 *buf)
{