diff options
author | Jiukai Ma <jiukaim@nvidia.com> | 2013-06-28 05:51:47 +0000 |
---|---|---|
committer | Harry Hong <hhong@nvidia.com> | 2013-10-31 00:25:13 -0700 |
commit | 01d614c1b1c8ce0be5c210c2a06e13bc1bda25c5 (patch) | |
tree | 40071f9cca97756d80d007e43194294e78d97778 /arch | |
parent | 7202e576c8049b8a2f665727cdf86cc3f5bbe847 (diff) |
arm: tegra: tegratab: add tegra wakeup monitor support
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-tegra/board-tegratab.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-tegratab.c b/arch/arm/mach-tegra/board-tegratab.c index cf84a233acf6..61a6c9a52c99 100644 --- a/arch/arm/mach-tegra/board-tegratab.c +++ b/arch/arm/mach-tegra/board-tegratab.c @@ -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) |