/* Initialise the serial port with the given baudrate. The settings are always 8 data bits, no parity, 1 stop bit, no start bits.  */
int serial_init_dev(const int dev_index)
/* Initialise the serial port with the given baudrate. The settings are always 8 data bits, no parity, 1 stop bit, no start bits.  */
int serial_init_dev(const int dev_index)
{
	struct s5pc1xx_uart *const uart = s5pc1xx_get_base_uart(dev_index);
	writel(0, &uart->ufcon);
	writel(0, &uart->umcon);
	writel(0x3, &uart->ulcon);
	writel(0x245, &uart->ucon);
	serial_setbrg_dev(dev_index);
	return 0;
}