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
Kirill Smelkov
linux
Commits
0e3bc050
Commit
0e3bc050
authored
Jun 04, 2008
by
Lennert Buytenhek
Committed by
Lennert Buytenhek
Jun 22, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] Orion: use linux/serial_reg.h for Orion uncompress.h
Signed-off-by:
Lennert Buytenhek
<
buytenh@marvell.com
>
parent
7ec753cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
7 deletions
+22
-7
include/asm-arm/arch-orion5x/uncompress.h
include/asm-arm/arch-orion5x/uncompress.h
+22
-7
No files found.
include/asm-arm/arch-orion5x/uncompress.h
View file @
0e3bc050
...
...
@@ -8,23 +8,38 @@
* warranty of any kind, whether express or implied.
*/
#include <linux/serial_reg.h>
#include <asm/arch/orion5x.h>
#define MV_UART_THR ((volatile unsigned char *)(UART0_PHYS_BASE + 0x0))
#define MV_UART_LSR ((volatile unsigned char *)(UART0_PHYS_BASE + 0x14))
#define LSR_THRE 0x20
#define SERIAL_BASE ((unsigned char *)UART0_PHYS_BASE)
static
void
putc
(
const
char
c
)
{
int
j
=
0x1000
;
while
(
--
j
&&
!
(
*
MV_UART_LSR
&
LSR_THRE
))
unsigned
char
*
base
=
SERIAL_BASE
;
int
i
;
for
(
i
=
0
;
i
<
0x1000
;
i
++
)
{
if
(
base
[
UART_LSR
<<
2
]
&
UART_LSR_THRE
)
break
;
barrier
();
*
MV_UART_THR
=
c
;
}
base
[
UART_TX
<<
2
]
=
c
;
}
static
void
flush
(
void
)
{
unsigned
char
*
base
=
SERIAL_BASE
;
unsigned
char
mask
;
int
i
;
mask
=
UART_LSR_TEMT
|
UART_LSR_THRE
;
for
(
i
=
0
;
i
<
0x1000
;
i
++
)
{
if
((
base
[
UART_LSR
<<
2
]
&
mask
)
==
mask
)
break
;
barrier
();
}
}
/*
...
...
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