Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
5ba7b61b
Commit
5ba7b61b
authored
Jun 24, 2003
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] USB: add support for 50 baud to io_edgeport.c
parent
b0cd3b6f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
drivers/usb/serial/io_edgeport.c
drivers/usb/serial/io_edgeport.c
+2
-1
No files found.
drivers/usb/serial/io_edgeport.c
View file @
5ba7b61b
...
@@ -412,6 +412,7 @@ struct divisor_table_entry {
...
@@ -412,6 +412,7 @@ struct divisor_table_entry {
// MCR.7 = 0.
// MCR.7 = 0.
//
//
static
struct
divisor_table_entry
divisor_table
[]
=
{
static
struct
divisor_table_entry
divisor_table
[]
=
{
{
50
,
4608
},
{
75
,
3072
},
{
75
,
3072
},
{
110
,
2095
},
/* 2094.545455 => 230450 => .0217 % over */
{
110
,
2095
},
/* 2094.545455 => 230450 => .0217 % over */
{
134
,
1713
},
/* 1713.011152 => 230398.5 => .00065% under */
{
134
,
1713
},
/* 1713.011152 => 230398.5 => .00065% under */
...
@@ -2591,7 +2592,7 @@ static int calc_baud_rate_divisor (int baudrate, int *divisor)
...
@@ -2591,7 +2592,7 @@ static int calc_baud_rate_divisor (int baudrate, int *divisor)
// We have tried all of the standard baud rates
// We have tried all of the standard baud rates
// lets try to calculate the divisor for this baud rate
// lets try to calculate the divisor for this baud rate
// Make sure the baud rate is reasonable
// Make sure the baud rate is reasonable
if
(
baudrate
>
75
&&
baudrate
<
230400
)
{
if
(
baudrate
<
230400
)
{
// get divisor
// get divisor
custom
=
(
__u16
)(
230400L
/
baudrate
);
custom
=
(
__u16
)(
230400L
/
baudrate
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment