soc: ambiq: workaround for issue #90777

This commit workarounds issue #90777

Signed-off-by: Hao Luo <hluo@ambiq.com>
This commit is contained in:
Hao Luo 2025-06-13 09:42:35 +08:00 committed by Benjamin Cabé
commit a54197b2f8

View file

@ -48,9 +48,9 @@ void soc_early_init_hook(void)
/* /*
* Set default temperature for spotmgr to room temperature * Set default temperature for spotmgr to room temperature
*/ */
am_hal_pwrctrl_temp_thresh_t dummy; am_hal_pwrctrl_temp_thresh_t dummy[32];
am_hal_pwrctrl_temp_update(25.0f, &dummy); am_hal_pwrctrl_temp_update(25.0f, dummy);
/* Enable Icache*/ /* Enable Icache*/
sys_cache_instr_enable(); sys_cache_instr_enable();