Blackfin arch: emulate a TTY over the EMUDAT/JTAG interface
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com> Signed-off-by: Bryan Wu <cooloney@kernel.org>
This commit is contained in:
parent
3c08f1d122
commit
a88c71e436
|
@ -35,6 +35,9 @@
|
||||||
extern struct console *bfin_earlyserial_init(unsigned int port,
|
extern struct console *bfin_earlyserial_init(unsigned int port,
|
||||||
unsigned int cflag);
|
unsigned int cflag);
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef CONFIG_BFIN_JTAG_COMM
|
||||||
|
extern struct console *bfin_jc_early_init(void);
|
||||||
|
#endif
|
||||||
|
|
||||||
static struct console *early_console;
|
static struct console *early_console;
|
||||||
|
|
||||||
|
@ -142,6 +145,15 @@ int __init setup_early_printk(char *buf)
|
||||||
early_console = earlyserial_init(buf);
|
early_console = earlyserial_init(buf);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_BFIN_JTAG_COMM
|
||||||
|
/* Check for Blackfin JTAG */
|
||||||
|
if (!strncmp(buf, "jtag", 4)) {
|
||||||
|
buf += 4;
|
||||||
|
early_console = bfin_jc_early_init();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_FB
|
#ifdef CONFIG_FB
|
||||||
/* TODO: add framebuffer console support */
|
/* TODO: add framebuffer console support */
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue