#include <linux/clk.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include "8250.h"
#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(…) …;