5bf691cbda126d4c52868c14023b1831b7fb6172
[openembedded.git] /
1 From bee8b808445a53a7dbb6c15a27064f14dec410c5 Mon Sep 17 00:00:00 2001
2 From: Dmitry Baryshkov <dbaryshkov@gmail.com>
3 Date: Sun, 20 Jan 2008 03:01:41 +0300
4 Subject: [PATCH 55/64] Add GPIO_POWERON to the list of devices that we support resume on.
5
6 Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
7 ---
8  arch/arm/mach-pxa/tosa.c |    6 +++---
9  1 files changed, 3 insertions(+), 3 deletions(-)
10
11 diff --git a/arch/arm/mach-pxa/tosa.c b/arch/arm/mach-pxa/tosa.c
12 index 3e832dc..d1cf3dc 100644
13 --- a/arch/arm/mach-pxa/tosa.c
14 +++ b/arch/arm/mach-pxa/tosa.c
15 @@ -517,9 +517,9 @@ static void __init tosa_init(void)
16         pxa_gpio_mode(TOSA_GPIO_USB_IN | GPIO_IN);
17  
18         /* setup sleep mode values */
19 -       PWER  = 0x00000002;
20 -       PFER  = 0x00000000;
21 -       PRER  = 0x00000002;
22 +       PWER  = BIT(TOSA_GPIO_POWERON) | BIT(TOSA_GPIO_RESET);
23 +       PFER  = 0;
24 +       PRER  = BIT(TOSA_GPIO_POWERON) | BIT(TOSA_GPIO_RESET);
25         PGSR0 = 0x00000000;
26         PGSR1 = 0x00FF0002;
27         PGSR2 = 0x00014000;
28 -- 
29 1.5.3.8
30