Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
reform-boundary-uboot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Reform
reform-boundary-uboot
Commits
0d746650
Commit
0d746650
authored
11 years ago
by
Tom Rini
Browse files
Options
Downloads
Plain Diff
Merge branch 'serial' of
git://www.denx.de/git/u-boot-microblaze
parents
f763be22
8c3bd6b5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
drivers/serial/serial_xuartlite.c
+13
-1
13 additions, 1 deletion
drivers/serial/serial_xuartlite.c
with
13 additions
and
1 deletion
drivers/serial/serial_xuartlite.c
+
13
−
1
View file @
0d746650
...
...
@@ -18,10 +18,14 @@
#define SR_RX_FIFO_VALID_DATA 0x01
/* data in receive FIFO */
#define SR_RX_FIFO_FULL 0x02
/* receive FIFO full */
#define ULITE_CONTROL_RST_TX 0x01
#define ULITE_CONTROL_RST_RX 0x02
struct
uartlite
{
unsigned
int
rx_fifo
;
unsigned
int
tx_fifo
;
unsigned
int
status
;
unsigned
int
control
;
};
static
struct
uartlite
*
userial_ports
[
4
]
=
{
...
...
@@ -75,8 +79,16 @@ static int uartlite_serial_tstc(const int port)
static
int
uartlite_serial_init
(
const
int
port
)
{
if
(
userial_ports
[
port
])
struct
uartlite
*
regs
=
userial_ports
[
port
];
if
(
regs
)
{
out_be32
(
&
regs
->
control
,
0
);
out_be32
(
&
regs
->
control
,
ULITE_CONTROL_RST_RX
|
ULITE_CONTROL_RST_TX
);
in_be32
(
&
regs
->
control
);
return
0
;
}
return
-
1
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment