diff options
author | Matt Hsu <matt_hsu@openmoko.org> | 2009-01-27 14:39:47 +0000 |
---|---|---|
committer | Andy Green <agreen@octopus.localdomain> | 2009-01-27 14:39:47 +0000 |
commit | a7d601d7c1be2eee311d05c61a90beaa2cbd68c3 (patch) | |
tree | 0b16ab55391121d76a50cbf7380076c797ca0cc6 /arch | |
parent | f549760bc88e5b1fa76a791d8389f03a439ccfd9 (diff) |
fix the timing of setup-gpio of LCM device and use function argument correctly.
Signed-off-by: Matt Hsu <matt_hsu@openmoko.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-s3c6410/mach-om-gta03.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/arch/arm/mach-s3c6410/mach-om-gta03.c b/arch/arm/mach-s3c6410/mach-om-gta03.c index 01a01b44baa..478b90e1f93 100644 --- a/arch/arm/mach-s3c6410/mach-om-gta03.c +++ b/arch/arm/mach-s3c6410/mach-om-gta03.c @@ -635,11 +635,18 @@ 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); - mdelay(10); - gpio_direction_output(GTA03_GPIO_LCM_RESET, 1); - mdelay(15); - gpio_direction_output(GTA03_GPIO_LCM_SD, 0); + 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); + } } const struct l1k002_platform_data gta03_l1k002_pdata = { |