Skip to content

Commit

Permalink
synclink_gt: add serial bit order control
Browse files Browse the repository at this point in the history
Add control of hardware serial bit order between LSB first
(default/standard) and MSB first.

Signed-off-by: Paul Fulghum <paulkf@microgate.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Paul Fulghum authored and Linus Torvalds committed Jul 22, 2008
1 parent 8a38c28 commit e559071
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/char/synclink_gt.c
Original file line number Diff line number Diff line change
Expand Up @@ -4403,6 +4403,8 @@ static void msc_set_vcr(struct slgt_info *info)
break;
}

if (info->if_mode & MGSL_INTERFACE_MSB_FIRST)
val |= BIT4;
if (info->signals & SerialSignal_DTR)
val |= BIT3;
if (info->signals & SerialSignal_RTS)
Expand Down
1 change: 1 addition & 0 deletions include/linux/synclink.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@
#define MGSL_INTERFACE_RTS_EN 0x10
#define MGSL_INTERFACE_LL 0x20
#define MGSL_INTERFACE_RL 0x40
#define MGSL_INTERFACE_MSB_FIRST 0x80

typedef struct _MGSL_PARAMS
{
Expand Down

0 comments on commit e559071

Please sign in to comment.