Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
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
Commits
3ac0cbcc
Commit
3ac0cbcc
authored
Feb 28, 2007
by
Tony Lindgren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
serial: 8250 changes for omap
8250 changes for omap Signed-off-by:
Tony Lindgren
<
tony@atomide.com
>
parent
23854a44
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
drivers/serial/8250.c
drivers/serial/8250.c
+22
-0
No files found.
drivers/serial/8250.c
View file @
3ac0cbcc
...
...
@@ -1501,7 +1501,11 @@ static irqreturn_t serial8250_interrupt(int irq, void *dev_id)
DEBUG_INTR
(
"end.
\n
"
);
#ifdef CONFIG_ARCH_OMAP15XX
return
IRQ_HANDLED
;
/* FIXME: iir status not ready on 1510 */
#else
return
IRQ_RETVAL
(
handled
);
#endif
}
/*
...
...
@@ -2152,6 +2156,19 @@ serial8250_set_termios(struct uart_port *port, struct ktermios *termios,
/* emulated UARTs (Lucent Venus 167x) need two steps */
serial_outp
(
up
,
UART_FCR
,
UART_FCR_ENABLE_FIFO
);
}
/* Note that we need to set ECB to access write water mark
* bits. First allow FCR tx fifo write, then set fcr with
* possible TX fifo settings. */
if
(
uart_config
[
up
->
port
.
type
].
flags
&
UART_CAP_EFR
)
{
serial_outp
(
up
,
UART_LCR
,
0xbf
);
/* Access EFR */
serial_outp
(
up
,
UART_EFR
,
UART_EFR_ECB
);
serial_outp
(
up
,
UART_LCR
,
0x0
);
/* Access FCR */
serial_outp
(
up
,
UART_FCR
,
fcr
);
serial_outp
(
up
,
UART_LCR
,
0xbf
);
/* Access EFR */
serial_outp
(
up
,
UART_EFR
,
0
);
serial_outp
(
up
,
UART_LCR
,
cval
);
/* Access FCR */
}
else
serial_outp
(
up
,
UART_FCR
,
fcr
);
/* set fcr */
}
serial8250_set_mctrl
(
&
up
->
port
,
up
->
port
.
mctrl
);
...
...
@@ -2178,6 +2195,11 @@ static int serial8250_request_std_resource(struct uart_8250_port *up)
unsigned
int
size
=
8
<<
up
->
port
.
regshift
;
int
ret
=
0
;
#ifdef CONFIG_ARCH_OMAP
if
(
is_omap_port
((
unsigned
int
)
up
->
port
.
membase
))
size
=
0x16
<<
up
->
port
.
regshift
;
#endif
switch
(
up
->
port
.
iotype
)
{
case
UPIO_AU
:
size
=
0x100000
;
...
...
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