From: <sle...@us...> - 2007-04-21 17:16:23
|
Revision: 960 http://svn.sourceforge.net/hackndev/?rev=960&view=rev Author: sleep_walker Date: 2007-04-21 10:16:13 -0700 (Sat, 21 Apr 2007) Log Message: ----------- l4p: GPIOed-ng now supports TPS65010 GPIOs on T|T3 Modified Paths: -------------- linux4palm/linux/trunk/drivers/misc/gpioed-ng.c Modified: linux4palm/linux/trunk/drivers/misc/gpioed-ng.c =================================================================== --- linux4palm/linux/trunk/drivers/misc/gpioed-ng.c 2007-04-21 07:47:13 UTC (rev 959) +++ linux4palm/linux/trunk/drivers/misc/gpioed-ng.c 2007-04-21 17:16:13 UTC (rev 960) @@ -15,6 +15,10 @@ #include <asm/arch/irqs.h> #include <asm/uaccess.h> +#ifdef CONFIG_MACH_T3XSCALE +#include <asm/arch/tps65010.h> +#endif + #include <linux/debugfs.h> #include <linux/seq_file.h> @@ -93,6 +97,16 @@ gpio_set(id, 0); printk(KERN_ERR "GPIOed: GPIO %lu set low\n", id); break; +#ifdef CONFIG_MACH_T3XSCALE + case 'T': + tps65010_set_gpio_out_value(id, 1); + printk(KERN_ERR "GPIOed: GPIO %lu set high on TPS65010\n", id); + break; + case 't': + tps65010_set_gpio_out_value(id, 0); + printk(KERN_ERR "GPIOed: GPIO %lu set low on TPS65010\n", id); + break; +#endif case 'd': GPDR(id) &= ~(GPIO_bit(id)); break; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |