S3C24XX: Fix wrong RTS behaviour

Juergen Beisert jbe at pengutronix.de
Sat Nov 26 13:32:49 EST 2011


Enabling AUTOSYNC means enabling the auto sync feature, not rising the RTS

Signed-off-by: Juergen Beisert <jbe at pengutronix.de>

---
 drivers/serial/serial_s3c24x0.c |    2 ++
 1 file changed, 2 insertions(+)

Index: barebox-git/drivers/serial/serial_s3c24x0.c
===================================================================
--- barebox-git.orig/drivers/serial/serial_s3c24x0.c
+++ barebox-git/drivers/serial/serial_s3c24x0.c
@@ -72,6 +72,8 @@ static int s3c24x0_serial_init_port(stru
 	writew(0x0245, base + UCON);
 
 #ifdef CONFIG_DRIVER_SERIAL_S3C24X0_AUTOSYNC
+	writeb(0x10, base + UMCON); /* enable auto flow control */
+#else
 	writeb(0x01, base + UMCON); /* RTS up */
 #endif
 
-- 
Pengutronix e.K.                              | Juergen Beisert             |
Linux Solutions for Science and Industry      | http://www.pengutronix.de/  |



More information about the barebox mailing list