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.
This commit is contained in:
Joel Sherrill
2001-06-08 13:32:08 +00:00
parent 0eef948fc5
commit 622a42926e
2 changed files with 17 additions and 0 deletions

View File

@@ -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);