diff options
| author | Inha Song <[email protected]> | 2014-02-04 14:57:25 +0900 |
|---|---|---|
| committer | Minkyu Kang <[email protected]> | 2014-02-05 16:26:09 +0900 |
| commit | e6252fab2d6989025bfb97e33abca03b5cb10ff1 (patch) | |
| tree | 5a3edce64cba892697d154802ffca47a302470de | |
| parent | 0ab9a03ca4af90c52640df23242188e32d40ec83 (diff) | |
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: Inha Song <[email protected]>
Signed-off-by: Jaehoon Chung <[email protected]>
Acked-by: Lukasz Majewski <[email protected]>
Tested-by: Lukasz Majewski <[email protected]>
Signed-off-by: Minkyu Kang <[email protected]>
| -rw-r--r-- | drivers/serial/serial_s5p.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/serial/serial_s5p.c b/drivers/serial/serial_s5p.c index 89f5d68dd08..98c62b4c147 100644 --- a/drivers/serial/serial_s5p.c +++ b/drivers/serial/serial_s5p.c @@ -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); |
