Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple VME FMC Carrier SVEC
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
14
Issues
14
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
Simple VME FMC Carrier SVEC
Commits
e39fec66
Commit
e39fec66
authored
Jul 08, 2021
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw: configure the FPGA loader first, and then start
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
2ce54116
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
svec-core.c
software/kernel/svec-core.c
+5
-4
No files found.
software/kernel/svec-core.c
View file @
e39fec66
...
@@ -359,11 +359,12 @@ static int svec_fpga_write_start(struct fpga_manager *mgr)
...
@@ -359,11 +359,12 @@ static int svec_fpga_write_start(struct fpga_manager *mgr)
}
}
/* Reset the Xilinx Passive Serial boot interface */
/* Reset the Xilinx Passive Serial boot interface */
iowrite32be
(
XLDR_CSR_SWRST
,
iowrite32be
(
XLDR_CSR_SWRST
,
loader_addr
+
XLDR_REG_CSR
);
loader_addr
+
XLDR_REG_CSR
);
mdelay
(
1
);
/* Start configuration process by providing BigEndian data */
/* Start configuration process by providing BigEndian data */
iowrite32be
(
XLDR_CSR_START
|
XLDR_CSR_MSBF
,
iowrite32be
(
XLDR_CSR_MSBF
,
loader_addr
+
XLDR_REG_CSR
);
loader_addr
+
XLDR_REG_CSR
);
iowrite32be
(
XLDR_CSR_START
,
loader_addr
+
XLDR_REG_CSR
);
dev_dbg
(
&
mgr
->
dev
,
"csr: 0x%08x
\n
"
,
ioread32be
(
loader_addr
+
XLDR_REG_FIFO_CSR
));
err_reset:
err_reset:
return
err
;
return
err
;
...
...
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