#include <linux/clk.h>
#include <linux/console.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include "8250.h"
#define UNIPHIER_UART_REGSHIFT …
#define UNIPHIER_UART_CHAR_FCR …
#define UNIPHIER_UART_LCR_MCR …
#define UNIPHIER_UART_DLR …
struct uniphier8250_priv { … };
#ifdef CONFIG_SERIAL_8250_CONSOLE
static int __init uniphier_early_console_setup(struct earlycon_device *device,
const char *options)
{ … }
OF_EARLYCON_DECLARE(…);
#endif
static unsigned int uniphier_serial_in(struct uart_port *p, int offset)
{ … }
static void uniphier_serial_out(struct uart_port *p, int offset, int value)
{ … }
static u32 uniphier_serial_dl_read(struct uart_8250_port *up)
{ … }
static void uniphier_serial_dl_write(struct uart_8250_port *up, u32 value)
{ … }
static int uniphier_uart_probe(struct platform_device *pdev)
{ … }
static void uniphier_uart_remove(struct platform_device *pdev)
{ … }
static int __maybe_unused uniphier_uart_suspend(struct device *dev)
{ … }
static int __maybe_unused uniphier_uart_resume(struct device *dev)
{ … }
static const struct dev_pm_ops uniphier_uart_pm_ops = …;
static const struct of_device_id uniphier_uart_match[] = …;
MODULE_DEVICE_TABLE(of, uniphier_uart_match);
static struct platform_driver uniphier_uart_platform_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;