[PATCH RFC] Fix-power-on-off-sequence-of-the-GSM-mdule.patch
Werner Almesberger
werner at openmoko.org
Wed Feb 4 16:36:44 CET 2009
dkay wrote:
> I modified the power on/off sequence of the GSM module.
Hey, your first kernel patch ! Welcome to the kernel hackers club,
Dkay ! ;-)
Here's something I spotted:
> I already tested and measured the signal of the "/MODEM_RST","/MODEM_ON"
[...]
> + s3c_gpio_setpull(GTA03_GPIO_MODEN_ON, S3C_GPIO_PULL_NONE);
~~~~~~~~
Here's a patch that changes GTA03_GPIO_MODEN_ON to GTA03_GPIO_MODEM_ON.
Signed-off-by: Werner Almesberger <werner at openmoko.org>
---
diff --git a/arch/arm/mach-s3c6410/include/mach/om-gta03.h b/arch/arm/mach-s3c6410/include/mach/om-gta03.h
index 0095744..541c675 100644
--- a/arch/arm/mach-s3c6410/include/mach/om-gta03.h
+++ b/arch/arm/mach-s3c6410/include/mach/om-gta03.h
@@ -50,7 +50,7 @@ extern struct pcf50633 *om_gta03_pcf;
#define GTA03_GPIO_VERSION0 S3C64XX_GPI(8)
#define GTA03_GPIO_NWLAN_POWER S3C64XX_GPK(0)
-#define GTA03_GPIO_MODEN_ON S3C64XX_GPK(2)
+#define GTA03_GPIO_MODEM_ON S3C64XX_GPK(2)
#define GTA03_GPIO_LED_TRIG S3C64XX_GPK(3)
#define GTA03_GPIO_LED_EN S3C64XX_GPK(4)
#define GTA03_GPIO_LCM_RESET S3C64XX_GPK(6)
diff --git a/arch/arm/mach-s3c6410/om-gta03-features.c b/arch/arm/mach-s3c6410/om-gta03-features.c
index d3e2140..4ff89f1 100644
--- a/arch/arm/mach-s3c6410/om-gta03-features.c
+++ b/arch/arm/mach-s3c6410/om-gta03-features.c
@@ -104,9 +104,9 @@ static void om_gta03_features_pwron_set_on(enum feature feature)
s3c_gpio_cfgpin(GTA03_GPIO_N_MODEM_RESET, S3C_GPIO_SFN(1));
gpio_direction_output(GTA03_GPIO_N_MODEM_RESET, 0);
- gpio_direction_output(GTA03_GPIO_MODEN_ON, 0);
- s3c_gpio_setpull(GTA03_GPIO_MODEN_ON, S3C_GPIO_PULL_NONE);
- s3c_gpio_cfgpin(GTA03_GPIO_MODEN_ON, S3C_GPIO_SFN(1));
+ gpio_direction_output(GTA03_GPIO_MODEM_ON, 0);
+ s3c_gpio_setpull(GTA03_GPIO_MODEM_ON, S3C_GPIO_PULL_NONE);
+ s3c_gpio_cfgpin(GTA03_GPIO_MODEM_ON, S3C_GPIO_SFN(1));
msleep(1);
gpio_direction_output(GTA03_GPIO_N_MODEM_RESET, 1);
break;
@@ -153,9 +153,9 @@ static void om_gta03_features_pwron_set_off(enum feature feature)
break;
case OM_GTA03_GSM:
/* remove power from WLAN / BT module */
- gpio_direction_output(GTA03_GPIO_MODEN_ON, 1);
- s3c_gpio_setpull(GTA03_GPIO_MODEN_ON, S3C_GPIO_PULL_NONE);
- s3c_gpio_cfgpin(GTA03_GPIO_MODEN_ON, S3C_GPIO_SFN(1));
+ gpio_direction_output(GTA03_GPIO_MODEM_ON, 1);
+ s3c_gpio_setpull(GTA03_GPIO_MODEM_ON, S3C_GPIO_PULL_NONE);
+ s3c_gpio_cfgpin(GTA03_GPIO_MODEM_ON, S3C_GPIO_SFN(1));
break;
case OM_GTA03_USBHOST:
pcf50633_gpio_set(om_gta03_pcf, PCF50633_GPO, 0);
More information about the openmoko-kernel
mailing list