#include <linux/tty.h>
#include <linux/init.h>
#include <linux/console.h>
#include <linux/of.h>
#include <linux/serial_reg.h>
#include <linux/serial.h>
#include <linux/serial_8250.h>
#include <asm/io.h>
#include <asm/serial.h>
static unsigned int serial8250_early_in(struct uart_port *port, int offset)
{ … }
static void serial8250_early_out(struct uart_port *port, int offset, int value)
{ … }
static void serial_putc(struct uart_port *port, unsigned char c)
{ … }
static void early_serial8250_write(struct console *console,
const char *s, unsigned int count)
{ … }
#ifdef CONFIG_CONSOLE_POLL
static int early_serial8250_read(struct console *console,
char *s, unsigned int count)
{ … }
#else
#define early_serial8250_read …
#endif
static void __init init_port(struct earlycon_device *device)
{ … }
int __init early_serial8250_setup(struct earlycon_device *device,
const char *options)
{ … }
EARLYCON_DECLARE(…);
EARLYCON_DECLARE(…);
OF_EARLYCON_DECLARE(…);
OF_EARLYCON_DECLARE(…);
OF_EARLYCON_DECLARE(…);
OF_EARLYCON_DECLARE(…);
static int __init early_serial8250_rs2_setup(struct earlycon_device *device,
const char *options)
{ … }
OF_EARLYCON_DECLARE(…);
OF_EARLYCON_DECLARE(…);
OF_EARLYCON_DECLARE(…);
#ifdef CONFIG_SERIAL_8250_OMAP
static int __init early_omap8250_setup(struct earlycon_device *device,
const char *options)
{ … }
OF_EARLYCON_DECLARE(…);
OF_EARLYCON_DECLARE(…);
OF_EARLYCON_DECLARE(…);
OF_EARLYCON_DECLARE(…);
#endif