1 // SPDX-License-Identifier: GPL-2.0
2 #include <linux/serial_sci.h>
3 #include <linux/serial_core.h>
6 #define PSCR 0xA405011E
8 static void sh7722_sci_init_pins(struct uart_port
*port
, unsigned int cflag
)
12 if (port
->mapbase
== 0xffe00000) {
13 data
= __raw_readw(PSCR
);
15 if (!(cflag
& CRTSCTS
))
18 __raw_writew(data
, PSCR
);
22 struct plat_sci_port_ops sh7722_sci_port_ops
= {
23 .init_pins
= sh7722_sci_init_pins
,