This is an old revision of the document!
NAME xcomm_cal - print and set EEPROM calibration data SYNOPSIS xcomm_cal [-s] [-f FREQUENCY] INPUT_FILE DESCRIPTION Print and set EEPROM calibration data. Without option - print all calibration sets available. -f Target frequency in MHz -s Initialize device drivers with best match calibration set. This option is used together with the -f option.
Normally, the calibration EEPROM responds to I2C Slave address 0x55, but it depends on the hardware carrier, and the slot that the card is plugged into.
To find the eeprom - use the find
command.
root@linaro-ubuntu-desktop:~# find /sys/ -name eeprom /sys/devices/amba.1/41600000.i2c/i2c-1/1-0050/eeprom /sys/devices/amba.1/41600000.i2c/i2c-1/1-0054/eeprom
It's normally the largest value. (the smaller value is the FRU eeprom).
This specifies any shell prompt running on the target
# xcomm_cal -f 2400 -s /sys/bus/i2c/devices/0-0055/eeprom --- Best match ENTRY 1 --- Calibration Frequency: 2400 MHz DAC I Phase Adjust: 357 DAC Q Phase Adjust: 0 DAC I Offset: 214 DAC Q Offset: 25 DAC I Full Scale Adj: 401 DAC Q Full Scale Adj: 401 ADC I Offset: -2 ADC Q Offset: -34 ADC I Gain Adj: 32853 ADC Q Gain Adj: 32768