diff options
author | Alec Berg <alecaberg@chromium.org> | 2015-09-06 20:29:08 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2015-09-08 21:58:21 -0700 |
commit | ebfdb59702f02dad5a7daae6b4a38f95a849cf9a (patch) | |
tree | 67099248db16760b52321eca12ccf3c823a0adcf /test/charge_manager_drp_charging.tasklist | |
parent | 490e8a482f07ce8c39d6a40bcff5abb24a38449a (diff) | |
download | chrome-ec-ebfdb59702f02dad5a7daae6b4a38f95a849cf9a.tar.gz |
charge_manager: add option to charge from dual-role devices
Add option to charge automatically from dual-role devices. This
also changes the charge override behavior such that any new
device attached will clear the override because any new source
is a potential device we might charge from.
BUG=chrome-os-partner:44958
BRANCH=smaug
TEST=tested charge_manager unittests with
CONFIG_CHARGE_MANAGER_DRP_CHARGING both defined and undefined
Change-Id: Iac77ff0c501826d5fb5a9d50f88399ebc3955b87
Signed-off-by: Alec Berg <alecaberg@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/297789
Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'test/charge_manager_drp_charging.tasklist')
-rw-r--r-- | test/charge_manager_drp_charging.tasklist | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/charge_manager_drp_charging.tasklist b/test/charge_manager_drp_charging.tasklist new file mode 100644 index 0000000000..cbe6830516 --- /dev/null +++ b/test/charge_manager_drp_charging.tasklist @@ -0,0 +1,17 @@ +/* Copyright 2015 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_TEST(n, r, d, s) 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 + * 's' is the stack size in bytes; must be a multiple of 8 + */ +#define CONFIG_TEST_TASK_LIST /* No test task */ |