diff options
author | Nitin Kumbhar <nkumbhar@nvidia.com> | 2010-12-17 10:58:10 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:46:08 -0800 |
commit | cca91b2a6447fb92c3d849e7858bfff359100b75 (patch) | |
tree | da364625ac84f63a7bec9f086c8135ab28c661c2 /arch/arm/mach-tegra/board-ventana.c | |
parent | e4d6fa318600cb929a1c8dc9f29d0b920ed815d7 (diff) |
tegra: ventana: set pm_power_off to ventana specific routine
for ventana, implement pm_power_off with tps6586x's power off routine.
Original-Change-Id: I739e882d00adab192e5be868d14c89df387fd5ab
Reviewed-on: http://git-master/r/13590
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
Rebase-Id: R8471f1c2fef4fb11a369c2379a8f631da3c9188f
Diffstat (limited to 'arch/arm/mach-tegra/board-ventana.c')
-rw-r--r-- | arch/arm/mach-tegra/board-ventana.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-ventana.c b/arch/arm/mach-tegra/board-ventana.c index 05a5eeb5734b..93340c2c3cf1 100644 --- a/arch/arm/mach-tegra/board-ventana.c +++ b/arch/arm/mach-tegra/board-ventana.c @@ -34,6 +34,8 @@ #include <linux/gpio_keys.h> #include <linux/input.h> #include <linux/tegra_usb.h> +#include <linux/mfd/tps6586x.h> + #include <mach/clk.h> #include <mach/iomap.h> #include <mach/irqs.h> @@ -382,6 +384,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) { tegra_common_init(); @@ -410,6 +428,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") |