diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/serial_core.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h index 7a15b5b24c0b..5bbb809ee197 100644 --- a/include/linux/serial_core.h +++ b/include/linux/serial_core.h | |||
| @@ -294,6 +294,9 @@ struct earlycon_device { | |||
| 294 | int setup_earlycon(char *buf, const char *match, | 294 | int setup_earlycon(char *buf, const char *match, |
| 295 | int (*setup)(struct earlycon_device *, const char *)); | 295 | int (*setup)(struct earlycon_device *, const char *)); |
| 296 | 296 | ||
| 297 | extern int of_setup_earlycon(unsigned long addr, | ||
| 298 | int (*setup)(struct earlycon_device *, const char *)); | ||
| 299 | |||
| 297 | #define EARLYCON_DECLARE(name, func) \ | 300 | #define EARLYCON_DECLARE(name, func) \ |
| 298 | static int __init name ## _setup_earlycon(char *buf) \ | 301 | static int __init name ## _setup_earlycon(char *buf) \ |
| 299 | { \ | 302 | { \ |
| @@ -301,6 +304,9 @@ static int __init name ## _setup_earlycon(char *buf) \ | |||
| 301 | } \ | 304 | } \ |
| 302 | early_param("earlycon", name ## _setup_earlycon); | 305 | early_param("earlycon", name ## _setup_earlycon); |
| 303 | 306 | ||
| 307 | #define OF_EARLYCON_DECLARE(name, compat, fn) \ | ||
| 308 | _OF_DECLARE(earlycon, name, compat, fn, void *) | ||
| 309 | |||
| 304 | struct uart_port *uart_get_console(struct uart_port *ports, int nr, | 310 | struct uart_port *uart_get_console(struct uart_port *ports, int nr, |
| 305 | struct console *c); | 311 | struct console *c); |
| 306 | void uart_parse_options(char *options, int *baud, int *parity, int *bits, | 312 | void uart_parse_options(char *options, int *baud, int *parity, int *bits, |
