mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-28 02:35:28 +00:00
And start wiring to x86_power so it can detect AC state changes (needed to enable/disable turbo). *YES*, this compiles for BDS/Daisy now... Signed-off-by: Randall Spangler <rspangler@chromium.org> BUG=chrome-os-partner:9069 TEST=plug/unplug AC power and look for "x86 AC on" / "x86 AC off" in debug log Change-Id: I8399fab9637d6635a1c615f07448fd45b86bc25f
25 lines
662 B
C
25 lines
662 B
C
/* Copyright (c) 2012 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.
|
|
*/
|
|
|
|
/* Power button module for Chrome EC */
|
|
|
|
#ifndef __CROS_EC_POWER_BUTTON_H
|
|
#define __CROS_EC_POWER_BUTTON_H
|
|
|
|
#include "common.h"
|
|
#include "gpio.h"
|
|
|
|
/* Interrupt handler for the power button and lid switch. Passed the signal
|
|
* which triggered the interrupt. */
|
|
void power_button_interrupt(enum gpio_signal signal);
|
|
|
|
/* Power button task */
|
|
void power_button_task(void);
|
|
|
|
/* Return non-zero if AC power is present. */
|
|
int power_ac_present(void);
|
|
|
|
#endif /* __CROS_EC_POWER_BUTTON_H */
|