mfd: rave-sp: Add legacy watchdog ping command translation

This is needed to make rave-sp-wdt driver to properly ping the
watchdog on "legacy" firmware.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
This commit is contained in:
Andrey Smirnov 2018-07-06 19:41:07 -07:00 committed by Lee Jones
parent 2b8de8a832
commit 405dfd4899
1 changed files with 2 additions and 0 deletions

View File

@ -631,6 +631,8 @@ static int rave_sp_default_cmd_translate(enum rave_sp_command command)
return 0x14; return 0x14;
case RAVE_SP_CMD_SW_WDT: case RAVE_SP_CMD_SW_WDT:
return 0x1C; return 0x1C;
case RAVE_SP_CMD_PET_WDT:
return 0x1D;
case RAVE_SP_CMD_RESET: case RAVE_SP_CMD_RESET:
return 0x1E; return 0x1E;
case RAVE_SP_CMD_RESET_REASON: case RAVE_SP_CMD_RESET_REASON: