Loading...
1#include <linux/serial_sci.h>
2#include <linux/serial_core.h>
3#include <linux/io.h>
4
5#define PSCR 0xA405011E
6
7static void sh7722_sci_init_pins(struct uart_port *port, unsigned int cflag)
8{
9 unsigned short data;
10
11 if (port->mapbase == 0xffe00000) {
12 data = __raw_readw(PSCR);
13 data &= ~0x03cf;
14 if (!(cflag & CRTSCTS))
15 data |= 0x0340;
16
17 __raw_writew(data, PSCR);
18 }
19}
20
21struct plat_sci_port_ops sh7722_sci_port_ops = {
22 .init_pins = sh7722_sci_init_pins,
23};
1// SPDX-License-Identifier: GPL-2.0
2#include <linux/serial_sci.h>
3#include <linux/serial_core.h>
4#include <linux/io.h>
5
6#define PSCR 0xA405011E
7
8static void sh7722_sci_init_pins(struct uart_port *port, unsigned int cflag)
9{
10 unsigned short data;
11
12 if (port->mapbase == 0xffe00000) {
13 data = __raw_readw(PSCR);
14 data &= ~0x03cf;
15 if (!(cflag & CRTSCTS))
16 data |= 0x0340;
17
18 __raw_writew(data, PSCR);
19 }
20}
21
22struct plat_sci_port_ops sh7722_sci_port_ops = {
23 .init_pins = sh7722_sci_init_pins,
24};