2849cd7c6d
SAMv7 reset controller stores the cause of last reset (SW reset, power up, pin reset etc.) in status register. This commit adds function that allows the board to retrieve this information. This function should be called from board support layer either during initialization or based on incoming ioctl call. Adding the sam_get_reset_cause() to sam_systemreset.c also resulted in always compiling this file by default and only putting up_systemreset() under CONFIG_SAMV7_SYSTEMRESET option. Also header file sam_systemreset.h was created as it defines reset types in comfortable manner for future processing in board layer. This is done to avoid passing boardctl dependent structure to architecture layer. Signed-off-by: Michal Lenc <michallenc@seznam.cz> |
||
---|---|---|
.. | ||
arm | ||
arm64 | ||
avr | ||
ceva | ||
dummy | ||
hc | ||
mips | ||
misoc | ||
or1k | ||
renesas | ||
risc-v | ||
sim | ||
sparc | ||
x86 | ||
x86_64 | ||
xtensa | ||
z16 | ||
z80 | ||
CMakeLists.txt | ||
Kconfig |