aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authortim.niemeyer@mastersword.de <tim.niemeyer@mastersword.de>2009-03-22 17:42:36 +0100
committerWerner Almesberger <werner@openmoko.org>2009-03-26 01:48:55 -0300
commitc0cd6caf3b81ac82b75d8b9a32ce2ca332e26110 (patch)
treefee4f486b35401ccb62fb4c63281c934bdbf52f2 /arch
parent1350d5dfaac7dadf6cab9e812f0acfabcce60e58 (diff)
Change disable serial driver for gta02 only
Change RTS and TXD pins on UART 0 to be inputs only on GTA02. On GTA01 the UART 0 maybe used otherwise. [ Werner: removed unexplained addition of DEBUG, Documentation/CodingStyle lines 105, 224, and 448. ] Signed-off-by: Tim Niemeyer <reddog@mastersword.de> Signed-off-by: Werner Almesberger <werner@openmoko.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/plat-s3c24xx/neo1973_pm_gsm.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/arch/arm/plat-s3c24xx/neo1973_pm_gsm.c b/arch/arm/plat-s3c24xx/neo1973_pm_gsm.c
index fbd9f0eece3..98cd95f4d29 100644
--- a/arch/arm/plat-s3c24xx/neo1973_pm_gsm.c
+++ b/arch/arm/plat-s3c24xx/neo1973_pm_gsm.c
@@ -96,12 +96,17 @@ out_1:
static void gsm_on_off(struct device *dev, int on)
{
if (!on) {
- /* do not drive into powered-down GSM side */
- s3c2410_gpio_cfgpin(S3C2410_GPH1, S3C2410_GPIO_INPUT);
- s3c2410_gpio_cfgpin(S3C2410_GPH2, S3C2410_GPIO_INPUT);
+ if (machine_is_neo1973_gta02()) {
+ /*
+ * Do not drive into powered-down GSM side
+ * GTA02 only, because on GTA01 maybe serial
+ * is used otherwise.
+ */
+ s3c2410_gpio_cfgpin(S3C2410_GPH1, S3C2410_GPIO_INPUT);
+ s3c2410_gpio_cfgpin(S3C2410_GPH2, S3C2410_GPIO_INPUT);
- if (machine_is_neo1973_gta02())
pcf50633_gpio_set(gta02_pcf, PCF50633_GPIO2, 0);
+ }
if (gta01_gsm.gpio_ngsm_en)
s3c2410_gpio_setpin(gta01_gsm.gpio_ngsm_en, 1);