Skip to contentSkip to conversation

S3C24XX: Fix wrong RTS behaviour

PATCH Juergen Beisert 1 participant 1 message Nov 26, 2011 Arm Samsung Exynos

lore
Share & tools
lore
#0 lore raw

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

---
 drivers/serial/serial_s3c24x0.c |    2 ++
 1 file changed, 2 insertions(+)
drivers/serial/serial_s3c24x0.c +2 -0
Index: 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
 
Signature · 7 lines
Pengutronix e.K.                              | Juergen Beisert             |
Linux Solutions for Science and Industry      | http://www.pengutronix.de/  |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox