Commit b6d6652a authored by Alessandro Rubini's avatar Alessandro Rubini

add undocumented 'vcxo_default=' module parameter

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 18f9c3ca
......@@ -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 */
}
......
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