Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
32
Issues
32
List
Board
Labels
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Software for White Rabbit PTP Core
Commits
bd806075
Commit
bd806075
authored
May 02, 2024
by
Oskar Szakinnis
Committed by
Frederik Pfautsch
May 02, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dev/simple-uart.c: Implement missing purge functions
parent
176b78b8
Pipeline
#5365
passed with stage
in 4 minutes and 33 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
simple_uart.c
dev/simple_uart.c
+6
-4
No files found.
dev/simple_uart.c
View file @
bd806075
...
...
@@ -93,14 +93,16 @@ int suart_get_tx_fifo_count( struct simple_uart_device *dev )
int
suart_purge_tx_fifo
(
struct
simple_uart_device
*
dev
)
{
// fixme
return
-
1
;
uint32_t
r
=
readl
(
dev
->
base
+
UART_REG_CR
);
writel
((
r
|
UART_CR_TX_FIFO_PURGE
),
dev
->
base
+
UART_REG_CR
);
return
0
;
}
int
suart_purge_rx_fifo
(
struct
simple_uart_device
*
dev
)
{
// fixme
return
-
1
;
uint32_t
r
=
readl
(
dev
->
base
+
UART_REG_CR
);
writel
((
r
|
UART_CR_RX_FIFO_PURGE
),
dev
->
base
+
UART_REG_CR
);
return
0
;
}
int
suart_is_fifo_supported
(
struct
simple_uart_device
*
dev
)
...
...
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