diff options
author | Nitin Kumbhar <nkumbhar@nvidia.com> | 2010-12-17 10:58:10 +0530 |
---|---|---|
committer | Bharat Nihalani <bnihalani@nvidia.com> | 2010-12-17 06:51:51 -0800 |
commit | baa6624fecd5fa340e3773a2329b354e45c89f79 (patch) | |
tree | 5d8f5760e220ef6d85f059851d1a130203e067fd | |
parent | 1e6db8c827e98de0308230883f94d069f8b5943e (diff) |
tegra: ventana: set pm_power_off to ventana specific routine
for ventana, implement pm_power_off with tps6586x's power off routine.
Change-Id: I739e882d00adab192e5be868d14c89df387fd5ab
Reviewed-on: http://git-master/r/13590
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
-rw-r--r-- | arch/arm/mach-tegra/board-ventana.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-ventana.c b/arch/arm/mach-tegra/board-ventana.c index 4ec32387393b..b04f4c9c8a51 100644 --- a/arch/arm/mach-tegra/board-ventana.c +++ b/arch/arm/mach-tegra/board-ventana.c @@ -34,6 +34,7 @@ #include <linux/input.h> #include <linux/tegra_usb.h> #include <linux/usb/android_composite.h> +#include <linux/mfd/tps6586x.h> #ifdef CONFIG_TOUCHSCREEN_PANJIT_I2C #include <linux/i2c/panjit_ts.h> @@ -510,6 +511,22 @@ static int __init ventana_gps_init(void) return 0; } +static void ventana_power_off(void) +{ + int ret; + + ret = tps6586x_power_off(); + if (ret) + pr_err("ventana: failed to power off\n"); + + while(1); +} + +static void __init ventana_power_off_init(void) +{ + pm_power_off = ventana_power_off; +} + static void __init tegra_ventana_init(void) { char serial[20]; @@ -549,6 +566,7 @@ static void __init tegra_ventana_init(void) ventana_panel_init(); ventana_sensors_init(); ventana_bt_rfkill(); + ventana_power_off_init(); } MACHINE_START(VENTANA, "ventana") |