Skip to content

Commit

Permalink
mfd: rave-sp: Add legacy EEPROM access command translation
Browse files Browse the repository at this point in the history
This is needed to make rave-sp-eeprom driver work on "legacy"
firmware.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
  • Loading branch information
Andrey Smirnov authored and Lee Jones committed Jul 27, 2018
1 parent 6c450bd commit 2b8de8a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/mfd/rave-sp.c
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,8 @@ static int rave_sp_default_cmd_translate(enum rave_sp_command command)
return 0x1E;
case RAVE_SP_CMD_RESET_REASON:
return 0x1F;
case RAVE_SP_CMD_RMB_EEPROM:
return 0x20;
default:
return -EINVAL;
}
Expand Down
1 change: 1 addition & 0 deletions include/linux/mfd/rave-sp.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ enum rave_sp_command {
RAVE_SP_CMD_STATUS = 0xA0,
RAVE_SP_CMD_SW_WDT = 0xA1,
RAVE_SP_CMD_PET_WDT = 0xA2,
RAVE_SP_CMD_RMB_EEPROM = 0xA4,
RAVE_SP_CMD_SET_BACKLIGHT = 0xA6,
RAVE_SP_CMD_RESET = 0xA7,
RAVE_SP_CMD_RESET_REASON = 0xA8,
Expand Down

0 comments on commit 2b8de8a

Please sign in to comment.