~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to drivers/tty/serial/imx.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 *  linux/drivers/serial/imx.c
3
 
 *
4
2
 *  Driver for Motorola IMX serial ports
5
3
 *
6
4
 *  Based on drivers/char/serial.c, by Linus Torvalds, Theodore Ts'o.
78
76
#define  URXD_FRMERR     (1<<12)
79
77
#define  URXD_BRK        (1<<11)
80
78
#define  URXD_PRERR      (1<<10)
81
 
#define  UCR1_ADEN       (1<<15) /* Auto dectect interrupt */
 
79
#define  UCR1_ADEN       (1<<15) /* Auto detect interrupt */
82
80
#define  UCR1_ADBR       (1<<14) /* Auto detect baud rate */
83
81
#define  UCR1_TRDYEN     (1<<13) /* Transmitter ready interrupt enable */
84
82
#define  UCR1_IDEN       (1<<12) /* Idle condition interrupt */
382
380
static irqreturn_t imx_rtsint(int irq, void *dev_id)
383
381
{
384
382
        struct imx_port *sport = dev_id;
385
 
        unsigned int val = readl(sport->port.membase + USR1) & USR1_RTSS;
 
383
        unsigned int val;
386
384
        unsigned long flags;
387
385
 
388
386
        spin_lock_irqsave(&sport->port.lock, flags);
389
387
 
390
388
        writel(USR1_RTSD, sport->port.membase + USR1);
 
389
        val = readl(sport->port.membase + USR1) & USR1_RTSS;
391
390
        uart_handle_cts_change(&sport->port, !!val);
392
391
        wake_up_interruptible(&sport->port.state->port.delta_msr_wait);
393
392