summaryrefslogtreecommitdiffstats
path: root/src/usr/hwpf/hwp
diff options
context:
space:
mode:
authorTerry J. Opie <opiet@us.ibm.com>2012-11-27 14:15:04 -0600
committerA. Patrick Williams III <iawillia@us.ibm.com>2012-12-13 16:03:20 -0600
commitae09857da206659ed5a43a416a2827515a5ec3b5 (patch)
tree85aa81be071a1dcef15719e965e455d3a3dc1a6c /src/usr/hwpf/hwp
parent0e3cbd6ef804c8bd95711b6674ec13048b67a987 (diff)
downloadtalos-hostboot-ae09857da206659ed5a43a416a2827515a5ec3b5.tar.gz
talos-hostboot-ae09857da206659ed5a43a416a2827515a5ec3b5.zip
Program I2C Bus Divisor Value
Change-Id: I784a6b598298fcd09dcd5c108e0a47f1e7daa544 RTC: 49136 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/2440 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/hwpf/hwp')
-rw-r--r--src/usr/hwpf/hwp/start_payload/start_payload.C15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/usr/hwpf/hwp/start_payload/start_payload.C b/src/usr/hwpf/hwp/start_payload/start_payload.C
index c757df18c..4b62e5243 100644
--- a/src/usr/hwpf/hwp/start_payload/start_payload.C
+++ b/src/usr/hwpf/hwp/start_payload/start_payload.C
@@ -51,6 +51,7 @@
#include <sys/mmio.h>
#include <mbox/mbox_queues.H>
#include <mbox/mboxif.H>
+#include <i2c/i2cif.H>
#include <initservice/isteps_trace.H>
#include <hwpisteperror.H>
@@ -136,7 +137,7 @@ void* call_host_runtime_setup( void *io_pArgs )
// Write the HostServices attributes into mainstore
l_err = RUNTIME::populate_attributes();
- // - Update HDAT with tpmd logs
+ // - Update HDAT with tpmd logs
} while(0);
@@ -243,6 +244,18 @@ errlHndl_t callShutdown ( void )
do
{
+ // Phyp needs us to program all of the I2C masters with the bus
+ // divisor
+ TRACFCOMP( ISTEPS_TRACE::g_trac_isteps_trace,
+ "Setup I2C Masters" );
+ err = I2C::i2cSetupMasters();
+ if( err )
+ {
+ TRACFCOMP( ISTEPS_TRACE::g_trac_isteps_trace,
+ "Error setting up I2C Bus Divisors" );
+ break;
+ }
+
// Set scratch register to indicate Hostboot is [still] active.
const char * hostboot_string = "hostboot";
mmio_scratch_write(MMIO_SCRATCH_HOSTBOOT_ACTIVE,
OpenPOWER on IntegriCloud