Commit cb99d314 authored by Rene Habraken's avatar Rene Habraken
Browse files

debug output lane rate

parent 25179662
......@@ -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 = 16;
link_config.converter_resolution = 14;
link_config.bits_per_sample = 16;
link_config.scrambling = true;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment