mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-28 10:45:22 +00:00
Make internal APIs static, and remove board_ prefix for clarity. Move TSU6721 calls from charger task to extpower_usb functions for better encapsulation. No functional changes, just moving code. Yes, this will make cherry-picking back from spring to TOT less convenient, but now the code is more readable and it will make maintaining the PMU code easier as we add boards. BUG=chrome-os-partner:18343 BRANCH=none TEST=build spring Change-Id: I52b37e57fc8519859996a110b0503277c6f0bbc8 Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/47657
31 lines
689 B
C
31 lines
689 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.
|
|
*/
|
|
|
|
/* External power detection API for Chrome EC */
|
|
|
|
#ifndef __CROS_EC_EXTPOWER_H
|
|
#define __CROS_EC_EXTPOWER_H
|
|
|
|
#include "common.h"
|
|
|
|
#ifdef CONFIG_EXTPOWER_USB
|
|
/* USB-power-specific methods */
|
|
#include "extpower_usb.h"
|
|
#endif
|
|
|
|
/**
|
|
* Return non-zero if external power is present.
|
|
*/
|
|
int extpower_is_present(void);
|
|
|
|
/**
|
|
* Interrupt handler for external power GPIOs.
|
|
*
|
|
* @param signal Signal which triggered the interrupt.
|
|
*/
|
|
void extpower_interrupt(enum gpio_signal signal);
|
|
|
|
#endif /* __CROS_EC_EXTPOWER_H */
|