File Index
Files and directories
Sign in
FILE

serial-sh7722.c

File preview with syntax highlighting.

linux-6.19.14/arch/sh/kernel/cpu/sh4a/serial-sh7722.c C
 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};
~/ Read-only file preview.