summaryrefslogtreecommitdiff
path: root/board/marzipan/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/marzipan/board.c')
-rw-r--r--board/marzipan/board.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/board/marzipan/board.c b/board/marzipan/board.c
index 98716991cc..26b2c286c4 100644
--- a/board/marzipan/board.c
+++ b/board/marzipan/board.c
@@ -418,26 +418,6 @@ struct motion_sensor_t icm426xx_base_gyro = {
.max_frequency = ICM426XX_GYRO_MAX_FREQ,
};
-#ifndef TEST_BUILD
-/* This callback disables keyboard when convertibles are fully open */
-void lid_angle_peripheral_enable(int enable)
-{
- int chipset_in_s0 = chipset_in_state(CHIPSET_STATE_ON);
-
- if (enable) {
- keyboard_scan_enable(1, KB_SCAN_DISABLE_LID_ANGLE);
- } else {
- /*
- * Ensure that the chipset is off before disabling the keyboard.
- * When the chipset is on, the EC keeps the keyboard enabled and
- * the AP decides whether to ignore input devices or not.
- */
- if (!chipset_in_s0)
- keyboard_scan_enable(0, KB_SCAN_DISABLE_LID_ANGLE);
- }
-}
-#endif
-
static int base_accelgyro_config;
void motion_interrupt(enum gpio_signal signal)