linux/drivers/tty/serial/8250/8250_rt288x.c

// SPDX-License-Identifier: GPL-2.0
/*
 * RT288x/Au1xxx driver
 */

#include <linux/module.h>
#include <linux/io.h>
#include <linux/init.h>
#include <linux/console.h>
#include <linux/serial.h>
#include <linux/serial_8250.h>

#include "8250.h"

#define RT288X_DL

/* Au1x00/RT288x UART hardware has a weird register layout */
static const u8 au_io_in_map[7] =;

static const u8 au_io_out_map[5] =;

static unsigned int au_serial_in(struct uart_port *p, int offset)
{}

static void au_serial_out(struct uart_port *p, int offset, int value)
{}

/* Au1x00 haven't got a standard divisor latch */
static u32 au_serial_dl_read(struct uart_8250_port *up)
{}

static void au_serial_dl_write(struct uart_8250_port *up, u32 value)
{}

int au_platform_setup(struct plat_serial8250_port *p)
{}
EXPORT_SYMBOL_GPL();

int rt288x_setup(struct uart_port *p)
{}
EXPORT_SYMBOL_GPL();

#ifdef CONFIG_SERIAL_8250_CONSOLE
static void au_putc(struct uart_port *port, unsigned char c)
{}

static void au_early_serial8250_write(struct console *console,
				      const char *s, unsigned int count)
{}

static int __init early_au_setup(struct earlycon_device *dev, const char *opt)
{}
OF_EARLYCON_DECLARE();
#endif

MODULE_DESCRIPTION();
MODULE_LICENSE();