Skip to content

Commit 2b8de8a

Browse files
ndreysLee Jones
authored andcommitted
mfd: rave-sp: Add legacy EEPROM access command translation
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>
1 parent 6c450bd commit 2b8de8a

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

‎drivers/mfd/rave-sp.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -635,6 +635,8 @@ static int rave_sp_default_cmd_translate(enum rave_sp_command command)
635635
return 0x1E;
636636
case RAVE_SP_CMD_RESET_REASON:
637637
return 0x1F;
638+
case RAVE_SP_CMD_RMB_EEPROM:
639+
return 0x20;
638640
default:
639641
return -EINVAL;
640642
}

‎include/linux/mfd/rave-sp.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ enum rave_sp_command {
2121
RAVE_SP_CMD_STATUS = 0xA0,
2222
RAVE_SP_CMD_SW_WDT = 0xA1,
2323
RAVE_SP_CMD_PET_WDT = 0xA2,
24+
RAVE_SP_CMD_RMB_EEPROM = 0xA4,
2425
RAVE_SP_CMD_SET_BACKLIGHT = 0xA6,
2526
RAVE_SP_CMD_RESET = 0xA7,
2627
RAVE_SP_CMD_RESET_REASON = 0xA8,

0 commit comments

Comments
 (0)