diff options
author | Mike Frysinger <vapier.adi@gmail.com> | 2008-10-10 05:37:52 -0400 |
---|---|---|
committer | Bryan Wu <cooloney@kernel.org> | 2008-10-10 05:37:52 -0400 |
commit | a88c71e4367aada2065c5e247477c891d2ca952f (patch) | |
tree | d0c12413d55ac060aea8117eb0598525d0f93139 | |
parent | 3c08f1d122627c9559fb03a11f52ea37f960b61e (diff) |
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>
-rw-r--r-- | arch/blackfin/kernel/early_printk.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/blackfin/kernel/early_printk.c b/arch/blackfin/kernel/early_printk.c index 60f67f90fe35..1f4e3d2e0901 100644 --- a/arch/blackfin/kernel/early_printk.c +++ b/arch/blackfin/kernel/early_printk.c | |||
@@ -35,6 +35,9 @@ | |||
35 | extern struct console *bfin_earlyserial_init(unsigned int port, | 35 | extern struct console *bfin_earlyserial_init(unsigned int port, |
36 | unsigned int cflag); | 36 | unsigned int cflag); |
37 | #endif | 37 | #endif |
38 | #ifdef CONFIG_BFIN_JTAG_COMM | ||
39 | extern struct console *bfin_jc_early_init(void); | ||
40 | #endif | ||
38 | 41 | ||
39 | static struct console *early_console; | 42 | static struct console *early_console; |
40 | 43 | ||
@@ -142,6 +145,15 @@ int __init setup_early_printk(char *buf) | |||
142 | early_console = earlyserial_init(buf); | 145 | early_console = earlyserial_init(buf); |
143 | } | 146 | } |
144 | #endif | 147 | #endif |
148 | |||
149 | #ifdef CONFIG_BFIN_JTAG_COMM | ||
150 | /* Check for Blackfin JTAG */ | ||
151 | if (!strncmp(buf, "jtag", 4)) { | ||
152 | buf += 4; | ||
153 | early_console = bfin_jc_early_init(); | ||
154 | } | ||
155 | #endif | ||
156 | |||
145 | #ifdef CONFIG_FB | 157 | #ifdef CONFIG_FB |
146 | /* TODO: add framebuffer console support */ | 158 | /* TODO: add framebuffer console support */ |
147 | #endif | 159 | #endif |