mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-11 02:15:14 +00:00
common: charge_state_v2: Add items to .bss.slow.
BUG=chrome-os-partner:46056 BUG=chrome-os-partner:46063 BRANCH=None TEST=Enable CONFIG_REPLACE_LOADER_WITH_BSS_SLOW on GLaDOS. Build, flash, and verify AP and EC boot. Plug in charger, issue 'battery' command. Verify charging still works and command shows reasonable data. TEST='sysjump rw' and repeat the above tests. TEST=make -j buildall tests CQ-DEPEND=CL:311209 Change-Id: I0661c32b641299d4be685156a4ac725267804a3e Signed-off-by: Aseda Aboagye <aaboagye@google.com> Reviewed-on: https://chromium-review.googlesource.com/311401 Commit-Ready: Aseda Aboagye <aaboagye@chromium.org> Tested-by: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: Randall Spangler <rspangler@chromium.org>
This commit is contained in:
committed by
chrome-bot
parent
1aebf16f5e
commit
5fd715fc3e
@@ -101,8 +101,8 @@ BUILD_ASSERT(ARRAY_SIZE(prob_text) == NUM_PROBLEM_TYPES);
|
||||
*/
|
||||
static void problem(enum problem_type p, int v)
|
||||
{
|
||||
static int last_prob_val[NUM_PROBLEM_TYPES];
|
||||
static timestamp_t last_prob_time[NUM_PROBLEM_TYPES];
|
||||
static int __bss_slow last_prob_val[NUM_PROBLEM_TYPES];
|
||||
static timestamp_t __bss_slow last_prob_time[NUM_PROBLEM_TYPES];
|
||||
timestamp_t t_now, t_diff;
|
||||
|
||||
if (last_prob_val[p] != v) {
|
||||
@@ -190,7 +190,7 @@ static void update_dynamic_battery_info(void)
|
||||
uint8_t tmp;
|
||||
int send_batt_status_event = 0;
|
||||
int send_batt_info_event = 0;
|
||||
static int batt_present;
|
||||
static int __bss_slow batt_present;
|
||||
|
||||
tmp = 0;
|
||||
if (curr.ac)
|
||||
@@ -346,7 +346,7 @@ static void show_charging_progress(void)
|
||||
/* Calculate if battery is full based on whether it is accepting charge */
|
||||
static int calc_is_full(void)
|
||||
{
|
||||
static int ret;
|
||||
static int __bss_slow ret;
|
||||
|
||||
/* If bad state of charge reading, return last value */
|
||||
if (curr.batt.flags & BATT_FLAG_BAD_STATE_OF_CHARGE ||
|
||||
@@ -370,7 +370,7 @@ static int calc_is_full(void)
|
||||
static int charge_request(int voltage, int current)
|
||||
{
|
||||
int r1 = EC_SUCCESS, r2 = EC_SUCCESS, r3 = EC_SUCCESS;
|
||||
static int prev_volt, prev_curr;
|
||||
static int __bss_slow prev_volt, prev_curr;
|
||||
|
||||
if (!voltage || !current)
|
||||
#ifdef CONFIG_CHARGER_NARROW_VDC
|
||||
|
||||
Reference in New Issue
Block a user