Skip to content

Commit 02045f1

Browse files
lstnlfabiobaltieri
authored andcommitted
modules: hal_nordic: dvfs: patch medlow trim entry
DVFS medlow oppoint should use trim entry index 2, this needs to be updated in hal/hal_nordic. Currently this is not possible because of time constraints that is why this temporary patch is applied. This is the only point where new_f_trim_entry is used. Signed-off-by: Lukasz Stepnicki <[email protected]>
1 parent 9d9089e commit 02045f1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

modules/hal_nordic/nrfs/dvfs/ld_dvfs.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,11 @@ int32_t ld_dvfs_configure_hsfll(enum dvfs_frequency_setting oppoint)
264264

265265
uint8_t freq_trim = get_dvfs_oppoint_data(oppoint)->new_f_trim_entry;
266266

267+
/* Temporary patch fixing medlow oppoint trim index */
268+
if (oppoint == DVFS_FREQ_MEDLOW) {
269+
freq_trim = 2;
270+
}
271+
267272
#if defined(CONFIG_SOC_NRF54H20_CPUAPP) || defined(CONFIG_SOC_NRF9280_CPUAPP)
268273
hsfll_trim.vsup = NRF_FICR->TRIM.APPLICATION.HSFLL.TRIM.VSUP;
269274
hsfll_trim.coarse = NRF_FICR->TRIM.APPLICATION.HSFLL.TRIM.COARSE[freq_trim];

0 commit comments

Comments
 (0)