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
e9da030d
Commit
e9da030d
authored
Apr 23, 2012
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core: check the gateware is correct
parent
a44b5862
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
fd-core.c
fd-core.c
+7
-0
fine-delay.h
fine-delay.h
+1
-0
No files found.
fd-core.c
View file @
e9da030d
...
...
@@ -142,6 +142,13 @@ int fd_probe(struct spec_dev *dev)
fd
->
calib
=
fd_default_calib
;
/* Check the binary is there */
if
(
readl
(
fd
->
regs
+
FD_REG_IDR
)
!=
FD_MAGIC_FPGA
)
{
pr_err
(
"%s: card at %04x:%04x has wrong gateware
\n
"
,
__func__
,
dev
->
pdev
->
bus
->
number
,
dev
->
pdev
->
devfn
);
return
-
ENODEV
;
}
/* First, hardware reset */
fd_do_reset
(
fd
,
1
);
...
...
fine-delay.h
View file @
e9da030d
...
...
@@ -25,6 +25,7 @@ struct spec_fd {
};
#define FD_REGS_OFFSET 0x84000
#define FD_MAGIC_FPGA 0xf19ede1a
/* FD_REG_IDR content */
/* Values for the configuration of the acam PLL. Can be changed */
#define ACAM_DESIRED_BIN 80.9553
...
...
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