Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC TDC 1ns 5cha - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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 TDC 1ns 5cha - Software
Commits
9c2c4765
Commit
9c2c4765
authored
Feb 20, 2019
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drv: add WR offset to default calibration values
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
95f9d64e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
calibration.c
kernel/calibration.c
+5
-2
No files found.
kernel/calibration.c
View file @
9c2c4765
...
...
@@ -21,7 +21,8 @@
#include "libsdbfs.h"
#include "fmc-tdc.h"
static
u32
wr_calibration_offset
=
229460
;
#define WR_CALIB_OFFSET 229460
static
u32
wr_calibration_offset
=
WR_CALIB_OFFSET
;
module_param_named
(
wr_offset_fix
,
wr_calibration_offset
,
int
,
0444
);
MODULE_PARM_DESC
(
wr_offset_fix
,
"Overwrite the White-Rabbit calibration offset for calibration value computer before 2018. (Default: 229460 [ps])"
);
...
...
@@ -35,7 +36,9 @@ MODULE_PARM_DESC(wr_offset_carrier,
/* dummy calibration data - used in case of empty/corrupted EEPROM */
static
struct
ft_calibration
default_calibration
=
{
{
0
,
86
,
609
,
572
,
335
},
/* zero_offset */
43343
/* vcxo_default_tune */
43343
,
/* vcxo_default_tune */
0
,
WR_CALIB_OFFSET
,
/* white-rabbit offset */
};
#define WR_OFFSET_FIX_YEAR (2018)
...
...
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