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:
parent
becfed481e
commit
6a1416d0c2
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue