This source file includes following definitions.
- sh770x_sci_init_pins
1
2 #include <linux/serial_sci.h>
3 #include <linux/serial_core.h>
4 #include <linux/io.h>
5 #include <cpu/serial.h>
6
7 #define SCPCR 0xA4000116
8 #define SCPDR 0xA4000136
9
10 static void sh770x_sci_init_pins(struct uart_port *port, unsigned int cflag)
11 {
12 unsigned short data;
13
14
15 data = __raw_readw(SCPCR);
16
17 __raw_writew(data & 0x0fcf, SCPCR);
18
19 if (!(cflag & CRTSCTS)) {
20
21 data = __raw_readw(SCPCR);
22
23
24 __raw_writew((data & 0x0fcf) | 0x1000, SCPCR);
25
26 data = __raw_readb(SCPDR);
27
28 __raw_writeb(data & 0xbf, SCPDR);
29 }
30 }
31
32 struct plat_sci_port_ops sh770x_sci_port_ops = {
33 .init_pins = sh770x_sci_init_pins,
34 };