Statistics
| Branch: | Revision:

root / scout_gumstix / kernel-scout.patch @ c0b686d7

History | View | Annotate | Download (886 Bytes)

1
diff -rupN linux-source-3.2.0.orig/arch/arm/mach-omap2/board-overo.c linux-source-3.2.0/arch/arm/mach-omap2/board-overo.c
2
--- linux-source-3.2.0.orig/arch/arm/mach-omap2/board-overo.c        2012-12-09 15:38:47.998911265 -0500
3
+++ linux-source-3.2.0/arch/arm/mach-omap2/board-overo.c        2012-12-09 15:42:35.130907002 -0500
4
@@ -500,6 +500,12 @@ static struct gpio overo_bt_gpios[] __in
5
         { OVERO_GPIO_BT_NRESET, GPIOF_OUT_INIT_HIGH,        "lcd bl enable" },
6
 };
7
 
8
+static void scout_power_off(void)
9
+{
10
+        if (gpio_request_one(88, GPIOF_OUT_INIT_HIGH, "Power off") < 0)
11
+                printk(KERN_ERR "Unable to get kill power GPIO\n");
12
+}
13
+
14
 static void __init overo_init(void)
15
 {
16
         int ret;
17
@@ -554,6 +560,8 @@ static void __init overo_init(void)
18
         else
19
                 printk(KERN_ERR "could not obtain gpio for "
20
                                         "OVERO_GPIO_USBH_CPEN\n");
21
+
22
+        pm_power_off = scout_power_off;
23
 }
24
 
25
 MACHINE_START(OVERO, "Gumstix Overo")