Shaojun Wang

Wakeup Mx6 sabresd board in 1209-ga

Discussion created by Shaojun Wang Employee on Nov 8, 2012

With default 1209-ga image, mx6 sabresd board cann't be wakeup by key.

To enable the wakeup function, need to add gpio key interrupt as wakeup source. The patch is

 

diff --git a/arch/arm/mach-mx6/board-mx6q_sabresd.c b/arch/arm/mach-mx6/board-mx6q_sabresd.c
index e198617..6a64bc1
--- a/arch/arm/mach-mx6/board-mx6q_sabresd.c
+++ b/arch/arm/mach-mx6/board-mx6q_sabresd.c
@@ -1547,7 +1547,7 @@ static void __init imx6q_add_device_gpio_leds(void) {}

static struct gpio_keys_button imx6q_buttons[] = {
        GPIO_BUTTON(SABRESD_VOLUME_UP, KEY_VOLUMEUP, 1, "volume-up", 0, 1),
-       GPIO_BUTTON(SABRESD_VOLUME_DN, KEY_VOLUMEDOWN, 1, "volume-down", 0, 1),
+       GPIO_BUTTON(SABRESD_VOLUME_DN, KEY_VOLUMEDOWN, 1, "volume-down", 1, 1),
        GPIO_BUTTON(SABRESD_POWER_OFF, KEY_POWER, 1, "power", 1, 1),
};

 

Outcomes