qca-wifi spf3.0 driver init flow
2018-08-27 22:52:21 0 举报
qca-wifi spf3.0 driver init flow
作者其他创作
大纲/内容
malloc & init sc struct
ath_pci_probeol_ath_pci_probe
init_ath_ahb
ol_transfer_bin_file - ATH_OTP_FILEAR9888/hw.2/otp.bin
ol_transfer_bin_file - ATH_OTP_FILEQCA9984/hw.1/otp.binQCA9888/hw.2/otp.bin
ol_ath_attach
qca9882
AH_CAL_IN_FLASH_PCI=0AH_CAL_IN_FILE_HOST=1scn-cal_in_file = 1ATH_HIF_TYPE=pci -- HIF_PCI is definedATH_SUPPORT_CODESWAP=1CONFIG_AR900B_SUPPORT=1
ol_transfer_bin_file - ATH_BOARD_DATA_FILEQCA9984/hw.1/...QCA9888/hw.2/...
Startqca_da.ko
failed
BMIInit
ol_ath_configure_target
chip device id target_type target_versionqca9887 0x0050 TARGET_TYPE_AR9888 AR9887_REV1_VERSION(0x4100016d)qca9882 0x003c TARGET_TYPE_AR9888(0x7) AR9888_REV2_VERSION(0x4100016c)qca9886 0x0056 TARGET_TYPE_QCA9888 qca9994 0x0046 TARGET_TYPE_QCA9984 SOC_SW_VERSION(0x1000000)
qca9994qca9886
ol_transfer_bin_file - ATH_FLASH_FILEwifix.caldata
wifix.caldatatarget/linux/ar71xx/base-files/lib/preinit/81_load_wifi_board_bin/dev/mtdblock5dd if=${mtdblock} of=${cal_data_path}/wifix.caldata bs=32 count=377 skip=128+512*x
1) Firstly the cal.Data in flash is downloaded to target RAM @ 0xC0000 2) Followed by first time otp.bin downloaded and execution parameter as \"0x8000\
ol_transfer_target_eeprom_caldataol_transfer_bin_file - ATH_BOARD_DATA_FILE
alloc net_device & init scn/ic(ol_ath_softc_net80211)
Startumac.ko
ol_transfer_bin_file - ATH_FLASH_FILE/tmp/wifix.caldata
ath_ahb_probe
ol_asf_adf_attachar_attach
先从os\\linux\\src目录开始加载,在完成offload加载后再加载qca_da中的内容
统一先加载umac.ko,offload driver是umac的一部分,将先probe offload device。但在qcawifi.sh中,对同时存在direct attach的设备(ap135/ap147/ap151/ap152),会设置wifi_start_idx=1,保证让AHB总线上的射频始终是wifi0
pci_register_driver(&ath_pci_driver)
ol_ath_download_firmware
ol_download_cal_data
ol_transfer_bin_file - ATH_FIRMWARE_FILEAR9887/athwlan.bin
ol_transfer_bin_file - ATH_FIRMWARE_FILEAR9888/hw.2/athwlan.bin
ol_transfer_bin_file - ATH_FIRMWARE_FILEQCA9984/hw.1/athwlan.binQCA9888/hw.2/athwlan.bin
qca9887
Init hif_type/target_type
Do nothing
init_ath_pci
__ol_ath_attach
ol_transfer_bin_file - ATH_BOARD_DATA_FILEAR9888/hw.2/fakeBoardData_AR6004.bin
ol_target_init
0 条评论
回复 删除
下一页