rtc: tps6591x: wake up from suspend on alarm
venu byravarasu [Mon, 11 Apr 2011 12:13:05 +0000 (17:13 +0530)]
Changes required for waking up system, when RTC alarm
is triggered.

bug 793949

Original-Change-Id: Idcc536a819e977fe35bafeebdffddf57d5388f21
Reviewed-on: http://git-master/r/27359
Tested-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Original-Change-Id: I68bb747cb965d14af9918ad6086ac2e9888f7136

Rebase-Id: Rbede5b7dc6bcd1022993fc7619936429d3bfee35

arch/arm/mach-tegra/board-cardhu-power.c [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 2561641..35cbb92
@@ -250,6 +250,13 @@ static struct tps6591x_rtc_platform_data rtc_data = {
                .platform_data  = &pdata_##_data,       \
        }
 
+#define TPS_RTC_REG()                          \
+       {                                               \
+               .id     = 0,            \
+               .name   = "rtc_tps6591x",       \
+               .platform_data = &rtc_data,     \
+       }
+
 static struct tps6591x_subdev_info tps_devs_e118x[] = {
        TPS_REG(VIO, vio),
        TPS_REG(VDD_1, vdd1),
@@ -263,11 +270,7 @@ static struct tps6591x_subdev_info tps_devs_e118x[] = {
        TPS_REG(LDO_6, ldo6),
        TPS_REG(LDO_7, ldo7),
        TPS_REG(LDO_8, ldo8),
-       {
-               .id     = 0,
-               .name   = "rtc-tps6591x",
-               .platform_data = &rtc_data,
-       },
+       TPS_RTC_REG(),
 };
 
 static struct tps6591x_subdev_info tps_devs_e1198[] = {
@@ -283,11 +286,7 @@ static struct tps6591x_subdev_info tps_devs_e1198[] = {
        TPS_REG(LDO_6, ldo6),
        TPS_REG(LDO_7, ldo7),
        TPS_REG(LDO_8, ldo8),
-       {
-               .id     = 0,
-               .name   = "rtc-tps6591x",
-               .platform_data = &rtc_data,
-       },
+       TPS_RTC_REG(),
 };
 
 static struct tps6591x_platform_data tps_platform = {