mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-05 22:41:44 +00:00
This CL adds a charge state machine for SMB compliant battery pack. Vendor specific charge constraints can be applied through function call, defined in battery_pack.h . BUG=chrome-os-partner:7526 TEST=Attach EC serial console Unplug AC adapter: state ==> "discharge" Plug AC adapter: state ==> "charge" Battery full: state ==> "idle" Unplug battery: state ==> "error" Change-Id: Iabff0988a6067d37c17c11b060bbb7e66505c118
28 lines
943 B
Plaintext
28 lines
943 B
Plaintext
/* Copyright (c) 2011 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.
|
|
*/
|
|
|
|
/**
|
|
* List of enabled tasks in the priority order
|
|
*
|
|
* The first one has the lowest priority.
|
|
*
|
|
* For each task, use the macro TASK(n, r, d) where :
|
|
* 'n' in the name of the task
|
|
* 'r' in the main routine of the task
|
|
* 'd' in an opaque parameter passed to the routine at startup
|
|
*/
|
|
#define CONFIG_TASK_LIST \
|
|
TASK(WATCHDOG, watchdog_task, NULL) \
|
|
TASK(TEMPSENSOR, temp_sensor_task, NULL) \
|
|
TASK(THERMAL, thermal_task, NULL) \
|
|
TASK(PWM, pwm_task, NULL) \
|
|
TASK(KEYSCAN, keyboard_scan_task, NULL) \
|
|
TASK(POWERBTN, power_button_task, NULL) \
|
|
TASK(X86POWER, x86_power_task, NULL) \
|
|
TASK(CONSOLE, console_task, NULL) \
|
|
TASK(HOSTCMD, host_command_task, NULL) \
|
|
TASK(I8042CMD, i8042_command_task, NULL) \
|
|
TASK(POWERSTATE, charge_state_machine_task, NULL)
|