summaryrefslogtreecommitdiff
path: root/firmware/target/arm/samsung
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/samsung')
-rw-r--r--firmware/target/arm/samsung/adc-target.h2
-rw-r--r--firmware/target/arm/samsung/yh925/powermgmt-yh925.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/firmware/target/arm/samsung/adc-target.h b/firmware/target/arm/samsung/adc-target.h
index a95bcd2e99..1f6a9dcb17 100644
--- a/firmware/target/arm/samsung/adc-target.h
+++ b/firmware/target/arm/samsung/adc-target.h
@@ -28,7 +28,7 @@
#define ADC_CHANNEL_2 2
#define ADC_CHANNEL_3 3
-#define ADC_BATTERY ADC_CHANNEL_0
+#define ADC_BATTERY ADC_CHANNEL_1
/*
#define ADC_UNKNOWN_1 1
#define ADC_REMOTE 2
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;
}