mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-10-31 18:09:19 +00:00
e30bfae692
The SMB350 switched-mode based external charger supports stack-cell battery charging. The driver controls charger-enable and charger-suspend/resume via the device EN and SUSP pins. The driver reports the charger status via the power supply framework. IRQ is triggered by the device STAT pin upon status change. Change-Id: Iea5706421b252c586d9c79d9688e7899f12f04a8 Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
35 lines
1.1 KiB
C
35 lines
1.1 KiB
C
/* Copyright (c) 2012 The Linux Foundation. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 and
|
|
* only version 2 as published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it will be useful;
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
*/
|
|
#ifndef __SMB350_H__
|
|
#define __SMB350_H__
|
|
|
|
#define SMB350_NAME "smb350"
|
|
|
|
/**
|
|
* struct smb350_platform_data
|
|
* structure to pass board specific information to the smb137b charger driver
|
|
* @chg_current_ma: maximum fast charge current in mA
|
|
* @term_current_ma: charge termination current in mA
|
|
* @chg_en_n_gpio: gpio to enable or disable charging
|
|
* @chg_susp_n_gpio: put active low to allow chip to suspend and disable I2C
|
|
* @stat_gpio: STAT pin, active low, '0' when charging.
|
|
*/
|
|
struct smb350_platform_data {
|
|
int chg_en_n_gpio;
|
|
int chg_susp_n_gpio;
|
|
int chg_current_ma;
|
|
int term_current_ma;
|
|
int stat_gpio;
|
|
};
|
|
|
|
#endif
|