Skip to content
Snippets Groups Projects
Commit e6252fab authored by Inha Song's avatar Inha Song Committed by Minkyu Kang
Browse files

serial: s5p: set automatically clears after resetting Rx FIFO


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: default avatarInha Song <ideal.song@samsung.com>
Signed-off-by: default avatarJaehoon Chung <jh80.chung@samsung.com>
Acked-by: default avatarLukasz Majewski <l.majewski@samsung.com>
Tested-by: default avatarLukasz Majewski <l.majewski@samsung.com>
Signed-off-by: default avatarMinkyu Kang <mk7.kang@samsung.com>
parent 0ab9a03c
No related branches found
No related tags found
No related merge requests found
...@@ -100,8 +100,8 @@ static int serial_init_dev(const int dev_index) ...@@ -100,8 +100,8 @@ static int serial_init_dev(const int dev_index)
{ {
struct s5p_uart *const uart = s5p_get_base_uart(dev_index); struct s5p_uart *const uart = s5p_get_base_uart(dev_index);
/* enable FIFOs */ /* enable FIFOs, auto clear Rx FIFO */
writel(0x1, &uart->ufcon); writel(0x3, &uart->ufcon);
writel(0, &uart->umcon); writel(0, &uart->umcon);
/* 8N1 */ /* 8N1 */
writel(0x3, &uart->ulcon); writel(0x3, &uart->ulcon);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment