]> git.sur5r.net Git - u-boot/commitdiff
serial: s5p: set automatically clears after resetting Rx FIFO
authorInha Song <ideal.song@samsung.com>
Tue, 4 Feb 2014 05:57:25 +0000 (14:57 +0900)
committerMinkyu Kang <mk7.kang@samsung.com>
Wed, 5 Feb 2014 07:26:09 +0000 (16:26 +0900)
This patch fix the u-boot shell problem on TRATS2 board.
 - If hold the key while booting is in progress,
   white spaces are written in u-boot shell.

Set Automatically clears after resetting Rx FIFO.

Signed-off-by: Inha Song <ideal.song@samsung.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Acked-by: Lukasz Majewski <l.majewski@samsung.com>
Tested-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
drivers/serial/serial_s5p.c

index 89f5d68dd0897ce0886b9eaf00f0f5e92f45c8ac..98c62b4c147ef185d8a9cabb0290be854a38b892 100644 (file)
@@ -100,8 +100,8 @@ static int serial_init_dev(const int dev_index)
 {
        struct s5p_uart *const uart = s5p_get_base_uart(dev_index);
 
-       /* enable FIFOs */
-       writel(0x1, &uart->ufcon);
+       /* enable FIFOs, auto clear Rx FIFO */
+       writel(0x3, &uart->ufcon);
        writel(0, &uart->umcon);
        /* 8N1 */
        writel(0x3, &uart->ulcon);