summaryrefslogtreecommitdiff
path: root/firmware/target/arm/samsung/yh925
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2009-08-07 13:32:35 +0000
committerThomas Martitz <kugel@rockbox.org>2009-08-07 13:32:35 +0000
commit0f50302b1d437496fc546d8b101df5766659ef1c (patch)
tree8027606512f5cab41e6bb021d7ad626d780d0832 /firmware/target/arm/samsung/yh925
parent6e5448da22fc80e7ff882f8d26a57f48ce289f1f (diff)
Samsung YH925: Support for battery monitoring and charging. Discharge curve not yet calibrated.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22194 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/samsung/yh925')
-rw-r--r--firmware/target/arm/samsung/yh925/powermgmt-yh925.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/firmware/target/arm/samsung/yh925/powermgmt-yh925.c b/firmware/target/arm/samsung/yh925/powermgmt-yh925.c
index 6d7e3487aa..8945bdbf78 100644
--- a/firmware/target/arm/samsung/yh925/powermgmt-yh925.c
+++ b/firmware/target/arm/samsung/yh925/powermgmt-yh925.c
@@ -54,6 +54,5 @@ const unsigned short percent_to_volt_charge[11] =
/* Returns battery voltage from ADC [millivolts] */
unsigned int battery_adc_voltage(void)
{
- /* return (adc_read(ADC_UNREG_POWER) * BATTERY_SCALE_FACTOR) >> 10; */
- return 4100;
+ return (adc_read(ADC_UNREG_POWER) * BATTERY_SCALE_FACTOR) >> 10;
}