mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 08:43:31 +00:00
ath6kl: add firmware IE for board data address
Board data address can change between firmwares so we need to read that from the firmware image. Also fix debug log for the patch address to print the address in hex. Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
This commit is contained in:
parent
0d4d72bf8e
commit
03ef0250ae
2 changed files with 13 additions and 1 deletions
|
@ -70,6 +70,7 @@ enum ath6kl_fw_ie_type {
|
|||
ATH6KL_FW_IE_RESERVED_RAM_SIZE = 5,
|
||||
ATH6KL_FW_IE_CAPABILITIES = 6,
|
||||
ATH6KL_FW_IE_PATCH_ADDR = 7,
|
||||
ATH6KL_FW_IE_BOARD_ADDR = 8,
|
||||
};
|
||||
|
||||
enum ath6kl_fw_capability {
|
||||
|
|
|
@ -976,9 +976,20 @@ static int ath6kl_fetch_fw_api2(struct ath6kl *ar)
|
|||
ar->hw.dataset_patch_addr = le32_to_cpup(val);
|
||||
|
||||
ath6kl_dbg(ATH6KL_DBG_BOOT,
|
||||
"found patch address ie 0x%d\n",
|
||||
"found patch address ie 0x%x\n",
|
||||
ar->hw.dataset_patch_addr);
|
||||
break;
|
||||
case ATH6KL_FW_IE_BOARD_ADDR:
|
||||
if (ie_len != sizeof(*val))
|
||||
break;
|
||||
|
||||
val = (__le32 *) data;
|
||||
ar->hw.board_addr = le32_to_cpup(val);
|
||||
|
||||
ath6kl_dbg(ATH6KL_DBG_BOOT,
|
||||
"found board address ie 0x%x\n",
|
||||
ar->hw.board_addr);
|
||||
break;
|
||||
default:
|
||||
ath6kl_dbg(ATH6KL_DBG_BOOT, "Unknown fw ie: %u\n",
|
||||
le32_to_cpup(&hdr->id));
|
||||
|
|
Loading…
Add table
Reference in a new issue