summaryrefslogtreecommitdiffstats
path: root/src/import/chips/p9/procedures/hwp/pm/p9_pm_ppm_firinit.H
diff options
context:
space:
mode:
authorSangeetha T S <sangeet2@in.ibm.com>2016-04-21 00:20:19 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2016-06-10 15:12:55 -0400
commitb9c4c1a515fea41bdb28809e0cb5d8fb801145c5 (patch)
tree644f0f8694733a1cf3612498bef2692a7650bf0e /src/import/chips/p9/procedures/hwp/pm/p9_pm_ppm_firinit.H
parentf1d5c51ab1ef52f2898be22b88e63fef177db204 (diff)
downloadtalos-hostboot-b9c4c1a515fea41bdb28809e0cb5d8fb801145c5.tar.gz
talos-hostboot-b9c4c1a515fea41bdb28809e0cb5d8fb801145c5.zip
p9_pm_ppm_firinit & p9_pm_cme_firinit L2 delivery
Change-Id: I1531d77ad38f8a6a6525247e8e048c6d3232a7af Original-Change-Id: I6ff8d8d714419939b41a1a01e7ebafa339f3c9e0 RTC:136790 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/23524 Tested-by: Jenkins Server Tested-by: Hostboot CI Reviewed-by: Gregory S. Still <stillgs@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/25644 Tested-by: FSP CI Jenkins Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/import/chips/p9/procedures/hwp/pm/p9_pm_ppm_firinit.H')
-rw-r--r--src/import/chips/p9/procedures/hwp/pm/p9_pm_ppm_firinit.H70
1 files changed, 8 insertions, 62 deletions
diff --git a/src/import/chips/p9/procedures/hwp/pm/p9_pm_ppm_firinit.H b/src/import/chips/p9/procedures/hwp/pm/p9_pm_ppm_firinit.H
index c920fcddb..1c1074cb3 100644
--- a/src/import/chips/p9/procedures/hwp/pm/p9_pm_ppm_firinit.H
+++ b/src/import/chips/p9/procedures/hwp/pm/p9_pm_ppm_firinit.H
@@ -7,7 +7,7 @@
/* */
/* EKB Project */
/* */
-/* COPYRIGHT 2015 */
+/* COPYRIGHT 2015,2016 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -18,79 +18,25 @@
/* IBM_PROLOG_END_TAG */
///
/// @file p9_pm_ppm_firinit.H
-/// @brief Configures the PPM FIR errors
+/// @brief Configures the PPM FIRs, Mask & actions
///
// *HWP HW Owner: Amit Kumar <akumar3@us.ibm.com>
// *HWP Backup HWP Owner: Greg Still <stillgs@us.ibm.com>
// *HWP FW Owner: Sangeetha T S <sangeet2@in.ibm.com>
// *HWP Team: PM
-// *HWP Level: 1
+// *HWP Level: 2
// *HWP Consumed by: FSP:HS
#ifndef _P9_PM_PPM_FIRINIT_H_
#define _P9_PM_PPM_FIRINIT_H_
+
//------------------------------------------------------------------------------
// Includes
//------------------------------------------------------------------------------
#include <fapi2.H>
#include <p9_pm.H>
-#include <p9_pm_utils.H>
-
-//------------------------------------------------------------------------------
-// Global Constants
-//------------------------------------------------------------------------------
-
-#define PPM_FIR_REGISTER_LENGTH 43
-
-namespace PMFIR
-{
-enum PPM_FIRS
-{
- PPM_SLEEP_ENTRY_NOTIFY_PMC_HANG_ERR_MASK = 0,
- PPM_SLEEP_ENTRY_NOTIFY_PMC_ASSIST_HANG_ERR_MASK = 1,
- PPM_SLEEP_ENTRY_NOTIFY_PMC_ERR_MASK = 2,
- PPM_SLEEP_EXIT_INVOKE_PORE_ERR_MASK = 3,
- PPM_WINKLE_ENTRY_NOTIFY_PMC_ERR_MASK = 4,
- PPM_WINKLE_ENTRY_SEND_INT_ASSIST_ERR_MASK = 5,
- PPM_WINKLE_EXIT_NOTIFY_PMC_ERR_MASK = 6,
- PPM_WAIT_DPLL_LOCK_ERR_MASK = 7,
- PPM_SPARE8_ERR_MASK = 8,
- PPM_WINKLE_EXIT_SEND_INT_ASSIST_ERR_MASK = 9,
- PPM_WINKLE_EXIT_SEND_INT_POWUP_ASSIST_ERR_MASK = 10,
- PPM_WRITE_FSM_GOTO_REG_IN_INVALID_STATE_ERR_MASK = 11,
- PPM_WRITE_PMGP0_IN_INVALID_STATE_ERR_MASK = 12,
- PPM_FREQ_OVERFLOW_IN_PSTATE_MODE_ERR_MASK = 13,
- PPM_ECO_RS_BYPASS_CONFUSION_ERR_MASK = 14,
- PPM_CORE_RS_BYPASS_CONFUSION_ERR_MASK = 15,
- PPM_READ_LPST_IN_PSTATE_MODE_ERR_MASK = 16,
- PPM_LPST_READ_CORR_ERR_MASK = 17,
- PPM_LPST_READ_UNCORR_ERR_MASK = 18,
- PPM_PFET_STRENGTH_OVERFLOW_ERR_MASK = 19,
- PPM_VDS_LOOKUP_ERR_MASK = 20,
- PPM_IDLE_INTERRUPT_TIMEOUT_ERR_MASK = 21,
- PPM_PSTATE_INTERRUPT_TIMEOUT_ERR_MASK = 22,
- PPM_GLOBAL_ACTUAL_SYNC_INTERRUPT_TIMEOUT_ERR_MASK = 23,
- PPM_PMAX_SYNC_INTERRUPT_TIMEOUT_ERR_MASK = 24,
- PPM_GLOBAL_ACTUAL_PSTATE_PROTOCOL_ERR_MASK = 25,
- PPM_PMAX_PROTOCOL_ERR_MASK = 26,
- PPM_IVRM_GROSS_OR_FINE_ERR_MASK = 27,
- PPM_IVRM_RANGE_ERR_MASK = 28,
- PPM_DPLL_CPM_FMIN_ERR_MASK = 29,
- PPM_DPLL_DCO_FULL_ERR_MASK = 30,
- PPM_DPLL_DCO_EMPTY_ERR_MASK = 31,
- PPM_DPLL_INT_ERR_MASK = 32,
- PPM_FMIN_AND_NOT_CPMBIT_ERR_MASK = 33,
- PPM_DPLL_FASTER_THAN_FMAX_PLUS_DELTA1_ERR_MASK = 34,
- PPM_DPLL_SLOWER_THAN_FMIN_MINUS_DELTA2_ERR_MASK = 35,
- PPM_RESCLK_CSB_INSTR_VECTOR_CHG_IN_INVALID_STATE_ERR_MASK = 36,
- PPM_RESLKC_BAND_BOUNDARY_CHG_IN_INVALID_STATE_ERR_MASK = 37,
- PPM_OCC_HEARTBEAT_LOSS_ERR_MASK = 38,
- PPM_SPARE39_ERR_MASK = 39,
- PPM_SPARE40_ERR_MASK = 40,
- PPM_SPARE41_ERR_MASK = 41,
- PPM_SPARE42_ERR_MASK = 42
-};
-}
+#include <p9_pm_fir_class.H>
+#include <p9_quad_scom_addresses.H>
// function pointer typedef definition for HWP call support
typedef fapi2::ReturnCode (*p9_pm_ppm_firinit_FP_t) (
@@ -106,10 +52,10 @@ extern "C"
//------------------------------------------------------------------------------
///
-/// @brief Configures the PPM FIR in each PPM macro
+/// @brief Reset/init the PPM FIRs, Actions and Masks
///
/// @param[in] i_target Chip target
-/// @param[in] i_mode Control mode for the procedure: PM_RESET
+/// @param[in] i_mode Control mode for the procedure
///
/// @return FAPI2_RC_SUCCESS if success, else error code.
///
OpenPOWER on IntegriCloud