diff options
author | Poornima Tom <poornima.tom@intel.com> | 2020-08-25 23:09:04 +0530 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-09-04 23:06:31 +0000 |
commit | 241dd72c4e9c16aff5b5fdb295268ffb478d96d0 (patch) | |
tree | 84999750f709ae4444ae8120bf62133fc3667286 /common/system.c | |
parent | e7352ce69296f4e7a9e30149caa009b28be4fc9b (diff) | |
download | chrome-ec-241dd72c4e9c16aff5b5fdb295268ffb478d96d0.tar.gz |
cleanup:Consolidate multi PD INTR task config to single config
For a multi Type-C board DUTs, use a common config
CONFIG_HAS_TASK_PD_INT for all the PD_INT tasks defined.
Also,it must be ensured that PDCMD task and PD_INT tasks
are not used togethor.
BUG=none
BRANCH=none
TEST=make buildall -j
Also, adding PDCMD and PD_INT tasks in ec.tasklists successfully
threw error message:"Should not use PDCMD task with PD INT tasks"
Signed-off-by: Poornima Tom <poornima.tom@intel.com>
Change-Id: I1c5f3dd6b46bc355bca8b93f8f1d356db54c0faa
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2387686
Reviewed-by: Vijay P Hiremath <vijay.p.hiremath@intel.com>
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'common/system.c')
-rw-r--r-- | common/system.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/common/system.c b/common/system.c index 2d3cfe29d9..eed9e4204f 100644 --- a/common/system.c +++ b/common/system.c @@ -912,9 +912,7 @@ static int handle_pending_reboot(enum ec_reboot_cmd cmd) /* Reset external PD chips. */ if (IS_ENABLED(HAS_TASK_PDCMD) || - IS_ENABLED(HAS_TASK_PD_INT_C0) || - IS_ENABLED(HAS_TASK_PD_INT_C1) || - IS_ENABLED(HAS_TASK_PD_INT_C2)) + IS_ENABLED(CONFIG_HAS_TASK_PD_INT)) board_reset_pd_mcu(); cflush(); |