From d31960945adc60cd05a933ebd834f952012b9aa0 Mon Sep 17 00:00:00 2001 From: "YongBeum.Ha" Date: Thu, 26 Aug 2021 11:08:50 +0900 Subject: bugzzy : Modify battery information modify battery information based on datasheet. BUG=b:197776876 BRANCH=None TEST=make -j BOARD=bugzzy Signed-off-by: YongBeum.Ha Change-Id: Ib84152984d340ce395977698551a0af6d156935c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3118647 Reviewed-by: Aseda Aboagye Commit-Queue: Henry Sun --- board/bugzzy/battery.c | 33 ++------------------------------- board/bugzzy/board.h | 1 - 2 files changed, 2 insertions(+), 32 deletions(-) (limited to 'board/bugzzy') diff --git a/board/bugzzy/battery.c b/board/bugzzy/battery.c index 5f6c54cb9a..55932feccf 100644 --- a/board/bugzzy/battery.c +++ b/board/bugzzy/battery.c @@ -42,9 +42,6 @@ * The value b'10 is disconnect_val, so we can use b'01 for cfet_off_val */ -/* charging current is limited to 0.45C */ -#define CHARGING_CURRENT_45C 2804 - const struct board_batt_params board_battery_info[] = { /* SDI Battery Information */ [BATTERY_SDI] = { @@ -61,11 +58,11 @@ const struct board_batt_params board_battery_info[] = { .reg_mask = 0xc000, .disconnect_val = 0x8000, .cfet_mask = 0xc000, - .cfet_off_val = 0x2000, + .cfet_off_val = 0x4000, } }, .batt_info = { - .voltage_max = 8800, + .voltage_max = 8700, .voltage_normal = 7700, /* mV */ .voltage_min = 6000, /* mV */ .precharge_current = 200, /* mA */ @@ -82,32 +79,6 @@ BUILD_ASSERT(ARRAY_SIZE(board_battery_info) == BATTERY_TYPE_COUNT); const enum battery_type DEFAULT_BATTERY_TYPE = BATTERY_SDI; -int charger_profile_override(struct charge_state_data *curr) -{ - if (chipset_in_state(CHIPSET_STATE_ANY_OFF)) - return 0; - - if (curr->requested_current > CHARGING_CURRENT_45C) - curr->requested_current = CHARGING_CURRENT_45C; - - return 0; -} - -/* Customs options controllable by host command. */ -#define PARAM_FASTCHARGE (CS_PARAM_CUSTOM_PROFILE_MIN + 0) - -enum ec_status charger_profile_override_get_param(uint32_t param, - uint32_t *value) -{ - return EC_RES_INVALID_PARAM; -} - -enum ec_status charger_profile_override_set_param(uint32_t param, - uint32_t value) -{ - return EC_RES_INVALID_PARAM; -} - /* Lower our input voltage to 5V in S0iX when battery is full. */ #define PD_VOLTAGE_WHEN_FULL 5000 static void reduce_input_voltage_when_full(void) diff --git a/board/bugzzy/board.h b/board/bugzzy/board.h index 6954d9d524..f3ac06bda7 100644 --- a/board/bugzzy/board.h +++ b/board/bugzzy/board.h @@ -41,7 +41,6 @@ #define CONFIG_CHARGER_SENSE_RESISTOR 10 #define CONFIG_OCPC_DEF_RBATT_MOHMS 22 /* R_DS(on) 11.6mOhm + 10mOhm sns rstr */ #define CONFIG_OCPC -#define CONFIG_CHARGER_PROFILE_OVERRIDE #define CONFIG_CHARGE_RAMP_HW #undef CONFIG_CHARGER_SINGLE_CHIP #undef CONFIG_USB_PD_TCPC_LPM_EXIT_DEBOUNCE -- cgit v1.2.1