Skip to content

Commit

Permalink
drivers: mfd: npm1300: Added shiphold button release event
Browse files Browse the repository at this point in the history
Added event for detecting release of shiphold button

Signed-off-by: Andy Sinclair <[email protected]>
  • Loading branch information
aasinclair authored and carlescufi committed Oct 23, 2023
1 parent e1de306 commit 7338348
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/mfd/mfd_npm1300.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ static const struct event_reg_t event_reg[NPM1300_EVENT_MAX] = {
[NPM1300_EVENT_BATTERY_DETECTED] = {0x0EU, 0x01U},
[NPM1300_EVENT_BATTERY_REMOVED] = {0x0EU, 0x02U},
[NPM1300_EVENT_SHIPHOLD_PRESS] = {0x12U, 0x01U},
[NPM1300_EVENT_SHIPHOLD_RELEASE] = {0x12U, 0x02U},
[NPM1300_EVENT_WATCHDOG_WARN] = {0x12U, 0x08U},
[NPM1300_EVENT_VBUS_DETECTED] = {0x16U, 0x01U},
[NPM1300_EVENT_VBUS_REMOVED] = {0x16U, 0x02U}};
Expand Down
1 change: 1 addition & 0 deletions include/zephyr/drivers/mfd/npm1300.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ enum mfd_npm1300_event_t {
NPM1300_EVENT_BATTERY_DETECTED,
NPM1300_EVENT_BATTERY_REMOVED,
NPM1300_EVENT_SHIPHOLD_PRESS,
NPM1300_EVENT_SHIPHOLD_RELEASE,
NPM1300_EVENT_WATCHDOG_WARN,
NPM1300_EVENT_VBUS_DETECTED,
NPM1300_EVENT_VBUS_REMOVED,
Expand Down

0 comments on commit 7338348

Please sign in to comment.