Changeset 4089
- Timestamp:
- 02/21/08 05:04:39 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/src/target/kernel/2.6.24.x/patches/gta02-power_control.patch
r4088 r4089 13 13 #define DRVMSG "FIC Neo1973 Bluetooth Power Management" 14 14 15 @@ -27,14 +29,30 @@ 15 @@ -27,14 +29,30 @@ static ssize_t bt_read(struct device *de 16 16 char *buf) 17 17 { … … 51 51 52 52 return strlcpy(buf, "0\n", 3); 53 @@ -48,20 +66,37 @@ 53 @@ -48,20 +66,37 @@ static ssize_t bt_write(struct device *d 54 54 unsigned long on = simple_strtoul(buf, NULL, 10); 55 55 … … 100 100 101 101 return count; 102 @@ -107,9 +142,16 @@ 102 @@ -107,9 +142,16 @@ static int __init gta01_bt_probe(struct 103 103 { 104 104 dev_info(&pdev->dev, DRVMSG ": starting\n"); … … 140 140 int gpio_ngsm_en; 141 141 struct console *con; 142 @@ -54,8 +61,16 @@ 142 @@ -54,8 +61,16 @@ static ssize_t gsm_read(struct device *d 143 143 if (s3c2410_gpio_getpin(GTA01_GPIO_MODEM_RST)) 144 144 goto out_1; … … 159 159 160 160 return strlcpy(buf, "0\n", 3); 161 @@ -70,32 +85,65 @@ 161 @@ -70,32 +85,65 @@ static ssize_t gsm_write(struct device * 162 162 163 163 if (!strcmp(attr->attr.name, "power_on")) { … … 232 232 233 233 return count; 234 @@ -134,7 +182,7 @@ 234 @@ -111,6 +159,9 @@ static int gta01_gsm_suspend(struct plat 235 /* GPIO state is saved/restored by S3C2410 core GPIO driver, so we 236 * don't need to do anything here */ 237 238 + /* disable DL GSM to prevent jack_insert becoming flaoting */ 239 + if (machine_is_neo1973_gta02()) 240 + s3c2410_gpio_setpin(GTA02_GPIO_nDL_GSM, 1); 241 return 0; 242 } 243 244 @@ -124,6 +175,8 @@ static int gta01_gsm_resume(struct platf 245 if (s3c2410_gpio_getpin(GTA01_GPIO_MODEM_ON) && gta01_gsm.con) 246 console_stop(gta01_gsm.con); 247 248 + if (machine_is_neo1973_gta02()) 249 + s3c2410_gpio_setpin(GTA02_GPIO_nDL_GSM, 0); 250 return 0; 251 } 252 #else 253 @@ -134,7 +187,7 @@ static int gta01_gsm_resume(struct platf 235 254 static struct attribute *gta01_gsm_sysfs_entries[] = { 236 255 &dev_attr_power_on.attr, … … 241 260 }; 242 261 243 @@ -158,8 +2 06,17 @@262 @@ -158,8 +211,17 @@ static int __init gta01_gsm_probe(struct 244 263 gta01_gsm.gpio_ngsm_en = GTA01Bv2_GPIO_nGSM_EN; 245 264 s3c2410_gpio_setpin(GTA01v3_GPIO_nGSM_EN, 0); … … 260 279 system_rev); 261 280 break; 262 @@ -175,9 +23 2,13 @@281 @@ -175,9 +237,13 @@ static int __init gta01_gsm_probe(struct 263 282 break; 264 283 }
Note: See TracChangeset
for help on using the changeset viewer.
