[PATCH 05/10] serial: i.MX: Write settings to a correct register
Andrey Smirnov
andrew.smirnov at gmail.com
Wed May 13 19:54:22 PDT 2015
Fix what looks like a copy and past error, where settings for USR1
register were being written to USR2.
Signed-off-by: Andrey Smirnov <andrew.smirnov at gmail.com>
---
drivers/serial/serial_imx.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/serial/serial_imx.c b/drivers/serial/serial_imx.c
index 12155ad..b7ea14a 100644
--- a/drivers/serial/serial_imx.c
+++ b/drivers/serial/serial_imx.c
@@ -113,10 +113,10 @@ static int imx_serial_init_port(struct console_device *cdev)
writel(val, regs + USR2);
/* Clear status flags */
- val = readl(regs + USR2);
+ val = readl(regs + USR1);
val |= USR1_PARITYERR | USR1_RTSD | USR1_ESCF | USR1_FRAMERR | USR1_AIRINT |
USR1_AWAKE;
- writel(val, regs + USR2);
+ writel(val, regs + USR1);
return 0;
}
--
2.1.4
More information about the barebox
mailing list