ARM: Tegra: TT-power: Set pdata value of bq24192x
Hyongbin Kim [Thu, 10 Oct 2013 05:41:03 +0000 (14:41 +0900)]
1. Set soc, vcell, current check fuction.
2. Set charging complete SOC to 100.
3. Set charging restart time to 30 minute.

Bug 1310558
Bug 1316010

Change-Id: Ib73cc5045898dc4cda488ed586428f7f297337a0
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/289138
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>

arch/arm/mach-tegra/board-tegratab-power.c

index 9b789f8..d0df177 100644 (file)
@@ -32,6 +32,7 @@
 #include <linux/gpio.h>
 #include <linux/interrupt.h>
 #include <linux/regulator/userspace-consumer.h>
+#include <linux/platform_data/ina230.h>
 
 #include <asm/mach-types.h>
 #include <linux/power/sbs-battery.h>
@@ -77,11 +78,16 @@ static struct bq2419x_vbus_platform_data tegratab_bq2419x_vbus_pdata = {
 struct bq2419x_charger_platform_data tegratab_bq2419x_charger_pdata = {
        .update_status = max17048_battery_status,
        .battery_check = max17048_check_battery,
+       .soc_check = max17048_check_soc,
+       .vcell_check = max17048_check_vcell,
+       .current_check = ina230_get_current,
        .max_charge_current_mA = 3000,
        .charging_term_current_mA = 100,
        .consumer_supplies = tegratab_bq2419x_batt_supply,
        .num_consumer_supplies = ARRAY_SIZE(tegratab_bq2419x_batt_supply),
-       .wdt_timeout    = 40,
+       .wdt_timeout = 40,
+       .chg_restart_time = 1800,       /* 30 min */
+       .chg_complete_soc = 100,
 };
 
 #ifndef CONFIG_OF