Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 344938
b: refs/heads/master
c: 30af55f
h: refs/heads/master
v: v3
  • Loading branch information
Patil, Rachna authored and Samuel Ortiz committed Nov 5, 2012
1 parent b56f356 commit 26c5ea5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d1fb57435c108b8dd66d7f47b4c60c1798dcae4c
refs/heads/master: 30af55f930c2f69d8f3dcd658fb3ee352ebc54c1
10 changes: 6 additions & 4 deletions trunk/drivers/input/touchscreen/ti_tscadc.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
#define REG_STEPCONFIG(n) (0x64 + ((n - 1) * 8))
#define REG_STEPDELAY(n) (0x68 + ((n - 1) * 8))
#define REG_FIFO0CNT 0xE4
#define REG_FIFO0THR 0xE8
#define REG_FIFO1THR 0xF4
#define REG_FIFO0 0x100
#define REG_FIFO1 0x200
Expand All @@ -55,6 +56,7 @@
#define STPENB_STEPENB STEPENB(0x7FFF)

/* IRQ enable */
#define IRQENB_FIFO0THRES BIT(2)
#define IRQENB_FIFO1THRES BIT(5)
#define IRQENB_PENUP BIT(9)

Expand Down Expand Up @@ -277,7 +279,7 @@ static irqreturn_t tscadc_irq(int irq, void *dev)
unsigned int fsm;

status = tscadc_readl(ts_dev, REG_IRQSTATUS);
if (status & IRQENB_FIFO1THRES) {
if (status & IRQENB_FIFO0THRES) {
tscadc_read_coordinates(ts_dev, &x, &y);

z1 = tscadc_readl(ts_dev, REG_FIFO0) & 0xfff;
Expand All @@ -303,7 +305,7 @@ static irqreturn_t tscadc_irq(int irq, void *dev)
input_sync(input_dev);
}
}
irqclr |= IRQENB_FIFO1THRES;
irqclr |= IRQENB_FIFO0THRES;
}

/*
Expand Down Expand Up @@ -446,9 +448,9 @@ static int __devinit tscadc_probe(struct platform_device *pdev)
tscadc_writel(ts_dev, REG_CTRL, ctrl);

tscadc_idle_config(ts_dev);
tscadc_writel(ts_dev, REG_IRQENABLE, IRQENB_FIFO1THRES);
tscadc_writel(ts_dev, REG_IRQENABLE, IRQENB_FIFO0THRES);
tscadc_step_config(ts_dev);
tscadc_writel(ts_dev, REG_FIFO1THR, ts_dev->steps_to_configure);
tscadc_writel(ts_dev, REG_FIFO0THR, ts_dev->steps_to_configure);

ctrl |= CNTRLREG_TSCSSENB;
tscadc_writel(ts_dev, REG_CTRL, ctrl);
Expand Down

0 comments on commit 26c5ea5

Please sign in to comment.