[adm5120] add USB drivers for the NFS-101U/WU profiles
[openwrt.git] / target / linux / s3c24xx / patches-2.6.24 / 1155--power-Use-the-bq27000-battery-to-provide-charging.patch
1 From 368be2e8a4290da9e49c5625ed207885d345cfcf Mon Sep 17 00:00:00 2001
2 From: Holger Freyther <zecke@openmoko.org>
3 Date: Tue, 13 May 2008 18:53:40 +0100
4 Subject: [PATCH] [power] Use the bq27000 battery to provide charging values for apm
5 Built the apm emulation for gta02 and say that the gta02 battery
6 is supposed to be used for this apm emulation.
7
8 Signed-Off-By: Holger Freyther <zecke@openmoko.org>
9 ---
10 defconfig-gta02 | 2 +-
11 drivers/power/bq27000_battery.c | 1 +
12 2 files changed, 2 insertions(+), 1 deletions(-)
13
14 diff --git a/defconfig-gta02 b/defconfig-gta02
15 index 1fa2d80..c4947b7 100644
16 --- a/defconfig-gta02
17 +++ b/defconfig-gta02
18 @@ -1018,7 +1018,7 @@ CONFIG_SPI_S3C24XX_GPIO=y
19 CONFIG_POWER_SUPPLY=y
20 # CONFIG_POWER_SUPPLY_DEBUG is not set
21 # CONFIG_PDA_POWER is not set
22 -# CONFIG_APM_POWER is not set
23 +CONFIG_APM_POWER=y
24 # CONFIG_BATTERY_DS2760 is not set
25 CONFIG_BATTERY_BQ27000_HDQ=y
26 CONFIG_GTA02_HDQ=y
27 diff --git a/drivers/power/bq27000_battery.c b/drivers/power/bq27000_battery.c
28 index d19186a..cf57dcf 100644
29 --- a/drivers/power/bq27000_battery.c
30 +++ b/drivers/power/bq27000_battery.c
31 @@ -299,6 +299,7 @@ static int bq27000_battery_probe(struct platform_device *pdev)
32 di->bat.get_property = bq27000_battery_get_property;
33 di->bat.external_power_changed =
34 bq27000_battery_external_power_changed;
35 + di->bat.use_for_apm = 1;
36 di->hdq_read = pdata->hdq_read;
37 di->hdq_write = pdata->hdq_write;
38 di->rsense_mohms = pdata->rsense_mohms;
39 --
40 1.5.6.5
41
This page took 0.059057 seconds and 5 git commands to generate.