ath10k: select board data based on BMI chip id and board id
authorManikanta Pubbisetty <c_mpubbi@qti.qualcomm.com>
Fri, 9 Oct 2015 08:55:59 +0000 (11:55 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Wed, 14 Oct 2015 05:58:35 +0000 (08:58 +0300)
commitdb0984e51a187f5bbe41231af7e671cc12586346
tree3320db5ed6d0c2995844194eac1711b3dc40d934
parent0a51b343abfe2c0dbcbd9ec3c4b18bb8779fefa8
ath10k: select board data based on BMI chip id and board id

QCA99X0 uses radio specific board names based on chip id and
board id combinations. We get these IDs from the target using BMI after otp.bin
has been started.

This patch reorders the call to the function ath10k_core_fetch_board_file
so that we have OTP binary before requesting for boardid-chipid. We get this
OTP data after parsing firmware-N.bin.

[kvalo@qca.qualcomm.com: try BMI_PARAM_GET_EEPROM_BOARD_ID with
 all boards and detect if command is not supported]
Signed-off-by: Manikanta Pubbisetty <c_mpubbi@qti.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/bmi.h
drivers/net/wireless/ath/ath10k/core.c
drivers/net/wireless/ath/ath10k/core.h
drivers/net/wireless/ath/ath10k/debug.c