Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC ADC 100M 14b 4cha - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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 ADC 100M 14b 4cha - Software
Commits
230e2ed6
Commit
230e2ed6
authored
Aug 12, 2020
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drv: wrap enable/disable FPGA test data in a function
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
311e86eb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
fa-core.c
kernel/fa-core.c
+7
-2
No files found.
kernel/fa-core.c
View file @
230e2ed6
...
...
@@ -281,6 +281,12 @@ int fa_fsm_wait_state(struct fa_dev *fa,
return
0
;
}
static
void
fa_fpga_data_pattern_set
(
struct
fa_dev
*
fa
,
unsigned
int
enable
)
{
fa_writel
(
fa
,
fa
->
fa_adc_csr_base
,
&
zfad_regs
[
ZFA_CTL_TEST_DATA_EN
],
enable
);
}
/*
* zfad_fsm_command
* @fa: the fmc-adc descriptor
...
...
@@ -412,8 +418,7 @@ static int __fa_init(struct fa_dev *fa)
/* Set decimation to minimum */
fa_writel
(
fa
,
fa
->
fa_adc_csr_base
,
&
zfad_regs
[
ZFAT_SR_UNDER
],
1
);
/* Set test data register */
fa_writel
(
fa
,
fa
->
fa_adc_csr_base
,
&
zfad_regs
[
ZFA_CTL_TEST_DATA_EN
],
fa_enable_test_data_fpga
);
fa_fpga_data_pattern_set
(
fa
,
fa_enable_test_data_fpga
);
/* Set to single shot mode by default */
fa_writel
(
fa
,
fa
->
fa_adc_csr_base
,
&
zfad_regs
[
ZFAT_SHOTS_NB
],
1
);
...
...
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