drivers: hwinfo: shell: Add missing reset cause strings

The hwinfo shell commands was missing human readable names for
* RESET_HARDWARE
* RESET_USER
* RESET_TEMPERATURE

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
This commit is contained in:
Pieter De Gendt 2022-07-07 16:46:53 +02:00 committed by Fabio Baltieri
parent b3beafcbac
commit 90af62243e
1 changed files with 9 additions and 0 deletions

View File

@ -77,6 +77,15 @@ static inline const char *cause_to_string(uint32_t cause)
case RESET_CLOCK:
return "clock";
case RESET_HARDWARE:
return "hardware";
case RESET_USER:
return "user";
case RESET_TEMPERATURE:
return "temperature";
default:
return "unknown";
}