Files
OpenCellular/board/host/gpio.inc
Vic Yang 050c7df011 Add inductive charging control module
This module controls the inductive charging transmitter. For now, the
policy is to charge whenever possible.

BUG=chrome-os-partner:31392
TEST=Unit test passed
BRANCH=None

Change-Id: Ie48a38ad92fe2bc3329c4962e96572f2bc40b4e6
Signed-off-by: Vic Yang <victoryang@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/212715
2014-08-25 20:52:32 +00:00

23 lines
1015 B
C

/* -*- mode:c -*-
*
* Copyright (c) 2014 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.
*/
GPIO(EC_INT, 0, 0, 0, NULL)
GPIO(LID_OPEN, 0, 0, GPIO_INT_BOTH, lid_interrupt)
GPIO(POWER_BUTTON_L, 0, 0, GPIO_INT_BOTH, power_button_interrupt)
GPIO(WP, 0, 0, 0, NULL)
GPIO(ENTERING_RW, 0, 0, 0, NULL)
GPIO(AC_PRESENT, 0, 0, GPIO_INT_BOTH, extpower_interrupt)
GPIO(PCH_BKLTEN, 0, 0, 0, NULL)
GPIO(ENABLE_BACKLIGHT, 0, 0, 0, NULL)
GPIO(BUTTON_VOLUME_DOWN_L, 0, 0, GPIO_INT_BOTH, button_interrupt)
GPIO(BUTTON_VOLUME_UP, 0, 0, GPIO_INT_BOTH, button_interrupt)
/* Inductive charging */
GPIO(CHARGE_EN, 0, 0, 0, NULL)
GPIO(CHARGE_DONE, 0, 0, GPIO_INT_BOTH, inductive_charging_interrupt)
GPIO(BASE_CHG_VDD_EN, 0, 0, 0, NULL)