Skip to content

Commit

Permalink
Adding in LPC functional reset to sbe_lpc_init
Browse files Browse the repository at this point in the history
Change-Id: I2343dcaad657640258bcdf7954a9b5702a1061aa
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24885
Tested-by: Jenkins Server
Tested-by: PPE CI
Reviewed-by: Joseph J. McGill <[email protected]>
Reviewed-by: Thi N. Tran <[email protected]>
Reviewed-by: Jennifer A. Stofer <[email protected]>
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/71473
Tested-by: Jenkins Server <[email protected]>
Tested-by: Jenkins OP Build CI <[email protected]>
Tested-by: FSP CI Jenkins <[email protected]>
Reviewed-by: Christian R. Geddes <[email protected]>
  • Loading branch information
CHRISTINA L. GRAVES authored and crgeddes committed Feb 12, 2019
1 parent 166a4cb commit b455f92
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions src/import/chips/p9/procedures/hwp/perv/p9_sbe_lpc_init.C
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,14 @@
#include "p9_sbe_lpc_init.H"

#include "p9_perv_scom_addresses.H"

#include "p9_perv_scom_addresses_fld.H"

fapi2::ReturnCode p9_sbe_lpc_init(const
fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>& i_target_chip)
{
fapi2::buffer<uint64_t> l_data64;
FAPI_DBG("Entering ...");

//activate LPCM reset input
//TODO: ADU register address TBD

// set LPC clock mux select to internal clock
//Setting CPLT_CTRL0 register value
l_data64.flush<0>();
Expand All @@ -63,8 +60,10 @@ fapi2::ReturnCode p9_sbe_lpc_init(const
l_data64.setBit<1>(); //PERV.CPLT_CTRL0.TC_UNIT_SYNCCLK_MUXSEL_DC = 0
FAPI_TRY(fapi2::putScom(i_target_chip, PERV_TP_CPLT_CTRL0_CLEAR, l_data64));

//de-activate LPCM reset input
//TODO: ADU register address TBD
//Settting registers to do an LPC functional reset
l_data64.flush<0>().setBit<CPLT_CONF1_TC_LP_RESET>();
FAPI_TRY(fapi2::putScom(i_target_chip, PERV_N3_CPLT_CONF1_OR, l_data64));
FAPI_TRY(fapi2::putScom(i_target_chip, PERV_N3_CPLT_CONF1_CLEAR, l_data64));

FAPI_DBG("Exiting ...");

Expand Down
2 changes: 1 addition & 1 deletion src/import/chips/p9/procedures/hwp/perv/p9_sbe_lpc_init.H
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
#ifndef _P9_SBE_LPC_INIT_H_
#define _P9_SBE_LPC_INIT_H_


#include <fapi2.H>


Expand All @@ -52,6 +51,7 @@ typedef fapi2::ReturnCode (*p9_sbe_lpc_init_FP_t)(const
/// @return FAPI2_RC_SUCCESS if success, else error code.
extern "C"
{
const uint32_t CPLT_CONF1_TC_LP_RESET = 12;
fapi2::ReturnCode p9_sbe_lpc_init(const
fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>& i_target_chip);
}
Expand Down

0 comments on commit b455f92

Please sign in to comment.