soc: arm: cc32xx: Override Reboot implementation

Support cold, hot reboots. Cold will reboot all periherals

Signed-off-by: Pavlo Hamov <pasha.gamov@gmail.com>
This commit is contained in:
Pavlo Hamov 2021-06-03 20:34:39 +03:00 committed by Maureen Helm
parent becfed481e
commit 6a1416d0c2

View file

@ -12,6 +12,12 @@
#include <driverlib/rom_map.h>
#include <driverlib/prcm.h>
/* Overrides the weak ARM implementation */
void sys_arch_reboot(int type)
{
MAP_PRCMMCUReset(!!type);
}
static int ti_cc32xx_init(const struct device *arg)
{
ARG_UNUSED(arg);