Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 126634
b: refs/heads/master
c: ca21999
h: refs/heads/master
v: v3
  • Loading branch information
Vijay Kumar authored and Greg Kroah-Hartman committed Jan 6, 2009
1 parent 14b04f0 commit 86d8e81
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 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: 3ca67c1b94f26cacf9c709d2cf39792cf14f1356
refs/heads/master: ca219995b299a069dc0a88ddc24ac72423a81361
13 changes: 10 additions & 3 deletions trunk/drivers/staging/poch/poch.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,11 @@
#define FPGA_INT_TX_ACQ_DONE (0x1 << 1)
#define FPGA_INT_RX_ACQ_DONE (0x1)

#define FPGA_RX_ADC_CTL_REG 0x214
#define FPGA_RX_ADC_CTL_CONT_CAP (0x0)
#define FPGA_RX_ADC_CTL_SNAP_CAP (0x1)
#define FPGA_RX_CTL_REG 0x214
#define FPGA_RX_CTL_FIFO_FLUSH (0x1 << 9)
#define FPGA_RX_CTL_SYNTH_DATA (0x1 << 8)
#define FPGA_RX_CTL_CONT_CAP (0x0 << 1)
#define FPGA_RX_CTL_SNAP_CAP (0x1 << 1)

#define FPGA_RX_ARM_REG 0x21C

Expand Down Expand Up @@ -819,6 +821,11 @@ static int poch_open(struct inode *inode, struct file *filp)
iowrite32(FPGA_TX_CTL_FIFO_FLUSH
| FPGA_TX_CTL_OUTPUT_CARDBUS,
fpga + FPGA_TX_CTL_REG);
} else {
/* Flush RX FIFO and output data to cardbus. */
iowrite32(FPGA_RX_CTL_CONT_CAP
| FPGA_RX_CTL_FIFO_FLUSH,
fpga + FPGA_RX_CTL_REG);
}

atomic_inc(&channel->inited);
Expand Down

0 comments on commit 86d8e81

Please sign in to comment.