Home
last modified time | relevance | path

Searched refs:calibration (Results 1 – 25 of 212) sorted by relevance

123456789

/openbmc/u-boot/board/liebherr/display5/
H A Dspl.c123 struct mx6_mmdc_calibration calibration = {0}; in spl_dram_print_cal() local
125 mmdc_read_calibration(sysinfo, &calibration); in spl_dram_print_cal()
127 debug(".p0_mpdgctrl0\t= 0x%08X\n", calibration.p0_mpdgctrl0); in spl_dram_print_cal()
128 debug(".p0_mpdgctrl1\t= 0x%08X\n", calibration.p0_mpdgctrl1); in spl_dram_print_cal()
129 debug(".p0_mprddlctl\t= 0x%08X\n", calibration.p0_mprddlctl); in spl_dram_print_cal()
130 debug(".p0_mpwrdlctl\t= 0x%08X\n", calibration.p0_mpwrdlctl); in spl_dram_print_cal()
131 debug(".p0_mpwldectrl0\t= 0x%08X\n", calibration.p0_mpwldectrl0); in spl_dram_print_cal()
132 debug(".p0_mpwldectrl1\t= 0x%08X\n", calibration.p0_mpwldectrl1); in spl_dram_print_cal()
133 debug(".p1_mpdgctrl0\t= 0x%08X\n", calibration.p1_mpdgctrl0); in spl_dram_print_cal()
134 debug(".p1_mpdgctrl1\t= 0x%08X\n", calibration.p1_mpdgctrl1); in spl_dram_print_cal()
[all …]
/openbmc/u-boot/board/k+p/kp_imx6q_tpc/
H A Dkp_imx6q_tpc_spl.c186 struct mx6_mmdc_calibration calibration = {0}; in spl_dram_print_cal() local
188 mmdc_read_calibration(sysinfo, &calibration); in spl_dram_print_cal()
190 debug(".p0_mpdgctrl0\t= 0x%08X\n", calibration.p0_mpdgctrl0); in spl_dram_print_cal()
191 debug(".p0_mpdgctrl1\t= 0x%08X\n", calibration.p0_mpdgctrl1); in spl_dram_print_cal()
192 debug(".p0_mprddlctl\t= 0x%08X\n", calibration.p0_mprddlctl); in spl_dram_print_cal()
193 debug(".p0_mpwrdlctl\t= 0x%08X\n", calibration.p0_mpwrdlctl); in spl_dram_print_cal()
194 debug(".p0_mpwldectrl0\t= 0x%08X\n", calibration.p0_mpwldectrl0); in spl_dram_print_cal()
195 debug(".p0_mpwldectrl1\t= 0x%08X\n", calibration.p0_mpwldectrl1); in spl_dram_print_cal()
196 debug(".p1_mpdgctrl0\t= 0x%08X\n", calibration.p1_mpdgctrl0); in spl_dram_print_cal()
197 debug(".p1_mpdgctrl1\t= 0x%08X\n", calibration.p1_mpdgctrl1); in spl_dram_print_cal()
[all …]
/openbmc/linux/drivers/power/supply/
H A Dtwl4030_madc_battery.c78 struct twl4030_madc_bat_calibration *calibration; in twl4030_madc_bat_voltscale() local
83 calibration = bat->pdata->charging; in twl4030_madc_bat_voltscale()
85 calibration = bat->pdata->discharging; in twl4030_madc_bat_voltscale()
87 if (volt > calibration[0].voltage) { in twl4030_madc_bat_voltscale()
88 res = calibration[0].level; in twl4030_madc_bat_voltscale()
90 for (i = 0; calibration[i+1].voltage >= 0; i++) { in twl4030_madc_bat_voltscale()
91 if (volt <= calibration[i].voltage && in twl4030_madc_bat_voltscale()
92 volt >= calibration[i+1].voltage) { in twl4030_madc_bat_voltscale()
94 res = calibration[i].level - in twl4030_madc_bat_voltscale()
95 ((calibration[i].voltage - volt) * in twl4030_madc_bat_voltscale()
[all …]
/openbmc/linux/drivers/rtc/
H A Drtc-ab8500.c206 static int ab8500_rtc_set_calibration(struct device *dev, int calibration) in ab8500_rtc_set_calibration() argument
218 if ((calibration < -127) || (calibration > 127)) { in ab8500_rtc_set_calibration()
228 if (calibration >= 0) in ab8500_rtc_set_calibration()
229 rtccal = 0x7F & calibration; in ab8500_rtc_set_calibration()
231 rtccal = ~(calibration - 1) | 0x80; in ab8500_rtc_set_calibration()
239 static int ab8500_rtc_get_calibration(struct device *dev, int *calibration) in ab8500_rtc_get_calibration() argument
253 *calibration = 0 - (rtccal & 0x7F); in ab8500_rtc_get_calibration()
255 *calibration = 0x7F & rtccal; in ab8500_rtc_get_calibration()
266 int calibration = 0; in ab8500_sysfs_store_rtc_calibration() local
268 if (sscanf(buf, " %i ", &calibration) != 1) { in ab8500_sysfs_store_rtc_calibration()
[all …]
H A Drtc-tps65910.c202 static int tps65910_rtc_set_calibration(struct device *dev, int calibration) in tps65910_rtc_set_calibration() argument
219 if ((calibration < -32768) || (calibration > 32766)) { in tps65910_rtc_set_calibration()
221 calibration); in tps65910_rtc_set_calibration()
225 value = (s16)calibration; in tps65910_rtc_set_calibration()
247 static int tps65910_rtc_get_calibration(struct device *dev, int *calibration) in tps65910_rtc_get_calibration() argument
261 *calibration = 0; in tps65910_rtc_get_calibration()
274 *calibration = (s16)value; in tps65910_rtc_get_calibration()
281 int calibration; in tps65910_read_offset() local
285 ret = tps65910_rtc_get_calibration(dev, &calibration); in tps65910_read_offset()
290 tmp = calibration * (s64)PPB_MULT; in tps65910_read_offset()
[all …]
/openbmc/linux/Documentation/ABI/testing/
H A Dsysfs-bus-iio-bno05549 Reports the binary calibration data blob for the IMU sensors.
56 Can be 0 (calibration non even enabled) or 1 to 5 where the greater
57 the number, the better the calibration status.
64 Can be 0 (calibration non even enabled) or 1 to 5 where the greater
65 the number, the better the calibration status.
72 Can be 0 (calibration non even enabled) or 1 to 5 where the greater
73 the number, the better the calibration status.
80 Can be 0 (calibration non even enabled) or 1 to 5 where the greater
81 the number, the better the calibration status.
H A Dsysfs-bus-iio-adc-ad719226 Initiates the system calibration procedure. This is done on a
27 single channel at a time. Write '1' to start the calibration.
40 Reading returns a list with the possible calibration modes.
49 Sets up the calibration mode used in the system calibration
50 procedure. Reading returns the current calibration mode.
51 Writing sets the system calibration mode.
H A Dsysfs-bus-iio-chemical-vz89x6 Get the raw calibration VOC value from the sensor.
7 This value has little application outside of calibration.
/openbmc/linux/Documentation/iio/
H A Dbno055.rst28 the IMU has successfully autocalibrated) and to the calibration data blob.
32 with this calibration data. This saves the user from performing the
33 calibration procedure every time (which consist of moving the IMU in
36 The driver looks for calibration data file using two different names: first
39 IMU instance. If this file is not found, then a "generic" calibration file
43 Valid calibration file names would be e.g.
48 offsets from calibration data (if any), so that the user can apply them to
/openbmc/u-boot/board/advantech/dms-ba16/
H A Dsamsung-2g.cfg9 /* Read DQS Gating calibration */
14 /* Read calibration */
17 /* Write calibration */
30 /* Complete calibration by forced measurment */
H A Dmicron-1g.cfg9 /* Read DQS Gating calibration */
14 /* Read calibration */
17 /* Write calibration */
30 /* Complete calibration by forced measurment */
/openbmc/u-boot/board/aristainetos/
H A Dmt41j128M.cfg13 * DQS gating, read delay, write delay calibration values
14 * based on calibration compare of 0x00ffff00
33 /* Complete calibration by forced measurment */
60 /* ZQ calibration */
/openbmc/u-boot/board/ccv/xpress/
H A Dimximage.cfg97 periodic HW ZQ calibration. */
100 * For target board, may need to run write leveling calibration to fine tune
105 /* Read DQS Gating calibration */
108 /* Read calibration */
111 /* Write calibration */
128 /* Complete calibration by forced measurement: */
164 DATA 4 0x021b001c 0x04008040 /* MMDC0_MDSCR, ZQ calibration command sent to
/openbmc/openbmc/meta-facebook/meta-bletchley/recipes-bletchley/motor-ctrl/
H A Dmotor-ctrl_0.1.bb33 MOTOR_INIT_INSTFMT="../motor-init-calibration@.service:${TGT}.wants/motor-init-calibration@{0}.serv…
34 SYSTEMD_SERVICE:${PN} += "motor-init-calibration@.service"
/openbmc/openbmc/poky/meta/recipes-graphics/xinput-calibrator/xinput-calibrator/
H A DAllow-xinput_calibrator_pointercal.sh-to-be-run-as-n.patch32 - echo "Empty calibration file found, removing it"
35 - echo "Using calibration data stored in $CALFILE"
50 + echo "Empty calibration file found, removing it"
53 + echo "Using calibration data stored in $CALFILE"
/openbmc/linux/drivers/thermal/
H A Dqoriq_thermal.c189 const u32 *calibration; in qoriq_tmu_calibration() local
209 calibration = of_get_property(np, "fsl,tmu-calibration", &len); in qoriq_tmu_calibration()
210 if (calibration == NULL || len % 8) { in qoriq_tmu_calibration()
215 for (i = 0; i < len; i += 8, calibration += 2) { in qoriq_tmu_calibration()
216 val = of_read_number(calibration, 1); in qoriq_tmu_calibration()
218 val = of_read_number(calibration + 1, 1); in qoriq_tmu_calibration()
/openbmc/openbmc/meta-facebook/meta-bletchley/recipes-phosphor/state/phosphor-state-manager/
H A Dhost-powerreset@.service3 Requires=motor-init-calibration@%i.service
4 After=motor-init-calibration@%i.service
H A Dhost-powercycle@.service3 Requires=motor-init-calibration@%i.service
4 After=motor-init-calibration@%i.service
H A Dhost-poweroff@.service3 Requires=motor-init-calibration@%i.service
4 After=motor-init-calibration@%i.service
H A Dchassis-poweron@.service3 Requires=motor-init-calibration@%i.service
4 After=motor-init-calibration@%i.service
H A Dhost-poweron@.service3 Requires=motor-init-calibration@%i.service
4 After=motor-init-calibration@%i.service
/openbmc/openbmc/meta-facebook/meta-bletchley/recipes-bletchley/detect-gpio-present/files/
H A Dbletchley-sled-insertion@.target6 Requires=motor-init-calibration@%i.service
7 After=motor-init-calibration@%i.service
/openbmc/u-boot/board/freescale/mx6memcal/
H A Dspl.c397 struct mx6_mmdc_calibration calibration = {0}; in board_init_f() local
402 calibration.p0_mpwrdlctl = 0x40404040; in board_init_f()
403 calibration.p1_mpwrdlctl = 0x40404040; in board_init_f()
440 mx6_dram_cfg(&sysinfo, &calibration, &ddrtype); in board_init_f()
451 mmdc_read_calibration(&sysinfo, &calibration); in board_init_f()
452 display_calibration(&calibration); in board_init_f()
/openbmc/linux/Documentation/hwmon/
H A Dina209.rst27 calibration multiplier to scale the displayed current and power values.
83 The power and current registers in this chip require that the calibration
87 the ina2xx driver for this purpose. If calibration register data is not provided
88 via platform data, the driver checks if the calibration register has been
91 programmed into the calibration register.
/openbmc/u-boot/board/freescale/mx6qarm2/
H A Dimximage_mx6dl.cfg153 /* DDR_PHY_P0_MPZQHWCTRL, enable on time ZQ calibration */
192 * a. DQS gating is not relevant for LPDDR2. DSQ gating calibration section
193 * should be skipped, or the write/read calibration comming after that
195 * b. The calibration code that runs for both MMDC0 & MMDC1 should be used.
312 * calibration values based on calibration compare of 0x00ffff00:
313 * Note, these calibration values are based on Freescale's board
314 * May need to run calibration on target board to fine tune these
317 /* DDR_PHY_P0_MPZQHWCTRL, enable automatic ZQ calibration */

123456789