Skip to content

Commit

Permalink
[nrf fromlist] modules: hal_nordic: dvfs: patch medlow trim entry
Browse files Browse the repository at this point in the history
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.

Upstream PR: zephyrproject-rtos/zephyr#78665

Signed-off-by: Lukasz Stepnicki <[email protected]>
  • Loading branch information
lstnl authored and carlescufi committed Sep 18, 2024
1 parent 51545d0 commit 2fb756e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/hal_nordic/nrfs/dvfs/ld_dvfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,11 @@ int32_t ld_dvfs_configure_hsfll(enum dvfs_frequency_setting oppoint)

uint8_t freq_trim = get_dvfs_oppoint_data(oppoint)->new_f_trim_entry;

/* Temporary patch fixing medlow oppoint trim index */
if (oppoint == DVFS_FREQ_MEDLOW) {
freq_trim = 2;
}

#if defined(CONFIG_SOC_NRF54H20_CPUAPP) || defined(CONFIG_SOC_NRF9280_CPUAPP)
hsfll_trim.vsup = NRF_FICR->TRIM.APPLICATION.HSFLL.TRIM.VSUP;
hsfll_trim.coarse = NRF_FICR->TRIM.APPLICATION.HSFLL.TRIM.COARSE[freq_trim];
Expand Down

0 comments on commit 2fb756e

Please sign in to comment.