Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC DEL 1ns 4cha - 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 DEL 1ns 4cha - Software
Commits
b6d6652a
Commit
b6d6652a
authored
Feb 25, 2014
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add undocumented 'vcxo_default=' module parameter
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
18f9c3ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
calibration.c
kernel/calibration.c
+7
-2
No files found.
kernel/calibration.c
View file @
b6d6652a
...
...
@@ -22,11 +22,14 @@ static char *calibration_load;
static
int
calibration_save
;
static
int
calibration_check
;
static
int
calibration_default
;
#define VCXO_DEFAULT 41711
static
int
vcxo_default
=
VCXO_DEFAULT
;
module_param
(
calibration_load
,
charp
,
0444
);
module_param
(
calibration_default
,
int
,
0444
);
module_param
(
calibration_save
,
int
,
0444
);
module_param
(
calibration_check
,
int
,
0444
);
module_param
(
vcxo_default
,
int
,
0444
);
/* Stupid dumping tool */
static
void
dumpstruct
(
char
*
name
,
void
*
ptr
,
int
size
)
...
...
@@ -75,7 +78,7 @@ static struct fd_calibration fd_calib_default = {
.
frr_poly
=
{
-
165202LL
,
-
29825595LL
,
3801939743082LL
},
.
zero_offset
=
{
-
38186
,
-
38155
,
-
38147
,
-
38362
},
.
tdc_zero_offset
=
127500
,
.
vcxo_default_tune
=
41711
,
.
vcxo_default_tune
=
VCXO_DEFAULT
,
};
/* sdbfs-related function */
...
...
@@ -151,7 +154,9 @@ int fd_handle_eeprom_calibration(struct fd_dev *fd)
calib
->
vcxo_default_tune
=
be32_to_cpu
(
calib
->
vcxo_default_tune
);
if
(
calibration_default
)
{
dev_info
(
d
,
"Overriding with default calibration
\n
"
);
dev_info
(
d
,
"Overriding with default calibration (vcxo: %i)
\n
"
,
vcxo_default
);
fd_calib_default
.
vcxo_default_tune
=
VCXO_DEFAULT
;
*
calib
=
fd_calib_default
;
hash
=
horig
;
/* whatever it is */
}
...
...
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