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

// SPDX-License-Identifier: GPL-2.0
/*
 * Serial port driver for NXP LPC18xx/43xx UART
 *
 * Copyright (C) 2015 Joachim Eastwood <[email protected]>
 *
 * Based on 8250_mtk.c:
 * Copyright (c) 2014 MundoReader S.L.
 * Matthias Brugger <[email protected]>
 */

#include <linux/clk.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>

#include "8250.h"

/* Additional LPC18xx/43xx 8250 registers and bits */
#define LPC18XX_UART_RS485CTRL
#define LPC18XX_UART_RS485CTRL_NMMEN
#define LPC18XX_UART_RS485CTRL_DCTRL
#define LPC18XX_UART_RS485CTRL_OINV
#define LPC18XX_UART_RS485DLY
#define LPC18XX_UART_RS485DLY_MAX

struct lpc18xx_uart_data {};

static int lpc18xx_rs485_config(struct uart_port *port, struct ktermios *termios,
				struct serial_rs485 *rs485)
{}

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

static const struct serial_rs485 lpc18xx_rs485_supported =;

static int lpc18xx_serial_probe(struct platform_device *pdev)
{}

static void lpc18xx_serial_remove(struct platform_device *pdev)
{}

static const struct of_device_id lpc18xx_serial_match[] =;
MODULE_DEVICE_TABLE(of, lpc18xx_serial_match);

static struct platform_driver lpc18xx_serial_driver =;
module_platform_driver();

MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();