big: Modify LGC battery setting based on battery spec

1. Modify voltage_max
2. Set CP point

BUG=chrome-os-partner:27859
BRANCH=Big
TEST=Plug in AC and battery, use UART command "charger" to check
v_batt and I_in and the values are correct.

Change-Id: If83a444338e8d520e6c2f4d04ca6016c14cea8bd
Reviewed-on: https://chromium-review.googlesource.com/193584
Reviewed-by: Yung-chieh Lo <yjlou@chromium.org>
Commit-Queue: Lin Cloud <cloud_lin@compal.com>
Tested-by: Lin Cloud <cloud_lin@compal.com>
This commit is contained in:
cloud_lin
2014-04-08 15:27:15 +08:00
committed by chrome-internal-fetch
parent cdb70250d0
commit ccdce3f83d
2 changed files with 8 additions and 5 deletions

View File

@@ -76,7 +76,7 @@ static struct battery_info info_3s = {
static struct battery_info info_3s_LGC = {
.voltage_max = 13140,
.voltage_max = 12900,
.voltage_normal = 11400, /* Average of max & min */
.voltage_min = 9000,
@@ -91,9 +91,9 @@ static struct battery_info info_3s_LGC = {
.discharging_max_c = 75,
};
static struct battery_info info_4s = {
static struct battery_info info_4s_LGC = {
.voltage_max = 17520,
.voltage_max = 17200,
.voltage_normal = 15200, /* Average of max & min */
.voltage_min = 12000,
@@ -134,7 +134,7 @@ static struct battery_device support_batteries[] = {
.manuf = "LGC",
.device = "AC14B8K",
.design_mv = 15200,
.battery_info = &info_4s,
.battery_info = &info_4s_LGC,
.support_cut_off = 1,
},
{

View File

@@ -114,7 +114,10 @@ enum pwm_channel {
/* Charger module */
#define CONFIG_CHARGER_SENSE_RESISTOR 10 /* Charge sense resistor, mOhm */
#define CONFIG_CHARGER_SENSE_RESISTOR_AC 20 /* Input sensor resistor, mOhm */
#define CONFIG_CHARGER_INPUT_CURRENT 4032 /* mA, based on Link HW design */
/* Input current limit for 45W AC adapter:
* 45W/19V*85%=2013mA, choose the closest charger setting = 2048mA
*/
#define CONFIG_CHARGER_INPUT_CURRENT 2048 /* mA, based on Link HW design */
#define CONFIG_CHARGER_CURRENT_LIMIT 3000 /* PL102 inductor 3.0A(3.8A) */
/* Discharge battery when on AC power for factory test. */