~ubuntu-branches/ubuntu/precise/linux-lowlatency/precise

« back to all changes in this revision

Viewing changes to arch/sh/kernel/cpu/sh3/serial-sh7710.c

  • Committer: Package Import Robot
  • Author(s): Alessio Igor Bogani
  • Date: 2011-10-26 11:13:05 UTC
  • Revision ID: package-import@ubuntu.com-20111026111305-tz023xykf0i6eosh
Tags: upstream-3.2.0
ImportĀ upstreamĀ versionĀ 3.2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <linux/serial_sci.h>
 
2
#include <linux/serial_core.h>
 
3
#include <linux/io.h>
 
4
#include <cpu/serial.h>
 
5
 
 
6
#define PACR 0xa4050100
 
7
#define PBCR 0xa4050102
 
8
 
 
9
static void sh7710_sci_init_pins(struct uart_port *port, unsigned int cflag)
 
10
{
 
11
        if (port->mapbase == 0xA4400000) {
 
12
                __raw_writew(__raw_readw(PACR) & 0xffc0, PACR);
 
13
                __raw_writew(__raw_readw(PBCR) & 0x0fff, PBCR);
 
14
        } else if (port->mapbase == 0xA4410000)
 
15
                __raw_writew(__raw_readw(PBCR) & 0xf003, PBCR);
 
16
}
 
17
 
 
18
struct plat_sci_port_ops sh7710_sci_port_ops = {
 
19
        .init_pins      = sh7710_sci_init_pins,
 
20
};