diff options
author | Rakesh Pillai <pillair@codeaurora.org> | 2018-10-11 06:11:45 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2018-10-13 13:31:15 -0400 |
commit | 22e8a46027387b4e8db75f73ede9bbf337115e9c (patch) | |
tree | f7dcf46fc0db3634b9d126a7c2199884a44668c8 /drivers/net/wireless/ath | |
parent | bc17d4b90cdd3e557d195937c0003260dfce67d6 (diff) |
ath10k: add support to create boardname for non-bmi target
Add support to create the boardname for non-bmi targets
like WCN3990, which uses qmi for bdf download. This
boardname is used to parse the board data from board-2.bin.
Signed-off-by: Rakesh Pillai <pillair@codeaurora.org>
Signed-off-by: Govind Singh <govinds@codeaurora.org>
Acked-by: Niklas Cassel <niklas.cassel@linaro.org>
Reviewed-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/ath')
-rw-r--r-- | drivers/net/wireless/ath/ath10k/core.c | 8 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath10k/core.h | 2 |
2 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath10k/core.c b/drivers/net/wireless/ath/ath10k/core.c index 203f30992c26..393314538772 100644 --- a/drivers/net/wireless/ath/ath10k/core.c +++ b/drivers/net/wireless/ath/ath10k/core.c | |||
@@ -1331,6 +1331,14 @@ static int ath10k_core_create_board_name(struct ath10k *ar, char *name, | |||
1331 | goto out; | 1331 | goto out; |
1332 | } | 1332 | } |
1333 | 1333 | ||
1334 | if (ar->id.qmi_ids_valid) { | ||
1335 | scnprintf(name, name_len, | ||
1336 | "bus=%s,qmi-board-id=%x", | ||
1337 | ath10k_bus_str(ar->hif.bus), | ||
1338 | ar->id.qmi_board_id); | ||
1339 | goto out; | ||
1340 | } | ||
1341 | |||
1334 | scnprintf(name, name_len, | 1342 | scnprintf(name, name_len, |
1335 | "bus=%s,vendor=%04x,device=%04x,subsystem-vendor=%04x,subsystem-device=%04x%s", | 1343 | "bus=%s,vendor=%04x,device=%04x,subsystem-vendor=%04x,subsystem-device=%04x%s", |
1336 | ath10k_bus_str(ar->hif.bus), | 1344 | ath10k_bus_str(ar->hif.bus), |
diff --git a/drivers/net/wireless/ath/ath10k/core.h b/drivers/net/wireless/ath/ath10k/core.h index c0d205daa55f..ecedd49c8a98 100644 --- a/drivers/net/wireless/ath/ath10k/core.h +++ b/drivers/net/wireless/ath/ath10k/core.h | |||
@@ -989,6 +989,8 @@ struct ath10k { | |||
989 | u32 subsystem_device; | 989 | u32 subsystem_device; |
990 | 990 | ||
991 | bool bmi_ids_valid; | 991 | bool bmi_ids_valid; |
992 | bool qmi_ids_valid; | ||
993 | u32 qmi_board_id; | ||
992 | u8 bmi_board_id; | 994 | u8 bmi_board_id; |
993 | u8 bmi_eboard_id; | 995 | u8 bmi_eboard_id; |
994 | u8 bmi_chip_id; | 996 | u8 bmi_chip_id; |