aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/s3c24xx/patches-2.6.24/1153--pcf50633-Assume-that-all-gta02-s-have-a-battery-wi.patch
diff options
context:
space:
mode:
authorMirko Vogt <mirko@openwrt.org>2008-12-12 11:58:53 +0000
committerMirko Vogt <mirko@openwrt.org>2008-12-12 11:58:53 +0000
commit614683faf8029100802db06a825648d0b6490285 (patch)
tree7401b135dc7ce24ff0175e67e0f2ce7f96296ff0 /target/linux/s3c24xx/patches-2.6.24/1153--pcf50633-Assume-that-all-gta02-s-have-a-battery-wi.patch
parent4a018d2445c5f249179ff82c8fffb0e3b717f738 (diff)
downloadupstream-614683faf8029100802db06a825648d0b6490285.tar.gz
upstream-614683faf8029100802db06a825648d0b6490285.tar.bz2
upstream-614683faf8029100802db06a825648d0b6490285.zip
changed Makefile and profiles, added patches for kernel 2.6.24 (stable-branch of Openmoko)
SVN-Revision: 13613
Diffstat (limited to 'target/linux/s3c24xx/patches-2.6.24/1153--pcf50633-Assume-that-all-gta02-s-have-a-battery-wi.patch')
-rw-r--r--target/linux/s3c24xx/patches-2.6.24/1153--pcf50633-Assume-that-all-gta02-s-have-a-battery-wi.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/target/linux/s3c24xx/patches-2.6.24/1153--pcf50633-Assume-that-all-gta02-s-have-a-battery-wi.patch b/target/linux/s3c24xx/patches-2.6.24/1153--pcf50633-Assume-that-all-gta02-s-have-a-battery-wi.patch
new file mode 100644
index 0000000000..ffa6e46948
--- /dev/null
+++ b/target/linux/s3c24xx/patches-2.6.24/1153--pcf50633-Assume-that-all-gta02-s-have-a-battery-wi.patch
@@ -0,0 +1,40 @@
+From 32d41ab91e5844ad6df1eea353c61a8fefc0c81e Mon Sep 17 00:00:00 2001
+From: Holger Freyther <ich@tamarin.(none)>
+Date: Tue, 13 May 2008 18:53:40 +0100
+Subject: [PATCH] [pcf50633] Assume that all gta02's have a battery with coulumb counter
+ For the gta02 and the bq27000 battery it does not make sense to use the
+ ADC to get the current voltage. Under the assumption that all mass
+ production gta02's have such batteries it does not make any sense to
+ forward this value to APM.
+
+Signed-Off-By: Holger Freyther <zecke@openmoko.org>
+---
+ drivers/i2c/chips/pcf50633.c | 5 ++---
+ 1 files changed, 2 insertions(+), 3 deletions(-)
+
+diff --git a/drivers/i2c/chips/pcf50633.c b/drivers/i2c/chips/pcf50633.c
+index b354a9c..66ca16f 100644
+--- a/drivers/i2c/chips/pcf50633.c
++++ b/drivers/i2c/chips/pcf50633.c
+@@ -1797,16 +1797,15 @@ static int pcf50633_detect(struct i2c_adapter *adapter, int address, int kind)
+ backlight_update_status(data->backlight);
+ }
+
+- apm_get_power_status = pcf50633_get_power_status;
+
+-#ifdef CONFIG_MACH_NEO1973_GTA02
+ if (machine_is_neo1973_gta02()) {
+ gta01_pm_gps_dev.dev.parent = &new_client->dev;
+ gta01_pm_bt_dev.dev.parent = &new_client->dev;
+ platform_device_register(&gta01_pm_bt_dev);
+ platform_device_register(&gta01_pm_gps_dev);
++ } else {
++ apm_get_power_status = pcf50633_get_power_status;
+ }
+-#endif
+
+ return 0;
+ exit_rtc:
+--
+1.5.6.5
+