[PATCH] GTA02 power manager for bluetooth

Willie willie_chen at openmoko.com
Fri Jan 18 07:47:14 CET 2008


Werner Almesberger wrote:
> 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
>   
Yes. That's right.

-Willie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openmoko.org/pipermail/openmoko-kernel/attachments/20080118/0a5fa399/attachment.htm 


More information about the openmoko-kernel mailing list