Commit 87317594 authored by Adam Wujek's avatar Adam Wujek

arch-wrpc/wrpc-calibration: change the source of alpha

Requires the following commit from WRPC:
dev/sfp: add commmand to dump SFP info, add sfp related stuff into wrpc-dump
Signed-off-by: 's avatarAdam Wujek <adam.wujek@creotech.pl>
parent 4f2a1543
......@@ -13,8 +13,6 @@
#include "../proto-ext-whiterabbit/wr-constants.h"
#include "board.h"
extern int64_t sfp_alpha;
int wrpc_read_calibration_data(
struct pp_instance *ppi,
int32_t *clock_period,
......@@ -29,7 +27,7 @@ int wrpc_read_calibration_data(
return WRH_HW_CALIB_NOT_FOUND;
if (scaledDelayCoefficient)
*scaledDelayCoefficient= (RelativeDifference) sfp_alpha;
*scaledDelayCoefficient = (RelativeDifference) state.calib.alpha;
if (scaledBitSlide)
*scaledBitSlide = picos_to_interval((int64_t)state.calib.bitslide_ps);
......
Markdown is supported
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