Files
OpenCellular/include/charger_detect.h
Mary Ruthven 9b4f662a8e lucid: add support to detect BC1.2 suppliers
Use built-in USB periperal to detect BC1.2 suppliers and update the
charge manager.

BUG=chrome-os-partner:48658
BRANCH=None
TEST=manual for lucid. Use a samus as the supplier, and insert the
charger into Lucid. Verify that it identifies it as SDP. Use a wall
charger and verify that Lucid identifies it as DCP.

Change-Id: I7842e9f75874f727837df5bfc28690662caf821c
Signed-off-by: Mary Ruthven <mruthven@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/329236
Reviewed-by: Shawn N <shawnn@chromium.org>
2016-02-26 21:22:07 -08:00

18 lines
471 B
C

/* Copyright 2016 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.
*/
/* Detect what adapter is connected */
#ifndef __CROS_CHARGER_DETECT_H
#define __CROS_CHARGER_DETECT_H
/*
* Get attached device type.
*
* @return CHARGE_SUPPLIER_BC12_* or 0 if the device type was not detected
*/
int charger_detect_get_device_type(void);
#endif /* __CROS_CHARGER_DETECT_H */