Revision: 557
Author: farcaller
Date: 2006-08-26 06:58:50 -0700 (Sat, 26 Aug 2006)
ViewCVS: http://svn.sourceforge.net/hackndev/?rev=557&view=rev
Log Message:
-----------
palmt3: fixed GPIO14 assignment
Modified Paths:
--------------
linux4palm/linux/trunk/drivers/i2c/chips/tps65010.c
Modified: linux4palm/linux/trunk/drivers/i2c/chips/tps65010.c
===================================================================
--- linux4palm/linux/trunk/drivers/i2c/chips/tps65010.c 2006-08-25 19:04:15 UTC (rev 556)
+++ linux4palm/linux/trunk/drivers/i2c/chips/tps65010.c 2006-08-26 13:58:50 UTC (rev 557)
@@ -38,6 +38,9 @@
#ifdef CONFIG_MACH_T3XSCALE // T3 patch
// FIXME xscale GPIOs
+#include <asm/arch/irqs.h>
+#define T3_TPS65010_GPIO 14
+
#else
#include <asm/arch/gpio.h>
#include <asm/arch/mux.h>
@@ -475,7 +478,9 @@
#ifdef CONFIG_ARM
#ifdef CONFIG_MACH_T3XSCALE // T3 patch
- // FIXME xscale GPIO request
+ //if (machine_is_t3xscale())
+ // free_irq(IRQ_GPIO(T3_TPS65010_GPIO), (void*) 0);
+ // done later
#else
if (machine_is_omap_h2())
omap_free_gpio(58);
@@ -485,7 +490,7 @@
#endif
// FIXME no interrupt for T3 yet
- //free_irq(tps->irq, tps);
+ free_irq(tps->irq, tps);
debugfs_remove(tps->file);
if (i2c_detach_client(client) == 0)
kfree(tps);
@@ -535,9 +540,11 @@
#ifdef CONFIG_ARM
#ifdef CONFIG_MACH_T3XSCALE // T3 patch
- // FIXME T3
irqflags = SA_SAMPLE_RANDOM;
tps->model = TPS65010;
+ tps->irq = IRQ_GPIO(T3_TPS65010_GPIO);
+ // is it ok to do this here?
+ set_irq_type (IRQ_GPIO(T3_TPS65010_GPIO), IRQT_FALLING);
#else
irqflags = SA_SAMPLE_RANDOM | SA_TRIGGER_LOW;
if (machine_is_omap_h2()) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|