Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC TDC 1ns 5cha - 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 TDC 1ns 5cha - Software
Commits
b0a474f9
Commit
b0a474f9
authored
Mar 27, 2015
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel: do a proper reset of the mezzanine
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
23dd6749
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
ft-svec.c
kernel/ft-svec.c
+10
-10
No files found.
kernel/ft-svec.c
View file @
b0a474f9
...
...
@@ -22,20 +22,20 @@
static
int
ft_svec_reset
(
struct
fmctdc_dev
*
ft
)
{
/* FIXME: An UGLY hack: ft_svec_reset() executed on slot 0
(first mezzanine to be initialized) resets BOTH cards. The reason is
that we need both mezzanines PLLs running to read the entire
SDB tree (parts of the system interconnect are clocked from
FMC clock lines. */
if
(
ft
->
fmc
->
slot_id
!=
0
)
return
0
;
uint32_t
val
;
dev_dbg
(
&
ft
->
fmc
->
dev
,
"Un-resetting FMCs...
\n
"
);
fmc_writel
(
ft
->
fmc
,
0xff
,
TDC_SVEC_CARRIER_BASE
+
TDC_REG_CARRIER_RST
);
/* Reset */
fmc_writel
(
ft
->
fmc
,
~
(
1
<<
ft
->
fmc
->
slot_id
),
TDC_SVEC_CARRIER_BASE
+
TDC_REG_CARRIER_RST
);
udelay
(
1000
);
val
=
fmc_readl
(
ft
->
fmc
,
TDC_SVEC_CARRIER_BASE
+
TDC_REG_CARRIER_RST
);
/* Un-Reset */
fmc_writel
(
ft
->
fmc
,
val
|
(
1
<<
ft
->
fmc
->
slot_id
),
TDC_SVEC_CARRIER_BASE
+
TDC_REG_CARRIER_RST
);
msleep
(
3000
);
return
0
;
}
...
...
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