Skip to content

Commit 2a5e46f

Browse files
jonathannilsenrlubos
authored andcommitted
Revert "[nrf fromlist] drivers: nrf_ironside: dvfs abb analog status workaround"
This reverts commit 51f83ce. Signed-off-by: Jonathan Nilsen <[email protected]>
1 parent 9cbd909 commit 2a5e46f

File tree

1 file changed

+1
-12
lines changed
  • drivers/firmware/nrf_ironside

1 file changed

+1
-12
lines changed

drivers/firmware/nrf_ironside/dvfs.c

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,6 @@
1010

1111
static enum ironside_dvfs_oppoint current_dvfs_oppoint = IRONSIDE_DVFS_OPP_HIGH;
1212

13-
#if defined(CONFIG_SOC_SERIES_NRF54HX)
14-
#define ABB_STATUSANA_LOCKED_L_Pos (0UL)
15-
#define ABB_STATUSANA_LOCKED_L_Msk (0x1UL << ABB_STATUSANA_LOCKED_L_Pos)
16-
#define ABB_STATUSANA_REG_OFFSET (0x102UL)
17-
#else
18-
#error "Unsupported SoC series for IRONside DVFS"
19-
#endif
20-
2113
struct dvfs_hsfll_data_t {
2214
uint32_t new_f_mult;
2315
uint32_t new_f_trim_entry;
@@ -126,10 +118,7 @@ static void ironside_dvfs_change_oppoint_complete(enum ironside_dvfs_oppoint dvf
126118
static inline bool ironside_dvfs_is_abb_locked(NRF_ABB_Type *abb)
127119
{
128120
/* Check if ABB analog part is locked. */
129-
/* Temporary workaround until STATUSANA register is visible. */
130-
volatile const uint32_t *statusana = (uint32_t *)abb + ABB_STATUSANA_REG_OFFSET;
131-
132-
return ((*statusana & ABB_STATUSANA_LOCKED_L_Msk) != 0);
121+
return ((abb->STATUSANA & ABB_STATUSANA_LOCKED_Msk) != 0);
133122
}
134123

135124
/**

0 commit comments

Comments
 (0)