drivers: mfd: npm1300: Added shiphold button release event
Added event for detecting release of shiphold button Signed-off-by: Andy Sinclair <andy.sinclair@nordicsemi.no>
This commit is contained in:
parent
e1de306854
commit
733834851d
|
@ -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}};
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue