projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* Patches by Robert Schwebel, 26 Jun 2003:
[oweals/u-boot.git]
/
cpu
/
mpc8xx
/
serial.c
diff --git
a/cpu/mpc8xx/serial.c
b/cpu/mpc8xx/serial.c
index 2871084fcdd4be978e75316bc989c13c8ae43299..4e5b408896aabacf5d8fe0633e6fddbab58c8c8c 100644
(file)
--- a/
cpu/mpc8xx/serial.c
+++ b/
cpu/mpc8xx/serial.c
@@
-246,6
+246,20
@@
serial_setbrg (void)
(((gd->cpu_clk / 16 / gd->baudrate)-1) << 1) | CPM_BRG_EN;
}
(((gd->cpu_clk / 16 / gd->baudrate)-1) << 1) | CPM_BRG_EN;
}
+#ifdef CONFIG_MODEM_SUPPORT
+void disable_putc(void)
+{
+ DECLARE_GLOBAL_DATA_PTR;
+ gd->be_quiet = 1;
+}
+
+void enable_putc(void)
+{
+ DECLARE_GLOBAL_DATA_PTR;
+ gd->be_quiet = 0;
+}
+#endif
+
void
serial_putc(const char c)
{
void
serial_putc(const char c)
{
@@
-255,6
+269,13
@@
serial_putc(const char c)
volatile immap_t *im = (immap_t *)CFG_IMMR;
volatile cpm8xx_t *cpmp = &(im->im_cpm);
volatile immap_t *im = (immap_t *)CFG_IMMR;
volatile cpm8xx_t *cpmp = &(im->im_cpm);
+#ifdef CONFIG_MODEM_SUPPORT
+ DECLARE_GLOBAL_DATA_PTR;
+
+ if (gd->be_quiet)
+ return;
+#endif
+
if (c == '\n')
serial_putc ('\r');
if (c == '\n')
serial_putc ('\r');