diff options
author | Vasily Khoruzhick <anarsoul@gmail.com> | 2010-05-11 02:55:11 -0400 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2010-05-11 20:20:28 -0400 |
commit | 192ff91fc84e067a3babfddb96114a51c939548e (patch) | |
tree | 5496c57534ec7d0fd26a39e4002c63447cb8b438 /arch/arm/mach-s3c2410 | |
parent | 0741b7d2699d1e7b4ceab27522c9e5518b2dbd2c (diff) |
ARM: RX1950: configure GPG13-15 as input before suspend
According to datasheet GPG13-15 must be configured as input in NAND
boot mode, otherwise device will not be able to wake up
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch/arm/mach-s3c2410')
-rw-r--r-- | arch/arm/mach-s3c2410/pm.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/mach-s3c2410/pm.c b/arch/arm/mach-s3c2410/pm.c index 6a61486ca755..725636fc4dc3 100644 --- a/arch/arm/mach-s3c2410/pm.c +++ b/arch/arm/mach-s3c2410/pm.c | |||
@@ -79,6 +79,17 @@ static void s3c2410_pm_prepare(void) | |||
79 | if ( machine_is_aml_m5900() ) | 79 | if ( machine_is_aml_m5900() ) |
80 | s3c2410_gpio_setpin(S3C2410_GPF(2), 1); | 80 | s3c2410_gpio_setpin(S3C2410_GPF(2), 1); |
81 | 81 | ||
82 | if (machine_is_rx1950()) { | ||
83 | /* According to S3C2442 user's manual, page 7-17, | ||
84 | * when the system is operating in NAND boot mode, | ||
85 | * the hardware pin configuration - EINT[23:21] – | ||
86 | * must be set as input for starting up after | ||
87 | * wakeup from sleep mode | ||
88 | */ | ||
89 | s3c_gpio_cfgpin(S3C2410_GPG(13), S3C2410_GPIO_INPUT); | ||
90 | s3c_gpio_cfgpin(S3C2410_GPG(14), S3C2410_GPIO_INPUT); | ||
91 | s3c_gpio_cfgpin(S3C2410_GPG(15), S3C2410_GPIO_INPUT); | ||
92 | } | ||
82 | } | 93 | } |
83 | 94 | ||
84 | static int s3c2410_pm_resume(struct sys_device *dev) | 95 | static int s3c2410_pm_resume(struct sys_device *dev) |