From 6a1416d0c2c03416ad2af5946d294dca6f4495e1 Mon Sep 17 00:00:00 2001 From: Pavlo Hamov Date: Thu, 3 Jun 2021 20:34:39 +0300 Subject: [PATCH] soc: arm: cc32xx: Override Reboot implementation Support cold, hot reboots. Cold will reboot all periherals Signed-off-by: Pavlo Hamov --- soc/arm/ti_simplelink/cc32xx/soc.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/soc/arm/ti_simplelink/cc32xx/soc.c b/soc/arm/ti_simplelink/cc32xx/soc.c index 3d9055e4373..684dc101a9a 100644 --- a/soc/arm/ti_simplelink/cc32xx/soc.c +++ b/soc/arm/ti_simplelink/cc32xx/soc.c @@ -12,6 +12,12 @@ #include #include +/* 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);