ARM: tegra: dalmore: enable rtc battery charging
Yen Lin [Mon, 26 Nov 2012 19:37:43 +0000 (11:37 -0800)]
Enable rtc backup battery charging for Dalmore

bug 1167041

Signed-off-by: Yen Lin <yelin@nvidia.com>
Change-Id: I198c5c5a73367b8c19ae7497217f990742f131eb
Reviewed-on: http://git-master/r/166280
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

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

index fdf900b..2b2460e 100644 (file)
@@ -744,10 +744,16 @@ static struct palmas_pmic_platform_data pmic_platform = {
        .disabe_ldo8_tracking_suspend = true,
 };
 
+static struct palmas_rtc_platform_data rtc_platform = {
+       .enable_charging = 1,
+       .charging_current_ua = 100,
+};
+
 static struct palmas_platform_data palmas_pdata = {
        .gpio_base = PALMAS_TEGRA_GPIO_BASE,
        .irq_base = PALMAS_TEGRA_IRQ_BASE,
        .pmic_pdata = &pmic_platform,
+       .rtc_pdata = &rtc_platform,
        .mux_from_pdata = true,
        .pad1 = 0,
        .pad2 = 0,