aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/cpu/sh3/serial-sh7710.c
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2011-06-15 05:03:58 -0400
committerPaul Mundt <lethal@linux-sh.org>2011-06-15 05:03:58 -0400
commit1f83812d61de8c09ad6ab6be29e0ebd0817d16f1 (patch)
tree32cc463e07a5efd7ec4702df003780664f543d5c /arch/sh/kernel/cpu/sh3/serial-sh7710.c
parent201fbceb258650157fcc4fd746abcdd3a571eada (diff)
parent4b8c59a3d83e9cf2b65b16999a0c704fc72de056 (diff)
Merge branch 'common/serial-rework' into sh-latest
Diffstat (limited to 'arch/sh/kernel/cpu/sh3/serial-sh7710.c')
-rw-r--r--arch/sh/kernel/cpu/sh3/serial-sh7710.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/sh/kernel/cpu/sh3/serial-sh7710.c b/arch/sh/kernel/cpu/sh3/serial-sh7710.c
new file mode 100644
index 000000000000..42190ef6aebf
--- /dev/null
+++ b/arch/sh/kernel/cpu/sh3/serial-sh7710.c
@@ -0,0 +1,20 @@
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
9static 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
18struct plat_sci_port_ops sh7710_sci_port_ops = {
19 .init_pins = sh7710_sci_init_pins,
20};