Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion drivers/firmware/nrf_ironside/dvfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@

static enum ironside_dvfs_oppoint current_dvfs_oppoint = IRONSIDE_DVFS_OPP_HIGH;

#if defined(CONFIG_SOC_SERIES_NRF54HX)
#define ABB_STATUSANA_LOCKED_L_Pos (0UL)
#define ABB_STATUSANA_LOCKED_L_Msk (0x1UL << ABB_STATUSANA_LOCKED_L_Pos)
#define ABB_STATUSANA_REG_OFFSET (0x102UL)
#else
#error "Unsupported SoC series for IRONside DVFS"
#endif

struct dvfs_hsfll_data_t {
uint32_t new_f_mult;
uint32_t new_f_trim_entry;
Expand Down Expand Up @@ -118,7 +126,10 @@ static void ironside_dvfs_change_oppoint_complete(enum ironside_dvfs_oppoint dvf
static inline bool ironside_dvfs_is_abb_locked(NRF_ABB_Type *abb)
{
/* Check if ABB analog part is locked. */
return ((abb->STATUSANA & ABB_STATUSANA_LOCKED_Msk) != 0);
/* Temporary workaround until STATUSANA register is visible. */
volatile const uint32_t *statusana = (uint32_t *)abb + ABB_STATUSANA_REG_OFFSET;

return ((*statusana & ABB_STATUSANA_LOCKED_L_Msk) != 0);
}

/**
Expand Down