From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lukasz Majewski Date: Tue, 04 Feb 2014 07:33:14 +0100 Subject: [U-Boot] [PATCH] serial: s5p: set automatically clears after resetting Rx FIFO In-Reply-To: <20140204145726.2cf093d8@songinha-Samsung-DeskTop-System> References: <20140204145726.2cf093d8@songinha-Samsung-DeskTop-System> Message-ID: <20140204073314.40a499b4@amdc2363> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Inha, > 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. Acked-by: Lukasz Majewski Tested-by: Lukasz Majewski > > Signed-off-by: Inha Song > Signed-off-by: Jaehoon Chung > --- > drivers/serial/serial_s5p.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/serial/serial_s5p.c b/drivers/serial/serial_s5p.c > index 89f5d68..98c62b4 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); -- Best regards, Lukasz Majewski Samsung R&D Institute Poland (SRPOL) | Linux Platform Group