Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Rene Habraken
GRAND_V1
Commits
cb99d314
Commit
cb99d314
authored
Jul 16, 2020
by
Rene Habraken
Browse files
debug output lane rate
parent
25179662
Changes
1
Hide whitespace changes
Inline
Side-by-side
meta-adi/grand_zcu7/project-spec/meta-user/recipes-kernel/linux/linux-xlnx/ad9680_debug.c
View file @
cb99d314
...
...
@@ -1115,7 +1115,12 @@ static int ad9694_setup_jesd204_link(struct axiadc_converter *conv,
sysref_rate
=
DIV_ROUND_CLOSEST
(
sample_rate
,
128
);
else
sysref_rate
=
DIV_ROUND_CLOSEST
(
sample_rate
,
32
);
lane_rate_kHz
=
DIV_ROUND_CLOSEST
(
sample_rate
,
100
);
lane_rate_kHz
=
DIV_ROUND_CLOSEST
(
sample_rate
,
100
);
dev_err
(
&
conv
->
spi
->
dev
,
"RH: Lane rate %lu Mbps is"
,
lane_rate_kHz
/
1000
);
dev_err
(
&
conv
->
spi
->
dev
,
"RH: sysref rate %lu Mbps is"
,
sysref_rate
);
if
(
lane_rate_kHz
<
1687500
||
lane_rate_kHz
>
15000000
)
{
dev_err
(
&
conv
->
spi
->
dev
,
"Lane rate %lu Mbps out of bounds. Must be between 1687.5 and 15000 Mbps"
,
...
...
@@ -1192,7 +1197,7 @@ static int ad9694_setup(struct spi_device *spi)
link_config
.
num_converters
=
4
;
link_config
.
octets_per_frame
=
2
;
link_config
.
frames_per_multiframe
=
32
;
link_config
.
converter_resolution
=
1
6
;
link_config
.
converter_resolution
=
1
4
;
link_config
.
bits_per_sample
=
16
;
link_config
.
scrambling
=
true
;
...
...
Write
Preview
Supports
Markdown
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