/* Minimal serial functions needed to use one of the SMC ports as serial console interface.  */
static int serial_mpc8xx_setbrg(struct udevice *dev, int baudrate)
/* Minimal serial functions needed to use one of the SMC ports as serial console interface.  */
static int serial_mpc8xx_setbrg(struct udevice *dev, int baudrate)
{
	immap_t __iomem *im = (immap_t __iomem *)CONFIG_SYS_IMMR;
	cpm8xx_t __iomem *cp = &(im->im_cpm);
	out_be32(&cp->cp_simode, 0);
	serial_setdivisor(cp, baudrate);
	return 0;
}