diff options
author | Vic Yang <victoryang@chromium.org> | 2013-08-27 15:49:45 +0800 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2013-08-28 01:54:48 +0000 |
commit | 7e49fb5ef485a78365cabcf8c40b9a358ea8360a (patch) | |
tree | ac3f4cc0905f61a9347b9745c396a63669066029 /common/pmu_tps65090_charger.c | |
parent | 07428351b6df572456a8896222c6d011a7450af5 (diff) | |
download | chrome-ec-7e49fb5ef485a78365cabcf8c40b9a358ea8360a.tar.gz |
Rename extpower_usb to extpower_spring
The ID detection and charging circuits on Spring are very different from
that on Kirby. PWM current limit is no longer used. The ID detection
sequence is also different. Also, there is no boost circuit on Kirby.
Given those hardware issues that we had to work around on Spring, it's
unlikely that we will have another board that shares the same/similar
ID detection design with Spring. Let's rename extpower_usb to
extpower_spring to better reflect this.
BUG=None
TEST=Build and boot Spring.
BRANCH=None
Change-Id: I7c212a121eed55665593cb7e1b2b672891819940
Signed-off-by: Vic Yang <victoryang@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/67031
Diffstat (limited to 'common/pmu_tps65090_charger.c')
-rw-r--r-- | common/pmu_tps65090_charger.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/common/pmu_tps65090_charger.c b/common/pmu_tps65090_charger.c index 39be704a4d..fcaf24609c 100644 --- a/common/pmu_tps65090_charger.c +++ b/common/pmu_tps65090_charger.c @@ -286,7 +286,7 @@ static int calc_next_state(int state) return ST_IDLE0; } -#ifdef CONFIG_EXTPOWER_USB +#ifdef CONFIG_EXTPOWER_SPRING /* Re-init on charger timeout. */ if (pmu_is_charge_timeout()) { CPUTS("[pmu] charging: timeout\n"); @@ -404,7 +404,7 @@ void charger_task(void) enable_charging(0); disable_sleep(SLEEP_MASK_CHARGING); -#ifdef CONFIG_EXTPOWER_USB +#ifdef CONFIG_EXTPOWER_SPRING extpower_charge_init(); #endif @@ -412,7 +412,7 @@ void charger_task(void) last_waken = get_time(); pmu_clear_irq(); -#ifdef CONFIG_EXTPOWER_USB +#ifdef CONFIG_EXTPOWER_SPRING extpower_charge_update(0); #endif @@ -498,7 +498,7 @@ void charger_task(void) } } -#ifdef CONFIG_EXTPOWER_USB +#ifdef CONFIG_EXTPOWER_SPRING has_pending_event |= extpower_charge_needs_update(); #endif |