-------------------------------------------------------------------------------------------------------
[ 4.5 How to Read Efuse File
-------------------------------------------------------------------------------------------------------
Prepare procedures:
•
1. Edit the “Makefile” :
– CONFIG_EFUSE_CONFIG_FILE=y
• Please first to edit the Makfile before compile the Driver ,find
out the ”CONFIG_EFUSE_CONFIG_FILE=n” and
change to
y , then compile the driver source.
•
2. Prepare for efuse MAP directory and file:
• Prepare the Driver default read “A. Directory ” Efuse map file
and “B. Directory” Mac Address file.
•
Reference the FileEfuseExample folder.
–
A. /system/etc/wifi/wifi_efuse.map
• Driver read from this file for initial efuse map.
–
B. /data/wifimac.txt
• Driver read from this file for initial wlan mac address.
• 3. You can use the Efuse CMD for read current contents after
the driver initial to read efuse file.
• #iwpriv wlan0 efuse_get drvmap.
-------------------------------------------------------------------------------------------------------
5. Crystal Calibration: iwpriv wlan0 mp_phypara xcap=26
MP use CMD to fine tuning the Crystal Cap value, and CMD is " iwpriv wlan0
mp_phypara xcap=%d".
We can continue to adjust
for get target value, then use
the Efuse CMD write to HW
efuse, "
iwpriv wlan0 efuse_set wmap,b9,20
"
8188EU example 0xB9 offset:
The "0xB9" is Crystal Calibration Efuse offset address,you
can refer the IC Efuse
spec document.
B9h Crystal Calibration XTAL_K Value
Bit[5:0], Xi=Xo Range 0~3F h.
Bit[7:6]: reserved
FF h = 00 h
Default 20h
#insmod wlan.ko
#ifconfig wlan0 up
#iwpriv wlan0 mp_start
#iwpriv wlan0 mp_setrfpath 0
#iwpriv wlan0 mp_ant_tx a
#iwpriv wlan0 mp_channel 7
#iwpriv wlan0 mp_txpower patha=42
#iwpriv wlan0 mp_phypara xcap=32 //