summaryrefslogtreecommitdiffstats
path: root/c/src/lib
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2001-06-08 13:32:08 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2001-06-08 13:32:08 +0000
commit622a42926e20d8ea4a21d3d90037b276f1f8f836 (patch)
treea30fca057c2cd7a2afd69e757cdf6ea7d4b4f4a6 /c/src/lib
parent2000-06-08 Eric Valette <valette@crf.canon.fr> (diff)
downloadrtems-622a42926e20d8ea4a21d3d90037b276f1f8f836.tar.bz2
2000-06-08 Eric Valette <valette@crf.canon.fr>
* mpc8xx/console-generic/console-generic.c: The printk/printf did not work when loaded by EPPCBUG. They did work when loaded with the BDM debugger. I suspected EPPBUG made some nasty things like patching Communication processor microcode... Anyway, the attached patch: 1) Enables to have printk nearly immediately after boot, 2) Make printf work automagically (I do not know why except I make a different initialization for printk that should be overwritten by console init later ?) I let the default to be using EPPCBUG embedded firmware to boot and using this printk early enabler code (LOADED_BY_EPPCBUG and EARLY_CONSOLE) are on.
Diffstat (limited to 'c/src/lib')
-rw-r--r--c/src/lib/libcpu/powerpc/ChangeLog16
-rw-r--r--c/src/lib/libcpu/powerpc/mpc8xx/console-generic/console-generic.c1
2 files changed, 17 insertions, 0 deletions
diff --git a/c/src/lib/libcpu/powerpc/ChangeLog b/c/src/lib/libcpu/powerpc/ChangeLog
index 055cda9c3b..8af12760a9 100644
--- a/c/src/lib/libcpu/powerpc/ChangeLog
+++ b/c/src/lib/libcpu/powerpc/ChangeLog
@@ -1,3 +1,19 @@
+2000-06-08 Eric Valette <valette@crf.canon.fr>
+
+ * mpc8xx/console-generic/console-generic.c:
+ The printk/printf did not work when loaded by EPPCBUG. They did
+ work when loaded with the BDM debugger. I suspected EPPBUG
+ made some nasty things like patching Communication processor
+ microcode... Anyway, the attached patch:
+ 1) Enables to have printk nearly immediately after boot,
+ 2) Make printf work automagically (I do not know why except I make a
+ different initialization for printk that should be overwritten by
+ console init later ?)
+
+ I let the default to be using EPPCBUG embedded firmware to boot and
+ using this printk early enabler code (LOADED_BY_EPPCBUG and
+ EARLY_CONSOLE) are on.
+
2001-05-24 Tom Armistead <tom_armistead@phx.mcd.mot.com>
* mpc6xx/timer/timer.c: Added include of bsp.h and removed
diff --git a/c/src/lib/libcpu/powerpc/mpc8xx/console-generic/console-generic.c b/c/src/lib/libcpu/powerpc/mpc8xx/console-generic/console-generic.c
index 7654c43104..783d5dd971 100644
--- a/c/src/lib/libcpu/powerpc/mpc8xx/console-generic/console-generic.c
+++ b/c/src/lib/libcpu/powerpc/mpc8xx/console-generic/console-generic.c
@@ -898,6 +898,7 @@ m8xx_uart_smc_initialize (int minor)
if ( (minor < SMC1_MINOR) || (minor > SMC2_MINOR) )
return;
+ m8xx.sdcr = 0x01; /* as per section 16.10.2.1 MPC821UM/AD */
/* Get the simode clock source bit values for 9600 bps */
brg = m8xx_get_brg_clk(9600);