/* 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(void)
/* 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(void)
{
	s3c64xx_uart *const uart = s3c64xx_get_base_uart(UART_NR);
	uart->UFCON = 0xff;
	uart->UMCON = 0;
	uart->ULCON = 3;
	uart->UCON = 5;
	serial_setbrg();
	return 0;
}