diff options
author | Andy Green <andy@openmoko.com> | 2009-01-28 15:45:45 +0000 |
---|---|---|
committer | Andy Green <agreen@octopus.localdomain> | 2009-01-28 15:45:45 +0000 |
commit | ba162d25c8b633f1af141db67868bd75c1428e24 (patch) | |
tree | 9113bcbb1fcfd06155c2551a71ddfaa80d62f6f4 /arch/arm/mach-s3c6410 | |
parent | 0f31ccb0b0a76112ca6d0d3e010d43b04aca5f00 (diff) |
clean-l1k002-pwronoff.patch
Signed-off-by: Andy Green <andy@openmoko.com>
Diffstat (limited to 'arch/arm/mach-s3c6410')
-rw-r--r-- | arch/arm/mach-s3c6410/mach-om-gta03.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/arch/arm/mach-s3c6410/mach-om-gta03.c b/arch/arm/mach-s3c6410/mach-om-gta03.c index 478b90e1f93..2f982b07eb8 100644 --- a/arch/arm/mach-s3c6410/mach-om-gta03.c +++ b/arch/arm/mach-s3c6410/mach-om-gta03.c @@ -635,17 +635,14 @@ static void om_gta03_pcf50633_attach_child_devices(struct pcf50633 *pcf) static void gta03_l1k002_pwronoff(int level) { + gpio_direction_output(GTA03_GPIO_LCM_SD, 1); + udelay(15); + + gpio_direction_output(GTA03_GPIO_LCM_RESET, !!level); + if (level){ - gpio_direction_output(GTA03_GPIO_LCM_SD, 1); - udelay(15); - gpio_direction_output(GTA03_GPIO_LCM_RESET, 1); - udelay(15); - gpio_direction_output(GTA03_GPIO_LCM_SD, 0); - } - else{ - gpio_direction_output(GTA03_GPIO_LCM_SD, 1); - udelay(15); - gpio_direction_output(GTA03_GPIO_LCM_RESET, 0); + udelay(15); + gpio_direction_output(GTA03_GPIO_LCM_SD, 0); } } |