ChangeSet 1.2181.1.13, 2005/03/30 14:42:01+01:00, [EMAIL PROTECTED](none)
[ARM PATCH] 2635/1: i.MX serial hardware handshaking support
Patch from Sascha Hauer
This patch adds support for hardwarehandshaking on i.MX soc
Signed-off-by: Sascha Hauer
Signed-off-by: Mike Lee
Signed-off-by: Russell King
imx.c | 7 +++++++
1 files changed, 7 insertions(+)
diff -Nru a/drivers/serial/imx.c b/drivers/serial/imx.c
--- a/drivers/serial/imx.c 2005-03-30 16:23:32 -08:00
+++ b/drivers/serial/imx.c 2005-03-30 16:23:32 -08:00
@@ -22,6 +22,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
+ * [29-Mar-2005] Mike Lee
+ * Added hardware handshake
*/
#include <linux/config.h>
@@ -427,6 +429,11 @@
ucr2 = UCR2_WS | UCR2_SRST | UCR2_IRTS;
else
ucr2 = UCR2_SRST | UCR2_IRTS;
+
+ if (termios->c_cflag & CRTSCTS) {
+ ucr2 &= ~UCR2_IRTS;
+ ucr2 |= UCR2_CTSC;
+ }
if (termios->c_cflag & CSTOPB)
ucr2 |= UCR2_STPB;
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html