[PATCH] GTA02 power manager for bluetooth

Werner Almesberger werner at openmoko.org
Fri Jan 18 05:15:38 CET 2008


Willie Chen wrote:
> Yes, it's a good solution. We can change in gta01_bt_probe.

Cool. So that would be:

--- linux-2.6.24-rc7.orig/arch/arm/plat-s3c24xx/neo1973_pm_bt.c
+++ linux-2.6.24-rc7/arch/arm/plat-s3c24xx/neo1973_pm_bt.c
@@ -198,7 +198,12 @@
 
 #ifdef CONFIG_MACH_NEO1973_GTA02
 	case MACH_TYPE_NEO1973_GTA02:
-		/* FIXME: implementation */
+		/* we make sure that the voltage is off */
+		pcf50633_ena_voltage(pcf50633_global,
+				     PCF50633_REGULATOR_LDO4, 0);
+		/* we pull reset to low to make sure that the chip doesn't
+	 	 * drain power through the reset line */
+		s3c2410_gpio_setpin(GTA02_GPIO_BT_EN, 0);
 		break;
 #endif /* CONFIG_MACH_NEO1973_GTA02 */

Correct ?

- Werner




More information about the openmoko-kernel mailing list