diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/target/arm/imx31/gigabeat-s/powermgmt-gigabeat-s.c | 2 | ||||
-rw-r--r-- | firmware/target/arm/imx31/gigabeat-s/powermgmt-target.h | 2 |
2 files changed, 3 insertions, 1 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 | |
diff --git a/firmware/target/arm/imx31/gigabeat-s/powermgmt-target.h b/firmware/target/arm/imx31/gigabeat-s/powermgmt-target.h index 02d94015a1..c881bed68c 100644 --- a/firmware/target/arm/imx31/gigabeat-s/powermgmt-target.h +++ b/firmware/target/arm/imx31/gigabeat-s/powermgmt-target.h | |||
@@ -104,7 +104,7 @@ | |||
104 | #define BATTERY_VMAINTAIN_USB MC13783_VCHRG_4_150V | 104 | #define BATTERY_VMAINTAIN_USB MC13783_VCHRG_4_150V |
105 | 105 | ||
106 | /* Battery filter lengths in samples */ | 106 | /* Battery filter lengths in samples */ |
107 | #define BATT_AVE_SAMPLES 32 | 107 | #define BATT_AVE_SAMPLES 128 |
108 | #define ICHARGER_AVE_SAMPLES 32 | 108 | #define ICHARGER_AVE_SAMPLES 32 |
109 | 109 | ||
110 | void powermgmt_init_target(void); | 110 | void powermgmt_init_target(void); |