From 622a42926e20d8ea4a21d3d90037b276f1f8f836 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 8 Jun 2001 13:32:08 +0000 Subject: 2000-06-08 Eric Valette * 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. --- c/src/lib/libcpu/powerpc/mpc8xx/console-generic/console-generic.c | 1 + 1 file changed, 1 insertion(+) (limited to 'c/src/lib/libcpu/powerpc/mpc8xx/console-generic') 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); -- cgit v1.2.3