/* Minimal serial functions needed to use one of the SMC ports as serial console interface.  */
void smc1_setbrg(void)
/* Minimal serial functions needed to use one of the SMC ports as serial console interface.  */
void smc1_setbrg(void)
{
	volatile immap_t *im = (immap_t *)CONFIG_SYS_IMMR;
	volatile cpm8xx_t *cp = &(im->im_cpm);
	cp->cp_simode = 0x00001000;
	cp->cp_brgc2 =
		(((gd->cpu_clk / 16 / RBC823_KBD_BAUDRATE)-1) << 1) | CPM_BRG_EN;
}