arm: tegra: tegratab: add tegra wakeup monitor support
Jiukai Ma [Fri, 28 Jun 2013 05:51:47 +0000 (05:51 +0000)]
Add the paltform data of tegra wakeup monitor to enable it.

Bug 1394338
Bug 1185135

Change-Id: I2d4aba9095958f1ba56b13ef7b46963a0bfa746e
Signed-off-by: Jiukai Ma <jiukaim@nvidia.com>
Reviewed-on: http://git-master/r/243329
(cherry picked from commit 4b0abf7d70ef13c829e2d16d0777d5ceae9188c4)
Reviewed-on: http://git-master/r/304737
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

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

index cf84a23..61a6c9a 100644 (file)
@@ -66,6 +66,7 @@
 #include <mach/usb_phy.h>
 #include <mach/gpio-tegra.h>
 #include <mach/tegra_fiq_debugger.h>
+#include <mach/tegra_wakeup_monitor.h>
 #include <mach/hardware.h>
 #include <mach/dc.h>
 
@@ -336,6 +337,22 @@ static struct platform_device tegra_rtc_device = {
        .num_resources = ARRAY_SIZE(tegra_rtc_resources),
 };
 
+#if defined(CONFIG_TEGRA_WAKEUP_MONITOR)
+static struct tegra_wakeup_monitor_platform_data
+                       tegratab_tegra_wakeup_monitor_pdata = {
+       .wifi_wakeup_source     = 6,
+       .rtc_wakeup_source      = 18,
+};
+
+static struct platform_device tegratab_tegra_wakeup_monitor_device = {
+       .name = "tegra_wakeup_monitor",
+       .id   = -1,
+       .dev  = {
+               .platform_data = &tegratab_tegra_wakeup_monitor_pdata,
+       },
+};
+#endif
+
 static struct tegra_asoc_platform_data tegratab_audio_pdata = {
        .gpio_spkr_en           = TEGRA_GPIO_SPKR_EN,
        .gpio_hp_mute           = -1,
@@ -390,6 +407,9 @@ static struct platform_device *tegratab_devices[] __initdata = {
        &spdif_dit_device,
        &bluetooth_dit_device,
        &tegra_pcm_device,
+#if defined(CONFIG_TEGRA_WAKEUP_MONITOR)
+       &tegratab_tegra_wakeup_monitor_device,
+#endif
        &tegratab_audio_device,
        &tegra_hda_device,
 #if defined(CONFIG_CRYPTO_DEV_TEGRA_AES)