nissa: Add missing interrupts for nivviks
Add the IMU and WP interrupts for nivviks.
TEST=zmake configure -b nivviks
BRANCH=none
#define AP_PROCHOT_INT(gpio, edge)
#endif
+#ifdef CONFIG_PLATFORM_EC_SWITCH
+ #define WP_INT() GPIO_INT(GPIO_WP_L, \
+ GPIO_INT_EDGE_BOTH, \
+ switch_interrupt)
+#else
+ #define WP_INT()
+#endif
+
#ifdef CONFIG_PLATFORM_EC_POWER_BUTTON
#define PWRBTN_INT() GPIO_INT(GPIO_POWER_BUTTON_L, \
GPIO_INT_EDGE_BOTH, \
#define LID_INT()
#endif
+#ifdef CONFIG_PLATFORM_EC_ACCELGYRO_LSM6DSO_AS_BASE
+ #define LSM6DSO_INT() GPIO_INT(GPIO_EC_IMU_INT_L, \
+ GPIO_INT_EDGE_FALLING, \
+ lsm6dso_interrupt)
+#else
+ #define LSM6DSO_INT()
+#endif
+
#ifdef CONFIG_PLATFORM_EC_VOLUME_BUTTONS
#define VOLBTN_INT(pin) GPIO_INT(pin, \
GPIO_INT_EDGE_BOTH, \
#define EC_CROS_GPIO_INTERRUPTS \
+ WP_INT() \
LID_INT() \
+ LSM6DSO_INT() \
PWRBTN_INT() \
VOLBTN_INT(GPIO_VOLUME_DOWN_L) \
VOLBTN_INT(GPIO_VOLUME_UP_L) \
