soc: arm: nordic_nrf: align nrf_power calls to new scheme

Now the API to manage GPREGRET register is unified for all devices
having one or more GPREGRET entries.

Signed-off-by: Nikodem Kastelik <nikodem.kastelik@nordicsemi.no>
This commit is contained in:
Nikodem Kastelik 2023-10-09 11:18:17 +02:00 committed by Carles Cufí
parent 70db8cd12a
commit a4cbe9e9c6
2 changed files with 2 additions and 2 deletions

View file

@ -29,7 +29,7 @@ LOG_MODULE_REGISTER(soc);
*/ */
void sys_arch_reboot(int type) void sys_arch_reboot(int type)
{ {
nrf_power_gpregret_set(NRF_POWER, (uint8_t)type); nrf_power_gpregret_set(NRF_POWER, 0, (uint8_t)type);
NVIC_SystemReset(); NVIC_SystemReset();
} }
#endif #endif

View file

@ -31,7 +31,7 @@ LOG_MODULE_REGISTER(soc);
*/ */
void sys_arch_reboot(int type) void sys_arch_reboot(int type)
{ {
nrf_power_gpregret_set(NRF_POWER, (uint8_t)type); nrf_power_gpregret_set(NRF_POWER, 0, (uint8_t)type);
NVIC_SystemReset(); NVIC_SystemReset();
} }
#endif #endif