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:
parent
b3beafcbac
commit
90af62243e
|
@ -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";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue