summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Nelson <eric.nelson@boundarydevices.com>2014-01-02 18:19:20 -0700
committerEric Nelson <eric.nelson@boundarydevices.com>2014-01-02 18:19:20 -0700
commit8c5bc836e84f4cf9dcd1efef1bfd7bddd5cb2c25 (patch)
treee9a3292c9b2ef652c477e530710122c3907ea3d3
parent2b45281c9637f3be595f42471d5c2de072e8b265 (diff)
sp: add poweroff() routine
Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
-rw-r--r--arch/arm/mach-mx6/board-mx6_sp.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-mx6/board-mx6_sp.c b/arch/arm/mach-mx6/board-mx6_sp.c
index f2249da0f272..7ae96eddb546 100644
--- a/arch/arm/mach-mx6/board-mx6_sp.c
+++ b/arch/arm/mach-mx6/board-mx6_sp.c
@@ -563,6 +563,12 @@ static struct platform_device platdev_leds_pwd = {
},
};
+static void poweroff(void)
+{
+ gpio_direction_output(ONOFF, 0);
+ while (1);
+}
+
/*!
* Board specific initialization.
*/
@@ -666,6 +672,8 @@ static void __init mx6_board_init(void)
clk_set_rate(clko2, rate);
clk_enable(clko2);
}
+
+ pm_power_off = poweroff;
imx6q_add_busfreq();
imx6q_add_sdhci_usdhc_imx(1, &mx6_sd2_data);