Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 137193
b: refs/heads/master
c: 290a558
h: refs/heads/master
i:
  137191: 14f0ab3
v: v3
  • Loading branch information
Eric Miao committed Mar 9, 2009
1 parent fdccb6f commit eccd2f5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 21 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: 0807da5938b2d64fef7f1109fb4014de6392cbf7
refs/heads/master: 290a5589ce83540d0aba811c3d15af34aa373533
30 changes: 10 additions & 20 deletions trunk/drivers/serial/pxa.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,7 @@
#include <linux/tty_flip.h>
#include <linux/serial_core.h>
#include <linux/clk.h>

#include <asm/io.h>
#include <mach/hardware.h>
#include <asm/irq.h>
#include <mach/pxa-regs.h>
#include <mach/regs-uart.h>

#include <linux/io.h>

struct uart_pxa_port {
struct uart_port port;
Expand Down Expand Up @@ -491,7 +485,7 @@ serial_pxa_set_termios(struct uart_port *port, struct ktermios *termios,
* Ensure the port will be enabled.
* This is required especially for serial console.
*/
up->ier |= IER_UUE;
up->ier |= UART_IER_UUE;

/*
* Update the per-port timeout.
Expand Down Expand Up @@ -784,19 +778,15 @@ static int serial_pxa_probe(struct platform_device *dev)
sport->port.flags = UPF_IOREMAP | UPF_BOOT_AUTOCONF;
sport->port.uartclk = clk_get_rate(sport->clk);

/*
* Is it worth keeping this?
*/
if (mmres->start == __PREG(FFUART))
sport->name = "FFUART";
else if (mmres->start == __PREG(BTUART))
sport->name = "BTUART";
else if (mmres->start == __PREG(STUART))
sport->name = "STUART";
else if (mmres->start == __PREG(HWUART))
sport->name = "HWUART";
else
switch (dev->id) {
case 0: sport->name = "FFUART"; break;
case 1: sport->name = "BTUART"; break;
case 2: sport->name = "STUART"; break;
case 3: sport->name = "HWUART"; break;
default:
sport->name = "???";
break;
}

sport->port.membase = ioremap(mmres->start, mmres->end - mmres->start + 1);
if (!sport->port.membase) {
Expand Down

0 comments on commit eccd2f5

Please sign in to comment.