Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC DEL 1ns 4cha - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
FMC DEL 1ns 4cha - Software
Commits
e1250b0b
Commit
e1250b0b
authored
May 18, 2012
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added FD_CMD_PURGE_FIFO command
parent
d50bb61d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletion
+8
-1
fd-zio.c
fd-zio.c
+5
-0
fine-delay.h
fine-delay.h
+1
-1
Makefile
lib/Makefile
+2
-0
No files found.
fd-zio.c
View file @
e1250b0b
...
...
@@ -334,6 +334,11 @@ static int fd_zio_conf_set(struct device *dev, struct zio_attribute *zattr,
return
fd_wr_query
(
fd
);
case
FD_CMD_DUMP_MCP
:
return
fd_dump_mcp
(
fd
);
case
FD_CMD_PURGE_FIFO
:
fd_writel
(
fd
,
FD_TSBCR_PURGE
|
FD_TSBCR_RST_SEQ
|
FD_TSBCR_CHAN_MASK_W
(
1
)
|
FD_TSBCR_ENABLE
,
FD_REG_TSBCR
);
return
0
;
default:
return
-
EINVAL
;
}
...
...
fine-delay.h
View file @
e1250b0b
...
...
@@ -35,7 +35,7 @@ enum fd_command {
FD_CMD_WR_DISABLE
,
FD_CMD_WR_QUERY
,
FD_CMD_DUMP_MCP
,
/* FIXME: we may have cmds for FD_TSBCR_PURGE and FD_TSBCR_RST_SEQ */
FD_CMD_PURGE_FIFO
=
5
,
};
...
...
lib/Makefile
View file @
e1250b0b
...
...
@@ -15,6 +15,8 @@ DEMOSRC += fdelay-term.c
DEMOSRC
+=
fdelay-read.c
DEMOSRC
+=
fdelay-fread.c
DEMOSRC
+=
fdelay-pulse.c
DEMOSRC
+=
fdelay-gs.c
DEMOS
:=
$
(
DEMOSRC:.c
=)
...
...
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