From ab0a466054d12647d906cf3a9ac9cb19cbd7607b Mon Sep 17 00:00:00 2001 From: Holger Freyther Date: Wed, 19 Nov 2008 17:09:38 +0000 Subject: [neo] Every access to GPIO bank B has to go through the shadow code - Any setting of any PIN on bank B will undo the LED setting. Introduce neo1973_gpb_set_pin to set the PIN in a way not losing the LED or any other shadowed setting. - Update users of GPBXY for gta01 and gta02. Signed-Off-By: Holger Freyther --- arch/arm/plat-s3c24xx/neo1973_pm_gsm.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'arch/arm/plat-s3c24xx/neo1973_pm_gsm.c') diff --git a/arch/arm/plat-s3c24xx/neo1973_pm_gsm.c b/arch/arm/plat-s3c24xx/neo1973_pm_gsm.c index 5ad942eb3a0..149b8669add 100644 --- a/arch/arm/plat-s3c24xx/neo1973_pm_gsm.c +++ b/arch/arm/plat-s3c24xx/neo1973_pm_gsm.c @@ -22,6 +22,7 @@ #include #include #include +#include #ifdef CONFIG_MACH_NEO1973_GTA02 #include @@ -109,9 +110,9 @@ static ssize_t gsm_write(struct device *dev, struct device_attribute *attr, #endif } - s3c2410_gpio_setpin(GTA01_GPIO_MODEM_ON, 1); + neo1973_gpb_setpin(GTA01_GPIO_MODEM_ON, 1); } else { - s3c2410_gpio_setpin(GTA01_GPIO_MODEM_ON, 0); + neo1973_gpb_setpin(GTA01_GPIO_MODEM_ON, 0); switch (system_rev) { #ifdef CONFIG_MACH_NEO1973_GTA02 @@ -138,9 +139,9 @@ static ssize_t gsm_write(struct device *dev, struct device_attribute *attr, } } else if (!strcmp(attr->attr.name, "reset")) { if (machine_is_neo1973_gta01()) - s3c2410_gpio_setpin(GTA01_GPIO_MODEM_RST, on); + neo1973_gpb_setpin(GTA01_GPIO_MODEM_RST, on); else if (machine_is_neo1973_gta02()) - s3c2410_gpio_setpin(GTA02_GPIO_MODEM_RST, on); + neo1973_gpb_setpin(GTA02_GPIO_MODEM_RST, on); } else if (!strcmp(attr->attr.name, "download")) { if (machine_is_neo1973_gta01()) s3c2410_gpio_setpin(GTA01_GPIO_MODEM_DNLOAD, on); -- cgit v1.2.3