summaryrefslogtreecommitdiffstats
path: root/src/usr/initservice/bootconfig
diff options
context:
space:
mode:
authorDean Sanner <dsanner@us.ibm.com>2016-06-14 07:34:19 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2016-09-20 12:48:27 -0400
commitd4ad36ca10f64fc5028a2050d96bc46706288bbe (patch)
treee1aa56b2ad86eb8458c8828d794f9cb5c269eb49 /src/usr/initservice/bootconfig
parentfdc14c69e7367e34b00df532de7094586f5935f6 (diff)
downloadblackbird-hostboot-d4ad36ca10f64fc5028a2050d96bc46706288bbe.tar.gz
blackbird-hostboot-d4ad36ca10f64fc5028a2050d96bc46706288bbe.zip
Updates to compile for P9 BMC_AST2400 istep control
Change-Id: I260b0c00053733043718f606037f60a836ef621f Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/25796 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> Reviewed-by: Matthew A. Ploetz <maploetz@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/initservice/bootconfig')
-rw-r--r--src/usr/initservice/bootconfig/bootconfig_ast2400.C20
1 files changed, 15 insertions, 5 deletions
diff --git a/src/usr/initservice/bootconfig/bootconfig_ast2400.C b/src/usr/initservice/bootconfig/bootconfig_ast2400.C
index 438b32e84..d0d1a3e74 100644
--- a/src/usr/initservice/bootconfig/bootconfig_ast2400.C
+++ b/src/usr/initservice/bootconfig/bootconfig_ast2400.C
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2015 */
+/* Contributors Listed Below - COPYRIGHT 2015,2016 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -298,6 +298,7 @@ errlHndl_t AST2400BootConfig::readIstepControl( istepControl_t &o_stepInfo )
errlHndl_t AST2400BootConfig::writeIstepControl( istepControl_t i_istepCtl )
{
errlHndl_t l_err = NULL;
+ size_t l_len = sizeof(uint8_t);
// read istep control from 0x2a
TRACFCOMP( g_bc_trace, "AST2400BootConfig:: Write istep control %x", i_istepCtl.istepControl);
@@ -305,12 +306,21 @@ errlHndl_t AST2400BootConfig::writeIstepControl( istepControl_t i_istepCtl )
do
{
//write status
- l_err = writeSIORegister( ISTEP_STATUS_REG, i_istepCtl.istepStatus);
- if(l_err) break;
+ l_err = deviceOp( DeviceFW::WRITE,
+ TARGETING::MASTER_PROCESSOR_CHIP_TARGET_SENTINEL,
+ &(i_istepCtl.istepStatus),
+ l_len,
+ DEVICE_SIO_ADDRESS(SIO::DONT_CARE, ISTEP_STATUS_REG));
+ if(l_err) { break; }
//write command/control
- l_err = writeSIORegister( ISTEP_HOST_CTL_REG, i_istepCtl.istepControl);
- if(l_err) break;
+ l_err = deviceOp( DeviceFW::WRITE,
+ TARGETING::MASTER_PROCESSOR_CHIP_TARGET_SENTINEL,
+ &(i_istepCtl.istepControl),
+ l_len,
+ DEVICE_SIO_ADDRESS(SIO::DONT_CARE,
+ ISTEP_HOST_CTL_REG));
+ if(l_err) { break; }
}
while(0);
OpenPOWER on IntegriCloud