From: <sle...@us...> - 2007-07-08 20:04:47
|
Revision: 1123 http://svn.sourceforge.net/hackndev/?rev=1123&view=rev Author: sleep_walker Date: 2007-07-08 13:04:44 -0700 (Sun, 08 Jul 2007) Log Message: ----------- palmtt3: forgoten file again :o) Added Paths: ----------- linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt3/palmtt3_bt.c Added: linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt3/palmtt3_bt.c =================================================================== --- linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt3/palmtt3_bt.c (rev 0) +++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt3/palmtt3_bt.c 2007-07-08 20:04:44 UTC (rev 1123) @@ -0,0 +1,48 @@ +/* arch/arm/mach-pxa/palmtt3/palmtt3_bt.c + * + * Palm Tungsten|T3 bluetooth driver + * + * copied from palmz72.c and changed bit + * + * Tomas Cech <Tom...@ma...> + */ + +#include <linux/module.h> +#include <linux/kernel.h> +#include <asm/arch/palmtt3-gpio.h> +#include <asm/arch/tps65010.h> +#include <linux/platform_device.h> +#include <asm/arch/serial.h> + + +void bcm2035_bt_reset(int on) +{ + printk(KERN_NOTICE "Switch BT reset %d\n", on); + if (on) + SET_GPIO(GPIO_NR_PALMTT3_RESET, 1); + else + SET_GPIO(GPIO_NR_PALMTT3_RESET, 0 ); +} +EXPORT_SYMBOL(bcm2035_bt_reset); + + +void bcm2035_bt_power(int on) +{ + printk(KERN_NOTICE "Switch BT power %d\n", on); + if (on) + tps65010_set_gpio_out_value(GPIO_NR_PALMTT3_TPS65010_BT_POWER,1); + else + tps65010_set_gpio_out_value(GPIO_NR_PALMTT3_TPS65010_BT_POWER,0); +} +EXPORT_SYMBOL(bcm2035_bt_power); + + +/* +static struct platform_pxa_serial_funcs bcm2035_pxa_bt_funcs = { + .configure = bcm2035_bt_configure, +}; +EXPORT_SYMBOL(bcm2035_pxa_bt_funcs); +*/ +MODULE_LICENSE("GPL"); +MODULE_AUTHOR("Tomas Cech <Tom...@ma...>"); +MODULE_DESCRIPTION("Palm T|T3 bluetooth driver"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |