Commit e5590717 authored by Paul Fulghum's avatar Paul Fulghum Committed by Linus Torvalds

synclink_gt: add serial bit order control

Add control of hardware serial bit order between LSB first
(default/standard) and MSB first.
Signed-off-by: default avatarPaul Fulghum <paulkf@microgate.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarAlan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 8a38c285
...@@ -4403,6 +4403,8 @@ static void msc_set_vcr(struct slgt_info *info) ...@@ -4403,6 +4403,8 @@ static void msc_set_vcr(struct slgt_info *info)
break; break;
} }
if (info->if_mode & MGSL_INTERFACE_MSB_FIRST)
val |= BIT4;
if (info->signals & SerialSignal_DTR) if (info->signals & SerialSignal_DTR)
val |= BIT3; val |= BIT3;
if (info->signals & SerialSignal_RTS) if (info->signals & SerialSignal_RTS)
......
...@@ -136,6 +136,7 @@ ...@@ -136,6 +136,7 @@
#define MGSL_INTERFACE_RTS_EN 0x10 #define MGSL_INTERFACE_RTS_EN 0x10
#define MGSL_INTERFACE_LL 0x20 #define MGSL_INTERFACE_LL 0x20
#define MGSL_INTERFACE_RL 0x40 #define MGSL_INTERFACE_RL 0x40
#define MGSL_INTERFACE_MSB_FIRST 0x80
typedef struct _MGSL_PARAMS typedef struct _MGSL_PARAMS
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment