diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2010-05-19 23:39:59 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2010-05-19 23:39:59 +0000 |
commit | 9594f86c1a87caf13fba96ad132b231a0f3c86bc (patch) | |
tree | 4898a6a2a56a0d0fa14981372faa6c21b284d112 /firmware/target/arm/imx31/gigabeat-s/powermgmt-gigabeat-s.c | |
parent | 29e70dfcb8f7052b1f4987253da9fb7eee28a46c (diff) | |
download | rockbox-9594f86c1a87caf13fba96ad132b231a0f3c86bc.tar.gz rockbox-9594f86c1a87caf13fba96ad132b231a0f3c86bc.zip |
Gigabeat S: Use longer battery filter; lag is not a problem with voltage for charging since it's I-controlled. Initialize local copy of last_inputs for the power routines in target init otherwise the battery filter is reinitialized too soon.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26180 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/imx31/gigabeat-s/powermgmt-gigabeat-s.c')
-rw-r--r-- | firmware/target/arm/imx31/gigabeat-s/powermgmt-gigabeat-s.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/target/arm/imx31/gigabeat-s/powermgmt-gigabeat-s.c b/firmware/target/arm/imx31/gigabeat-s/powermgmt-gigabeat-s.c index 39f6d88976..dc00b1ede6 100644 --- a/firmware/target/arm/imx31/gigabeat-s/powermgmt-gigabeat-s.c +++ b/firmware/target/arm/imx31/gigabeat-s/powermgmt-gigabeat-s.c | |||
@@ -608,6 +608,8 @@ static bool charging_ok(void) | |||
608 | 608 | ||
609 | void powermgmt_init_target(void) | 609 | void powermgmt_init_target(void) |
610 | { | 610 | { |
611 | last_inputs = power_thread_inputs; | ||
612 | |||
611 | #ifdef IMX31_ALLOW_CHARGING | 613 | #ifdef IMX31_ALLOW_CHARGING |
612 | const uint32_t regval_w = | 614 | const uint32_t regval_w = |
613 | MC13783_VCHRG_4_050V | MC13783_ICHRG_0MA | | 615 | MC13783_VCHRG_4_050V | MC13783_ICHRG_0MA | |