mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-27 18:25:05 +00:00
The ID detection and charging circuits on Spring are very different from that on Kirby. PWM current limit is no longer used. The ID detection sequence is also different. Also, there is no boost circuit on Kirby. Given those hardware issues that we had to work around on Spring, it's unlikely that we will have another board that shares the same/similar ID detection design with Spring. Let's rename extpower_usb to extpower_spring to better reflect this. BUG=None TEST=Build and boot Spring. BRANCH=None Change-Id: I7c212a121eed55665593cb7e1b2b672891819940 Signed-off-by: Vic Yang <victoryang@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/67031
40 lines
1012 B
C
40 lines
1012 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 via USB on Spring for Chrome EC */
|
|
|
|
#ifndef __CROS_EC_EXTPOWER_SPRING_H
|
|
#define __CROS_EC_EXTPOWER_SPRING_H
|
|
|
|
#include "common.h"
|
|
|
|
/*
|
|
* TODO: this currently piggy-backs on the charger task. Should be able to
|
|
* move updates to deferred functions and get rid of all the ifdef's in the
|
|
* charger task. At that point, all these APIs will be internal to the
|
|
* extpower module and this entire header file can go away.
|
|
*/
|
|
|
|
/**
|
|
* Properly limit input power on EC boot.
|
|
*
|
|
* Called from charger task.
|
|
*/
|
|
void extpower_charge_init(void);
|
|
|
|
/**
|
|
* Update external power state.
|
|
*
|
|
* Called from charger task.
|
|
*/
|
|
void extpower_charge_update(int force_update);
|
|
|
|
/**
|
|
* Return non-zero if external power needs update from charge task.
|
|
*/
|
|
int extpower_charge_needs_update(void);
|
|
|
|
#endif /* __CROS_EC_EXTPOWER_SPRING_H */
|