diff options
author | Shawn Nematbakhsh <shawnn@chromium.org> | 2015-06-08 13:58:47 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-06-10 19:48:08 +0000 |
commit | e05ed041cfe60db7d1bff5424d4579a52aea402f (patch) | |
tree | 1fd7a6e78c42682b1f9eb331c12084a4b44c3b56 /common/charge_ramp.c | |
parent | 5d7c4f0cd6b7b020e70c9f9ec5f60a8457b90f12 (diff) | |
download | chrome-ec-e05ed041cfe60db7d1bff5424d4579a52aea402f.tar.gz |
charger: Move USB charger / BC1.2 task to common code
Move the task responsible for detection of USB chargers to common code
to reduce code duplication.
BUG=chrome-os-partner:40920
TEST=Manual on samus_pd. Plug USB charger, verify detection is correct
on both charge ports.
BRANCH=None
Change-Id: I362f8b5b51741509e459c66928131f1f6d2a3b1d
Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/276210
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Reviewed-by: Alec Berg <alecaberg@chromium.org>
Diffstat (limited to 'common/charge_ramp.c')
-rw-r--r-- | common/charge_ramp.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/common/charge_ramp.c b/common/charge_ramp.c index cc71f987b6..e5f6d99e26 100644 --- a/common/charge_ramp.c +++ b/common/charge_ramp.c @@ -197,10 +197,8 @@ void chg_ramp_task(void) /* Detect delay is over, fall through to next state */ ramp_st_new = CHG_RAMP_OVERCURRENT_DETECT; -#ifdef CONFIG_USB_PD_HOST_EVENT_ON_POWER_CHANGE /* notify host of power info change */ pd_send_host_event(PD_EVENT_POWER_CHANGE); -#endif case CHG_RAMP_OVERCURRENT_DETECT: /* Check if we should ramp or go straight to stable */ task_wait_time = SECOND; @@ -297,10 +295,8 @@ void chg_ramp_task(void) #ifdef CONFIG_USB_PD_LOGGING charge_manager_save_log(active_port); #endif -#ifdef CONFIG_USB_PD_HOST_EVENT_ON_POWER_CHANGE /* notify host of power info change */ pd_send_host_event(PD_EVENT_POWER_CHANGE); -#endif } /* Keep an eye on VBUS and restart ramping if it dips */ |