Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci-2.6.23
Commits
3d15e4a3
Commit
3d15e4a3
authored
May 21, 2005
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge of master.kernel.org:/home/rmk/linux-2.6-serial.git
parents
10f02d1c
857dde2e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
drivers/serial/8250.c
drivers/serial/8250.c
+12
-5
No files found.
drivers/serial/8250.c
View file @
3d15e4a3
...
@@ -682,8 +682,6 @@ static void autoconfig_16550a(struct uart_8250_port *up)
...
@@ -682,8 +682,6 @@ static void autoconfig_16550a(struct uart_8250_port *up)
* from EXCR1. Switch back to bank 0, change it in MCR. Then
* from EXCR1. Switch back to bank 0, change it in MCR. Then
* switch back to bank 2, read it from EXCR1 again and check
* switch back to bank 2, read it from EXCR1 again and check
* it's changed. If so, set baud_base in EXCR2 to 921600. -- dwmw2
* it's changed. If so, set baud_base in EXCR2 to 921600. -- dwmw2
* On PowerPC we don't want to change baud_base, as we have
* a number of different divisors. -- Tom Rini
*/
*/
serial_outp
(
up
,
UART_LCR
,
0
);
serial_outp
(
up
,
UART_LCR
,
0
);
status1
=
serial_in
(
up
,
UART_MCR
);
status1
=
serial_in
(
up
,
UART_MCR
);
...
@@ -699,16 +697,25 @@ static void autoconfig_16550a(struct uart_8250_port *up)
...
@@ -699,16 +697,25 @@ static void autoconfig_16550a(struct uart_8250_port *up)
serial_outp
(
up
,
UART_MCR
,
status1
);
serial_outp
(
up
,
UART_MCR
,
status1
);
if
((
status2
^
status1
)
&
UART_MCR_LOOP
)
{
if
((
status2
^
status1
)
&
UART_MCR_LOOP
)
{
#ifndef CONFIG_PPC
unsigned
short
quot
;
serial_outp
(
up
,
UART_LCR
,
0xE0
);
serial_outp
(
up
,
UART_LCR
,
0xE0
);
quot
=
serial_inp
(
up
,
UART_DLM
)
<<
8
;
quot
+=
serial_inp
(
up
,
UART_DLL
);
quot
<<=
3
;
status1
=
serial_in
(
up
,
0x04
);
/* EXCR1 */
status1
=
serial_in
(
up
,
0x04
);
/* EXCR1 */
status1
&=
~
0xB0
;
/* Disable LOCK, mask out PRESL[01] */
status1
&=
~
0xB0
;
/* Disable LOCK, mask out PRESL[01] */
status1
|=
0x10
;
/* 1.625 divisor for baud_base --> 921600 */
status1
|=
0x10
;
/* 1.625 divisor for baud_base --> 921600 */
serial_outp
(
up
,
0x04
,
status1
);
serial_outp
(
up
,
0x04
,
status1
);
serial_outp
(
up
,
UART_DLL
,
quot
&
0xff
);
serial_outp
(
up
,
UART_DLM
,
quot
>>
8
);
serial_outp
(
up
,
UART_LCR
,
0
);
serial_outp
(
up
,
UART_LCR
,
0
);
up
->
port
.
uartclk
=
921600
*
16
;
#endif
up
->
port
.
uartclk
=
921600
*
16
;
up
->
port
.
type
=
PORT_NS16550A
;
up
->
port
.
type
=
PORT_NS16550A
;
up
->
capabilities
|=
UART_NATSEMI
;
up
->
capabilities
|=
UART_NATSEMI
;
return
;
return
;
...
...
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