Skip to content

Commit

Permalink
SM-188: Skip XRESET workaround on PF09 B0 or later.
Browse files Browse the repository at this point in the history
Signed-off-by: Chuck Cannon <chuck.cannon@nxp.com>
  • Loading branch information
cecannon7 committed Nov 4, 2024
1 parent 15ff90d commit 72d9c9c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
9 changes: 0 additions & 9 deletions boards/mcimx95evk/sm/brd_sm_handlers.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,15 +130,6 @@ int32_t BRD_SM_SerialDevicesInit(void)
status = SM_ERR_HARDWARE_ERROR;
}

/* Disable XRESET monitor in STANDBY */
if (status == SM_ERR_SUCCESS)
{
if (!PF09_XrstStbyEnable(&g_pf09Dev, false))
{
status = SM_ERR_HARDWARE_ERROR;
}
}

/* Disable voltage monitor 1 */
if (status == SM_ERR_SUCCESS)
{
Expand Down
10 changes: 8 additions & 2 deletions components/pf09/fsl_pf09.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,15 @@ static const mask_reg_t maskInfo[PF09_MASK_LEN] =
/*--------------------------------------------------------------------------*/
bool PF09_Init(const PF09_Type *dev)
{
uint8_t devId;
uint8_t revId;

bool rc = PF09_PmicRead(dev, PF09_REG_DEV_FAM_ID, &devId);
bool rc = PF09_PmicRead(dev, PF09_REG_REV_ID, &revId);

/* Disable XRESET monitor in STANDBY */
if (rc && (revId < 0x20U))
{
rc = PF09_XrstStbyEnable(dev, false);
}

return rc;
}
Expand Down

0 comments on commit 72d9c9c

Please sign in to comment.