mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-27 18:25:05 +00:00
This will allow ARM code to use the same lid switch code (in a subsequent CL). BUG=chrome-os-partner:18343 BRANCH=none TEST=open lid; system boots. close lid; system suspends. open lid; resumes. Change-Id: I83536a3ad24c4446dccf8a6b6e296756659070a8 Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/47043 Reviewed-by: Bill Richardson <wfrichar@chromium.org>
28 lines
620 B
C
28 lines
620 B
C
/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
/* Lid switch API for Chrome EC */
|
|
|
|
#ifndef __CROS_EC_LID_SWITCH_H
|
|
#define __CROS_EC_LID_SWITCH_H
|
|
|
|
#include "common.h"
|
|
|
|
/**
|
|
* Return non-zero if lid is open.
|
|
*
|
|
* Uses the debounced lid state, not the raw signal from the GPIO.
|
|
*/
|
|
int lid_is_open(void);
|
|
|
|
/**
|
|
* Interrupt handler for lid switch.
|
|
*
|
|
* @param signal Signal which triggered the interrupt.
|
|
*/
|
|
void lid_interrupt(enum gpio_signal signal);
|
|
|
|
#endif /* __CROS_EC_LID_SWITCH_H */
|