Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / arch / sh / kernel / cpu / sh4a / serial-sh7722.c
blob6ecc8b6e133c69ab17c8c90a9aa662ceacd4fdcd
1 // SPDX-License-Identifier: GPL-2.0
2 #include <linux/serial_sci.h>
3 #include <linux/serial_core.h>
4 #include <linux/io.h>
6 #define PSCR 0xA405011E
8 static void sh7722_sci_init_pins(struct uart_port *port, unsigned int cflag)
10 unsigned short data;
12 if (port->mapbase == 0xffe00000) {
13 data = __raw_readw(PSCR);
14 data &= ~0x03cf;
15 if (!(cflag & CRTSCTS))
16 data |= 0x0340;
18 __raw_writew(data, PSCR);
22 struct plat_sci_port_ops sh7722_sci_port_ops = {
23 .init_pins = sh7722_sci_init_pins,