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
1 changed files with 6 additions and 0 deletions
|
@ -12,6 +12,12 @@
|
||||||
#include <driverlib/rom_map.h>
|
#include <driverlib/rom_map.h>
|
||||||
#include <driverlib/prcm.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)
|
static int ti_cc32xx_init(const struct device *arg)
|
||||||
{
|
{
|
||||||
ARG_UNUSED(arg);
|
ARG_UNUSED(arg);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue