aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2010-02-07 12:10:00 +0000
committerLars-Peter Clausen <lars@metafoo.de>2010-02-07 12:10:00 +0000
commitce2133682d245fc1dd0ba340f28274d8a470603e (patch)
treed07934ee932161305a998ceb3ddae9827ff24f32 /target
parentdffce65970bf11ba0caf85a4994454afe5c1560e (diff)
downloadupstream-ce2133682d245fc1dd0ba340f28274d8a470603e.tar.gz
upstream-ce2133682d245fc1dd0ba340f28274d8a470603e.tar.bz2
upstream-ce2133682d245fc1dd0ba340f28274d8a470603e.zip
[xburst] board-qi_lb60: Fix battery platform data.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19541 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r--target/linux/xburst/files-2.6.32/arch/mips/jz4740/board-qi_lb60.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/target/linux/xburst/files-2.6.32/arch/mips/jz4740/board-qi_lb60.c b/target/linux/xburst/files-2.6.32/arch/mips/jz4740/board-qi_lb60.c
index 643f9c8383..249d4c5fd5 100644
--- a/target/linux/xburst/files-2.6.32/arch/mips/jz4740/board-qi_lb60.c
+++ b/target/linux/xburst/files-2.6.32/arch/mips/jz4740/board-qi_lb60.c
@@ -286,12 +286,15 @@ static struct spi_board_info qi_lb60_spi_board_info[] = {
};
/* Battery */
-static struct jz_batt_info qi_lb60_battery_pdata = {
- .charg_stat_gpio = GPIO_CHARG_STAT_N,
-
- .min_voltag = 3600000,
- .max_voltag = 4200000,
- .batt_tech = POWER_SUPPLY_TECHNOLOGY_LIPO,
+static struct jz_battery_platform_data qi_lb60_battery_pdata = {
+ .gpio_charge = GPIO_CHARG_STAT_N,
+ .gpio_charge_active_low = 1,
+ .info = {
+ .name = "battery",
+ .technology = POWER_SUPPLY_TECHNOLOGY_LIPO,
+ .voltage_max_design = 4200000,
+ .voltage_min_design = 3600000,
+ },
};
static char *qi_lb60_batteries[] = {