From c0cd6caf3b81ac82b75d8b9a32ce2ca332e26110 Mon Sep 17 00:00:00 2001 From: "tim.niemeyer@mastersword.de" Date: Sun, 22 Mar 2009 17:42:36 +0100 Subject: 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 Signed-off-by: Werner Almesberger --- arch/arm/plat-s3c24xx/neo1973_pm_gsm.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'arch') 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); -- cgit v1.2.3