[arm:tegra] support for suspend resume
Narendra Damahe [Wed, 16 Feb 2011 23:26:30 +0000 (15:26 -0800)]
- corrected i2c driver registration sequence to 1st so that it will be suspended last
- disabled pmu based rtc since tps6591x-rtc driver not available
- disabled SDHCI_QUIRK_BROKEN_CARD_DETECTION which acquire wake lock forever

Original-Change-Id: Ia2feba6b429a0864aa780e7c2ae96e164010b832
Reviewed-on: http://git-master/r/19793
Reviewed-by: Narendra Damahe <ndamahe@nvidia.com>
Tested-by: Narendra Damahe <ndamahe@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Original-Change-Id: I37eb6c932358f900c4dede8b55a1f120a16aefb7

Rebase-Id: R56436977bdee89c4bf6f588497a3ebb34bfb3c01

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

index 29cb253..3a2d313 100644 (file)
@@ -203,11 +203,12 @@ TPS_PDATA_INIT(ldo5, 1000, 3300, 0, 0, 0, 0, -1, 0, 0);
 TPS_PDATA_INIT_SUPPLY(ldo6, 1000, 3300, VIO, 0, 0, 0, -1, 0, 0);
 TPS_PDATA_INIT_SUPPLY(ldo7, 1000, 3300, VIO, 0, 0, 0, -1, 0, 0);
 TPS_PDATA_INIT_SUPPLY(ldo8, 1000, 3300, VIO, 0, 0, 0, -1, 0, 0);
-
+/* Currently tps6591x-rtc driver is not available need to enable once driver is ready */
+/*
 static struct tps6591x_rtc_platform_data rtc_data = {
        .irq = TEGRA_NR_IRQS + TPS6591X_INT_RTC_ALARM,
 };
-
+*/
 #define TPS_REG(_id, _data)                            \
        {                                               \
                .id     = TPS6591X_ID_##_id,            \
@@ -228,11 +229,12 @@ static struct tps6591x_subdev_info tps_devs[] = {
        TPS_REG(LDO_6, ldo6),
        TPS_REG(LDO_7, ldo7),
        TPS_REG(LDO_8, ldo8),
-       {
+       /* Currently tps6591x-rtc driver is not available need to enable once driver is ready */
+       /*{
                .id     = 0,
                .name   = "tps6591x-rtc",
                .platform_data = &rtc_data,
-       },
+       },*/
 };
 
 static struct tps6591x_platform_data tps_platform = {
index 514cd73..49ce2be 100644 (file)
@@ -358,11 +358,9 @@ static void __init tegra_cardhu_init(void)
        tegra_common_init();
        tegra_clk_init_from_table(cardhu_clk_init_table);
        cardhu_pinmux_init();
-
+       cardhu_i2c_init();
        platform_add_devices(cardhu_devices, ARRAY_SIZE(cardhu_devices));
-
        cardhu_sdhci_init();
-       cardhu_i2c_init();
        cardhu_regulator_init();
        cardhu_gpio_switch_regulator_init();
        cardhu_suspend_init();