dt: bindings: net: update compatible for ath11k
Subsystems (3)
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH v7 1/3 dt: bindings: net: update compatible for ath11k
Add IPQ6018 wireless driver support,
its based on ath11k driver.
---
V3:
- Use 'enum' rather than oneOf+const.
V4:
- removed oneOf, use just enum (Rob)
V5:
- Fixes errors in 'make dt_binding_check' (Rob)
Documentation/devicetree/bindings/net/wireless/qcom,ath11k.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/net/wireless/qcom,ath11k.yaml +3 -1
@@ -17,7 +17,9 @@ description: | properties: compatible: - const: qcom,ipq8074-wifi + enum: + - qcom,ipq8074-wifi + - qcom,ipq6018-wifi reg: maxItems: 1
Signature · 1 line
2.7.4
Rob Herring
maintainerQuoted 12 lines · Anilkumar Kolli
Add IPQ6018 wireless driver support,
its based on ath11k driver.Signed-off-by Anilkumar Kolli <[email protected]>---
V3:
- Use 'enum' rather than oneOf+const.
V4:
- removed oneOf, use just enum (Rob)
V5:
- Fixes errors in 'makedt_binding_check' (Rob)
Quoted 3 lines
Documentation/devicetree/bindings/net/wireless/qcom,ath11k.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Please add Acked-by/Reviewed-by tags when posting new versions. However, there's no need to repost patches *only* to add the tags. The upstream maintainer will do that for acks received on the version they apply.
If a tag was not added on purpose, please state why and what changed.
Signature · 3 lines
ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k
Quoted 18 lines · Rob Herring
Quoted 12 lines · Anilkumar Kolli
Add IPQ6018 wireless driver support,
its based on ath11k driver.Signed-off-by Anilkumar Kolli <[email protected]>---
V3:
- Use 'enum' rather than oneOf+const.
V4:
- removed oneOf, use just enum (Rob)
V5:
- Fixes errors in 'makedt_binding_check' (Rob)Quoted 3 lines
Documentation/devicetree/bindings/net/wireless/qcom,ath11k.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Quoted 5 lines
Please add Acked-by/Reviewed-by tags when posting new versions. However, there's no need to repost patches *only* to add the tags. The upstream maintainer will do that for acks received on the version they apply.
If a tag was not added on purpose, please state why and what changed.
I added Rob's Reviewed-by in the pending branch.
Signature · 6 lines
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches -- ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k
Quoted 18 lines · Rob Herring
Quoted 12 lines · Anilkumar Kolli
Add IPQ6018 wireless driver support,
its based on ath11k driver.Signed-off-by Anilkumar Kolli <[email protected]>---
V3:
- Use 'enum' rather than oneOf+const.
V4:
- removed oneOf, use just enum (Rob)
V5:
- Fixes errors in 'makedt_binding_check' (Rob)Quoted 3 lines
Documentation/devicetree/bindings/net/wireless/qcom,ath11k.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Quoted 5 lines
Please add Acked-by/Reviewed-by tags when posting new versions. However, there's no need to repost patches *only* to add the tags. The upstream maintainer will do that for acks received on the version they apply.
If a tag was not added on purpose, please state why and what changed.
I added Rob's Reviewed-by in the pending branch.
Signature · 1 line
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Quoted 6 lines · Anilkumar Kolli
Add IPQ6018 wireless driver support,
its based on ath11k driver.Signed-off-by Anilkumar Kolli <[email protected]>Reviewed-by Rob Herring <[email protected]>Signed-off-by Kalle Valo <[email protected]>
3 patches applied to ath-next branch of ath.git, thanks.
7b5bd15d23c5 dt: bindings: net: update compatible for ath11k 967c1d1131fa ath11k: move target ce configs to hw_params b129699a0c7b ath11k: add ipq6018 support
Signature · 9 lines
https://patchwork.kernel.org/patch/11762811/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches -- ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k
Quoted 6 lines · Anilkumar Kolli
Add IPQ6018 wireless driver support,
its based on ath11k driver.Signed-off-by Anilkumar Kolli <[email protected]>Reviewed-by Rob Herring <[email protected]>Signed-off-by Kalle Valo <[email protected]>
3 patches applied to ath-next branch of ath.git, thanks.
7b5bd15d23c5 dt: bindings: net: update compatible for ath11k 967c1d1131fa ath11k: move target ce configs to hw_params b129699a0c7b ath11k: add ipq6018 support
Signature · 3 lines
https://patchwork.kernel.org/patch/11762811/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
PATCH v7 1/3 dt: bindings: net: update compatible for ath11k
In reply to a message not in the archiveAdd IPQ6018 wireless driver support,
its based on ath11k driver.
---
V3:
- Use 'enum' rather than oneOf+const.
V4:
- removed oneOf, use just enum (Rob)
V5:
- Fixes errors in 'make dt_binding_check' (Rob)
Documentation/devicetree/bindings/net/wireless/qcom,ath11k.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/net/wireless/qcom,ath11k.yaml +3 -1
@@ -17,7 +17,9 @@ description: | properties: compatible: - const: qcom,ipq8074-wifi + enum: + - qcom,ipq8074-wifi + - qcom,ipq6018-wifi reg: maxItems: 1
Signature · 7 lines
2.7.4 -- ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k
PATCH v7 2/3 ath11k: move target ce configs to hw_params
In reply to a message not in the archiveMove target CE config and target CE service config to hw_params. No functional changes.
Tested on: IPQ8074 hw2.0 AHB WLAN.HK.2.4.0.1-00009-QCAHKSWPL_SILICONZ-1
---
V3:
- added ce svc configs in hw_params
V7:
- Move ce target configs to hw.c to remove hw_rev checks in code(Julian, Kalle)
drivers/net/wireless/ath/ath11k/ahb.c | 254 +------------------- drivers/net/wireless/ath/ath11k/core.c | 8 + drivers/net/wireless/ath/ath11k/core.h | 6 + drivers/net/wireless/ath/ath11k/hw.c | 410 +++++++++++++++++++++++++++++++++ drivers/net/wireless/ath/ath11k/hw.h | 5 +- drivers/net/wireless/ath/ath11k/pci.c | 193 +--------------- 6 files changed, 442 insertions(+), 434 deletions(-)
drivers/net/wireless/ath/ath11k/ahb.c +8 -246
@@ -32,244 +32,6 @@ static const struct ath11k_bus_params ath11k_ahb_bus_params = { .fixed_mem_region = true, }; -/* Target firmware's Copy Engine configuration. */ -static const struct ce_pipe_config target_ce_config_wlan[] = { -/* CE0: host->target HTC control and raw streams */ - { - .pipenum =__cpu_to_le32 (0 ), - .pipedir =__cpu_to_le32 (PIPEDIR_OUT ), - .nentries =__cpu_to_le32 (32 ), - .nbytes_max =__cpu_to_le32 (2048 ), - .flags =__cpu_to_le32 (CE_ATTR_FLAGS ), - .reserved =__cpu_to_le32 (0 ), - }, - -/* CE1: target->host HTT + HTC control */ - { - .pipenum =__cpu_to_le32 (1 ), - .pipedir =__cpu_to_le32 (PIPEDIR_IN ), - .nentries =__cpu_to_le32 (32 ), - .nbytes_max =__cpu_to_le32 (2048 ), - .flags =__cpu_to_le32 (CE_ATTR_FLAGS ), - .reserved =__cpu_to_le32 (0 ), - }, - -/* CE2: target->host WMI */ - { - .pipenum =__cpu_to_le32 (2 ), - .pipedir =__cpu_to_le32 (PIPEDIR_IN ), - .nentries =__cpu_to_le32 (32 ), - .nbytes_max =__cpu_to_le32 (2048 ), - .flags =__cpu_to_le32 (CE_ATTR_FLAGS ), - .reserved =__cpu_to_le32 (0 ), - }, - -/* CE3: host->target WMI */ - { - .pipenum =__cpu_to_le32 (3 ), - .pipedir =__cpu_to_le32 (PIPEDIR_OUT ), - .nentries =__cpu_to_le32 (32 ), - .nbytes_max =__cpu_to_le32 (2048 ), - .flags =__cpu_to_le32 (CE_ATTR_FLAGS ), - .reserved =__cpu_to_le32 (0 ), - }, - -/* CE4: host->target HTT */ - { - .pipenum =__cpu_to_le32 (4 ), - .pipedir =__cpu_to_le32 (PIPEDIR_OUT ), - .nentries =__cpu_to_le32 (256 ), - .nbytes_max =__cpu_to_le32 (256 ), - .flags =__cpu_to_le32 (CE_ATTR_FLAGS |CE_ATTR_DIS_INTR ), - .reserved =__cpu_to_le32 (0 ), - }, - -/* CE5: target->host Pktlog */ - { - .pipenum =__cpu_to_le32 (5 ), - .pipedir =__cpu_to_le32 (PIPEDIR_IN ), - .nentries =__cpu_to_le32 (32 ), - .nbytes_max =__cpu_to_le32 (2048 ), - .flags =__cpu_to_le32 (0 ), - .reserved =__cpu_to_le32 (0 ), - }, - -/* CE6: Reserved for target autonomous hif_memcpy */ - { - .pipenum =__cpu_to_le32 (6 ), - .pipedir =__cpu_to_le32 (PIPEDIR_INOUT ), - .nentries =__cpu_to_le32 (32 ), - .nbytes_max =__cpu_to_le32 (65535 ), - .flags =__cpu_to_le32 (CE_ATTR_FLAGS ), - .reserved =__cpu_to_le32 (0 ), - }, - -/* CE7 used only by Host */ - { - .pipenum =__cpu_to_le32 (7 ), - .pipedir =__cpu_to_le32 (PIPEDIR_OUT ), - .nentries =__cpu_to_le32 (32 ), - .nbytes_max =__cpu_to_le32 (2048 ), - .flags =__cpu_to_le32 (CE_ATTR_FLAGS ), - .reserved =__cpu_to_le32 (0 ), - }, - -/* CE8 target->host used only by IPA */ - { - .pipenum =__cpu_to_le32 (8 ), - .pipedir =__cpu_to_le32 (PIPEDIR_INOUT ), - .nentries =__cpu_to_le32 (32 ), - .nbytes_max =__cpu_to_le32 (65535 ), - .flags =__cpu_to_le32 (CE_ATTR_FLAGS ), - .reserved =__cpu_to_le32 (0 ), - }, - -/* CE9 host->target HTT */ - { - .pipenum =__cpu_to_le32 (9 ), - .pipedir =__cpu_to_le32 (PIPEDIR_OUT ), - .nentries =__cpu_to_le32 (32 ), - .nbytes_max =__cpu_to_le32 (2048 ), - .flags =__cpu_to_le32 (CE_ATTR_FLAGS ), - .reserved =__cpu_to_le32 (0 ), - }, - -/* CE10 target->host HTT */ - { - .pipenum =__cpu_to_le32 (10 ), - .pipedir =__cpu_to_le32 (PIPEDIR_INOUT_H2H ), - .nentries =__cpu_to_le32 (0 ), - .nbytes_max =__cpu_to_le32 (0 ), - .flags =__cpu_to_le32 (CE_ATTR_FLAGS ), - .reserved =__cpu_to_le32 (0 ), - }, - -/* CE11 Not used */ - { - .pipenum =__cpu_to_le32 (0 ), - .pipedir =__cpu_to_le32 (0 ), - .nentries =__cpu_to_le32 (0 ), - .nbytes_max =__cpu_to_le32 (0 ), - .flags =__cpu_to_le32 (CE_ATTR_FLAGS ), - .reserved =__cpu_to_le32 (0 ), - }, -}; - -/* Map from service/endpoint to Copy Engine. -* This table is derived from the CE_PCI TABLE, above. -* It is passed to the Target at startup for use by firmware. -*/ -static const struct service_to_pipe target_service_to_ce_map_wlan[] = { - { - .service_id =__cpu_to_le32 (ATH11K_HTC_SVC_ID_WMI_DATA_VO ), - .pipedir =__cpu_to_le32 (PIPEDIR_OUT ),/* out = UL = host -> target */ - .pipenum =__cpu_to_le32 (3 ), - }, - { - .service_id =__cpu_to_le32 (ATH11K_HTC_SVC_ID_WMI_DATA_VO ), - .pipedir =__cpu_to_le32 (PIPEDIR_IN ),/* in = DL = target -> host */ - .pipenum =__cpu_to_le32 (2 ), - }, - { - .service_id =__cpu_to_le32 (ATH11K_HTC_SVC_ID_WMI_DATA_BK ), - .pipedir =__cpu_to_le32 (PIPEDIR_OUT ),/* out = UL = host -> target */ - .pipenum =__cpu_to_le32 (3 ), - }, - { - .service_id =__cpu_to_le32 (ATH11K_HTC_SVC_ID_WMI_DATA_BK ), - .pipedir =__cpu_to_le32 (PIPEDIR_IN ),/* in = DL = target -> host */ - .pipenum =__cpu_to_le32 (2 ), - }, - { - .service_id =__cpu_to_le32 (ATH11K_HTC_SVC_ID_WMI_DATA_BE ), - .pipedir =__cpu_to_le32 (PIPEDIR_OUT ),/* out = UL = host -> target */ - .pipenum =__cpu_to_le32 (3 ), - }, - { - .service_id =__cpu_to_le32 (ATH11K_HTC_SVC_ID_WMI_DATA_BE ), - .pipedir =__cpu_to_le32 (PIPEDIR_IN ),/* in = DL = target -> host */ - .pipenum =__cpu_to_le32 (2 ), - }, - { - .service_id =__cpu_to_le32 (ATH11K_HTC_SVC_ID_WMI_DATA_VI ), - .pipedir =__cpu_to_le32 (PIPEDIR_OUT ),/* out = UL = host -> target */ - .pipenum =__cpu_to_le32 (3 ), - }, - { - .service_id =__cpu_to_le32 (ATH11K_HTC_SVC_ID_WMI_DATA_VI ), - .pipedir =__cpu_to_le32 (PIPEDIR_IN ),/* in = DL = target -> host */ - .pipenum =__cpu_to_le32 (2 ), - }, - { - .service_id =__cpu_to_le32 (ATH11K_HTC_SVC_ID_WMI_CONTROL ), - .pipedir =__cpu_to_le32 (PIPEDIR_OUT ),/* out = UL = host -> target */ - .pipenum =__cpu_to_le32 (3 ), - }, - { - .service_id =__cpu_to_le32 (ATH11K_HTC_SVC_ID_WMI_CONTROL ), - .pipedir =__cpu_to_le32 (PIPEDIR_IN ),/* in = DL = target -> host */ - .pipenum =__cpu_to_le32 (2 ), - }, - { - .service_id =__cpu_to_le32 (ATH11K_HTC_SVC_ID_WMI_CONTROL_MAC1 ), - .pipedir =__cpu_to_le32 (PIPEDIR_OUT ),/* out = UL = host -> target */ - .pipenum =__cpu_to_le32 (7 ), - }, - { - .service_id =__cpu_to_le32 (ATH11K_HTC_SVC_ID_WMI_CONTROL_MAC1 ), - .pipedir =__cpu_to_le32 (PIPEDIR_IN ),/* in = DL = target -> host */ - .pipenum =__cpu_to_le32 (2 ), - }, - { - .service_id =__cpu_to_le32 (ATH11K_HTC_SVC_ID_WMI_CONTROL_MAC2 ), - .pipedir =__cpu_to_le32 (PIPEDIR_OUT ),/* out = UL = host -> target */ - .pipenum =__cpu_to_le32 (9 ), - }, - { - .service_id =__cpu_to_le32 (ATH11K_HTC_SVC_ID_WMI_CONTROL_MAC2 ), - .pipedir =__cpu_to_le32 (PIPEDIR_IN ),/* in = DL = target -> host */ - .pipenum =__cpu_to_le32 (2 ), - }, - { - .service_id =__cpu_to_le32 (ATH11K_HTC_SVC_ID_RSVD_CTRL ), - .pipedir =__cpu_to_le32 (PIPEDIR_OUT ),/* out = UL = host -> target */ - .pipenum =__cpu_to_le32 (0 ), - }, - { - .service_id =__cpu_to_le32 (ATH11K_HTC_SVC_ID_RSVD_CTRL ), - .pipedir =__cpu_to_le32 (PIPEDIR_IN ),/* in = DL = target -> host */ - .pipenum =__cpu_to_le32 (1 ), - }, - {/* not used */ - .service_id =__cpu_to_le32 (ATH11K_HTC_SVC_ID_TEST_RAW_STREAMS ), - .pipedir =__cpu_to_le32 (PIPEDIR_OUT ),/* out = UL = host -> target */ - .pipenum =__cpu_to_le32 (0 ), - }, - {/* not used */ - .service_id =__cpu_to_le32 (ATH11K_HTC_SVC_ID_TEST_RAW_STREAMS ), - .pipedir =__cpu_to_le32 (PIPEDIR_IN ),/* in = DL = target -> host */ - .pipenum =__cpu_to_le32 (1 ), - }, - { - .service_id =__cpu_to_le32 (ATH11K_HTC_SVC_ID_HTT_DATA_MSG ), - .pipedir =__cpu_to_le32 (PIPEDIR_OUT ),/* out = UL = host -> target */ - .pipenum =__cpu_to_le32 (4 ), - }, - { - .service_id =__cpu_to_le32 (ATH11K_HTC_SVC_ID_HTT_DATA_MSG ), - .pipedir =__cpu_to_le32 (PIPEDIR_IN ),/* in = DL = target -> host */ - .pipenum =__cpu_to_le32 (1 ), - }, - { - .service_id =__cpu_to_le32 (ATH11K_HTC_SVC_ID_PKT_LOG ), - .pipedir =__cpu_to_le32 (PIPEDIR_IN ),/* in = DL = target -> host */ - .pipenum =__cpu_to_le32 (5 ), - }, - -/* (Additions here) */ - - {/* terminator entry */ } -};#define ATH11K_IRQ_CE0_OFFSET 4
@@ -444,7 +206,7 @@ static void ath11k_ahb_ce_irq_enable(struct ath11k_base *ab, u16 ce_id) {const struct ce_pipe_config *ce_config; - ce_config = &target_ce_config_wlan[ce_id]; + ce_config = &ab->hw_params.target_ce_config[ce_id];if (__le32_to_cpu (ce_config->pipedir) &PIPEDIR_OUT )ath11k_ahb_setbit32 (ab, ce_id,CE_HOST_IE_ADDRESS );
@@ -459,7 +221,7 @@ static void ath11k_ahb_ce_irq_disable(struct ath11k_base *ab, u16 ce_id) {const struct ce_pipe_config *ce_config; - ce_config = &target_ce_config_wlan[ce_id]; + ce_config = &ab->hw_params.target_ce_config[ce_id];if (__le32_to_cpu (ce_config->pipedir) &PIPEDIR_OUT )ath11k_ahb_clearbit32 (ab, ce_id,CE_HOST_IE_ADDRESS );
@@ -577,10 +339,10 @@ static void ath11k_ahb_init_qmi_ce_config(struct ath11k_base *ab) {struct ath11k_qmi_ce_cfg *cfg = &ab->qmi.ce_cfg; - cfg->tgt_ce_len =ARRAY_SIZE (target_ce_config_wlan) -1 ; - cfg->tgt_ce = target_ce_config_wlan; - cfg->svc_to_ce_map_len =ARRAY_SIZE (target_service_to_ce_map_wlan); - cfg->svc_to_ce_map = target_service_to_ce_map_wlan; + cfg->tgt_ce_len = ab->hw_params.target_ce_count; + cfg->tgt_ce = ab->hw_params.target_ce_config; + cfg->svc_to_ce_map_len = ab->hw_params.svc_to_ce_map_len; + cfg->svc_to_ce_map = ab->hw_params.svc_to_ce_map; ab->qmi.service_ins_id =ATH11K_QMI_WLFW_SERVICE_INS_ID_V01_IPQ8074 ; }
@@ -788,8 +550,8 @@ static int ath11k_ahb_map_service_to_pipe(struct ath11k_base *ab, u16 service_idbool ul_set = false, dl_set = false;int i; -for (i =0 ; i <ARRAY_SIZE (target_service_to_ce_map_wlan); i++) { - entry = &target_service_to_ce_map_wlan[i]; +for (i =0 ; i < ab->hw_params.svc_to_ce_map_len; i++) { + entry = &ab->hw_params.svc_to_ce_map[i];if (__le32_to_cpu (entry->service_id) != service_id)continue ;
drivers/net/wireless/ath/ath11k/core.c +8 -0
@@ -35,6 +35,10 @@ static const struct ath11k_hw_params ath11k_hw_params[] = { .regs = &ipq8074_regs, .host_ce_config = ath11k_host_ce_config_ipq8074, .ce_count = 12, + .target_ce_config = ath11k_target_ce_config_wlan_ipq8074, + .target_ce_count = 11, + .svc_to_ce_map = ath11k_target_service_to_ce_map_wlan_ipq8074, + .svc_to_ce_map_len = 21, .single_pdev_only = false, .needs_band_to_mac = true, .rxdma1_enable = true,
@@ -60,6 +64,10 @@ static const struct ath11k_hw_params ath11k_hw_params[] = { .regs = &qca6390_regs, .host_ce_config = ath11k_host_ce_config_qca6390, .ce_count = 9, + .target_ce_config = ath11k_target_ce_config_wlan_qca6390, + .target_ce_count = 9, + .svc_to_ce_map = ath11k_target_service_to_ce_map_wlan_qca6390, + .svc_to_ce_map_len = 14, .single_pdev_only = true, .needs_band_to_mac = false, .rxdma1_enable = false,
drivers/net/wireless/ath/ath11k/core.h +6 -0
@@ -845,6 +845,12 @@ struct ath11k_fw_stats_bcn {u32 tx_bcn_outage_cnt; }; +extern const struct ce_pipe_config ath11k_target_ce_config_wlan_ipq8074[]; +extern const struct service_to_pipe ath11k_target_service_to_ce_map_wlan_ipq8074[]; + +extern const struct ce_pipe_config ath11k_target_ce_config_wlan_qca6390[]; +extern const struct service_to_pipe ath11k_target_service_to_ce_map_wlan_qca6390[]; +void ath11k_peer_unmap_event (struct ath11k_base *ab,u16 peer_id);void ath11k_peer_map_event (struct ath11k_base *ab,u8 vdev_id,u16 peer_id,u8 *mac_addr,u16 ast_hash);
drivers/net/wireless/ath/ath11k/hw.c +410 -0
416 lines not on this page · raw message
drivers/net/wireless/ath/ath11k/hw.h +4 -1
@@ -129,7 +129,6 @@ struct ath11k_hw_params { } fw;const struct ath11k_hw_ops *hw_ops; -const struct ath11k_hw_ring_mask *ring_mask;bool internal_sleep_clock;
@@ -137,6 +136,10 @@ struct ath11k_hw_params {const struct ath11k_hw_regs *regs;const struct ce_attr *host_ce_config;u32 ce_count; +const struct ce_pipe_config *target_ce_config; +u32 target_ce_count; +const struct service_to_pipe *svc_to_ce_map; +u32 svc_to_ce_map_len;bool single_pdev_only;
drivers/net/wireless/ath/ath11k/pci.c +6 -187
212 lines not on this page · raw message
Signature · 1 line
2.7.4
PATCH v7 2/3 ath11k: move target ce configs to hw_params
In reply to a message not in the archiveMove target CE config and target CE service config to hw_params. No functional changes.
Tested on: IPQ8074 hw2.0 AHB WLAN.HK.2.4.0.1-00009-QCAHKSWPL_SILICONZ-1
---
V3:
- added ce svc configs in hw_params
V7:
- Move ce target configs to hw.c to remove hw_rev checks in code(Julian, Kalle)
drivers/net/wireless/ath/ath11k/ahb.c | 254 +------------------- drivers/net/wireless/ath/ath11k/core.c | 8 + drivers/net/wireless/ath/ath11k/core.h | 6 + drivers/net/wireless/ath/ath11k/hw.c | 410 +++++++++++++++++++++++++++++++++ drivers/net/wireless/ath/ath11k/hw.h | 5 +- drivers/net/wireless/ath/ath11k/pci.c | 193 +--------------- 6 files changed, 442 insertions(+), 434 deletions(-)
drivers/net/wireless/ath/ath11k/ahb.c +8 -246
@@ -32,244 +32,6 @@ static const struct ath11k_bus_params ath11k_ahb_bus_params = { .fixed_mem_region = true, }; -/* Target firmware's Copy Engine configuration. */ -static const struct ce_pipe_config target_ce_config_wlan[] = { -/* CE0: host->target HTC control and raw streams */ - { - .pipenum =__cpu_to_le32 (0 ), - .pipedir =__cpu_to_le32 (PIPEDIR_OUT ), - .nentries =__cpu_to_le32 (32 ), - .nbytes_max =__cpu_to_le32 (2048 ), - .flags =__cpu_to_le32 (CE_ATTR_FLAGS ), - .reserved =__cpu_to_le32 (0 ), - }, - -/* CE1: target->host HTT + HTC control */ - { - .pipenum =__cpu_to_le32 (1 ), - .pipedir =__cpu_to_le32 (PIPEDIR_IN ), - .nentries =__cpu_to_le32 (32 ), - .nbytes_max =__cpu_to_le32 (2048 ), - .flags =__cpu_to_le32 (CE_ATTR_FLAGS ), - .reserved =__cpu_to_le32 (0 ), - }, - -/* CE2: target->host WMI */ - { - .pipenum =__cpu_to_le32 (2 ), - .pipedir =__cpu_to_le32 (PIPEDIR_IN ), - .nentries =__cpu_to_le32 (32 ), - .nbytes_max =__cpu_to_le32 (2048 ), - .flags =__cpu_to_le32 (CE_ATTR_FLAGS ), - .reserved =__cpu_to_le32 (0 ), - }, - -/* CE3: host->target WMI */ - { - .pipenum =__cpu_to_le32 (3 ), - .pipedir =__cpu_to_le32 (PIPEDIR_OUT ), - .nentries =__cpu_to_le32 (32 ), - .nbytes_max =__cpu_to_le32 (2048 ), - .flags =__cpu_to_le32 (CE_ATTR_FLAGS ), - .reserved =__cpu_to_le32 (0 ), - }, - -/* CE4: host->target HTT */ - { - .pipenum =__cpu_to_le32 (4 ), - .pipedir =__cpu_to_le32 (PIPEDIR_OUT ), - .nentries =__cpu_to_le32 (256 ), - .nbytes_max =__cpu_to_le32 (256 ), - .flags =__cpu_to_le32 (CE_ATTR_FLAGS |CE_ATTR_DIS_INTR ), - .reserved =__cpu_to_le32 (0 ), - }, - -/* CE5: target->host Pktlog */ - { - .pipenum =__cpu_to_le32 (5 ), - .pipedir =__cpu_to_le32 (PIPEDIR_IN ), - .nentries =__cpu_to_le32 (32 ), - .nbytes_max =__cpu_to_le32 (2048 ), - .flags =__cpu_to_le32 (0 ), - .reserved =__cpu_to_le32 (0 ), - }, - -/* CE6: Reserved for target autonomous hif_memcpy */ - { - .pipenum =__cpu_to_le32 (6 ), - .pipedir =__cpu_to_le32 (PIPEDIR_INOUT ), - .nentries =__cpu_to_le32 (32 ), - .nbytes_max =__cpu_to_le32 (65535 ), - .flags =__cpu_to_le32 (CE_ATTR_FLAGS ), - .reserved =__cpu_to_le32 (0 ), - }, - -/* CE7 used only by Host */ - { - .pipenum =__cpu_to_le32 (7 ), - .pipedir =__cpu_to_le32 (PIPEDIR_OUT ), - .nentries =__cpu_to_le32 (32 ), - .nbytes_max =__cpu_to_le32 (2048 ), - .flags =__cpu_to_le32 (CE_ATTR_FLAGS ), - .reserved =__cpu_to_le32 (0 ), - }, - -/* CE8 target->host used only by IPA */ - { - .pipenum =__cpu_to_le32 (8 ), - .pipedir =__cpu_to_le32 (PIPEDIR_INOUT ), - .nentries =__cpu_to_le32 (32 ), - .nbytes_max =__cpu_to_le32 (65535 ), - .flags =__cpu_to_le32 (CE_ATTR_FLAGS ), - .reserved =__cpu_to_le32 (0 ), - }, - -/* CE9 host->target HTT */ - { - .pipenum =__cpu_to_le32 (9 ), - .pipedir =__cpu_to_le32 (PIPEDIR_OUT ), - .nentries =__cpu_to_le32 (32 ), - .nbytes_max =__cpu_to_le32 (2048 ), - .flags =__cpu_to_le32 (CE_ATTR_FLAGS ), - .reserved =__cpu_to_le32 (0 ), - }, - -/* CE10 target->host HTT */ - { - .pipenum =__cpu_to_le32 (10 ), - .pipedir =__cpu_to_le32 (PIPEDIR_INOUT_H2H ), - .nentries =__cpu_to_le32 (0 ), - .nbytes_max =__cpu_to_le32 (0 ), - .flags =__cpu_to_le32 (CE_ATTR_FLAGS ), - .reserved =__cpu_to_le32 (0 ), - }, - -/* CE11 Not used */ - { - .pipenum =__cpu_to_le32 (0 ), - .pipedir =__cpu_to_le32 (0 ), - .nentries =__cpu_to_le32 (0 ), - .nbytes_max =__cpu_to_le32 (0 ), - .flags =__cpu_to_le32 (CE_ATTR_FLAGS ), - .reserved =__cpu_to_le32 (0 ), - }, -}; - -/* Map from service/endpoint to Copy Engine. -* This table is derived from the CE_PCI TABLE, above. -* It is passed to the Target at startup for use by firmware. -*/ -static const struct service_to_pipe target_service_to_ce_map_wlan[] = { - { - .service_id =__cpu_to_le32 (ATH11K_HTC_SVC_ID_WMI_DATA_VO ), - .pipedir =__cpu_to_le32 (PIPEDIR_OUT ),/* out = UL = host -> target */ - .pipenum =__cpu_to_le32 (3 ), - }, - { - .service_id =__cpu_to_le32 (ATH11K_HTC_SVC_ID_WMI_DATA_VO ), - .pipedir =__cpu_to_le32 (PIPEDIR_IN ),/* in = DL = target -> host */ - .pipenum =__cpu_to_le32 (2 ), - }, - { - .service_id =__cpu_to_le32 (ATH11K_HTC_SVC_ID_WMI_DATA_BK ), - .pipedir =__cpu_to_le32 (PIPEDIR_OUT ),/* out = UL = host -> target */ - .pipenum =__cpu_to_le32 (3 ), - }, - { - .service_id =__cpu_to_le32 (ATH11K_HTC_SVC_ID_WMI_DATA_BK ), - .pipedir =__cpu_to_le32 (PIPEDIR_IN ),/* in = DL = target -> host */ - .pipenum =__cpu_to_le32 (2 ), - }, - { - .service_id =__cpu_to_le32 (ATH11K_HTC_SVC_ID_WMI_DATA_BE ), - .pipedir =__cpu_to_le32 (PIPEDIR_OUT ),/* out = UL = host -> target */ - .pipenum =__cpu_to_le32 (3 ), - }, - { - .service_id =__cpu_to_le32 (ATH11K_HTC_SVC_ID_WMI_DATA_BE ), - .pipedir =__cpu_to_le32 (PIPEDIR_IN ),/* in = DL = target -> host */ - .pipenum =__cpu_to_le32 (2 ), - }, - { - .service_id =__cpu_to_le32 (ATH11K_HTC_SVC_ID_WMI_DATA_VI ), - .pipedir =__cpu_to_le32 (PIPEDIR_OUT ),/* out = UL = host -> target */ - .pipenum =__cpu_to_le32 (3 ), - }, - { - .service_id =__cpu_to_le32 (ATH11K_HTC_SVC_ID_WMI_DATA_VI ), - .pipedir =__cpu_to_le32 (PIPEDIR_IN ),/* in = DL = target -> host */ - .pipenum =__cpu_to_le32 (2 ), - }, - { - .service_id =__cpu_to_le32 (ATH11K_HTC_SVC_ID_WMI_CONTROL ), - .pipedir =__cpu_to_le32 (PIPEDIR_OUT ),/* out = UL = host -> target */ - .pipenum =__cpu_to_le32 (3 ), - }, - { - .service_id =__cpu_to_le32 (ATH11K_HTC_SVC_ID_WMI_CONTROL ), - .pipedir =__cpu_to_le32 (PIPEDIR_IN ),/* in = DL = target -> host */ - .pipenum =__cpu_to_le32 (2 ), - }, - { - .service_id =__cpu_to_le32 (ATH11K_HTC_SVC_ID_WMI_CONTROL_MAC1 ), - .pipedir =__cpu_to_le32 (PIPEDIR_OUT ),/* out = UL = host -> target */ - .pipenum =__cpu_to_le32 (7 ), - }, - { - .service_id =__cpu_to_le32 (ATH11K_HTC_SVC_ID_WMI_CONTROL_MAC1 ), - .pipedir =__cpu_to_le32 (PIPEDIR_IN ),/* in = DL = target -> host */ - .pipenum =__cpu_to_le32 (2 ), - }, - { - .service_id =__cpu_to_le32 (ATH11K_HTC_SVC_ID_WMI_CONTROL_MAC2 ), - .pipedir =__cpu_to_le32 (PIPEDIR_OUT ),/* out = UL = host -> target */ - .pipenum =__cpu_to_le32 (9 ), - }, - { - .service_id =__cpu_to_le32 (ATH11K_HTC_SVC_ID_WMI_CONTROL_MAC2 ), - .pipedir =__cpu_to_le32 (PIPEDIR_IN ),/* in = DL = target -> host */ - .pipenum =__cpu_to_le32 (2 ), - }, - { - .service_id =__cpu_to_le32 (ATH11K_HTC_SVC_ID_RSVD_CTRL ), - .pipedir =__cpu_to_le32 (PIPEDIR_OUT ),/* out = UL = host -> target */ - .pipenum =__cpu_to_le32 (0 ), - }, - { - .service_id =__cpu_to_le32 (ATH11K_HTC_SVC_ID_RSVD_CTRL ), - .pipedir =__cpu_to_le32 (PIPEDIR_IN ),/* in = DL = target -> host */ - .pipenum =__cpu_to_le32 (1 ), - }, - {/* not used */ - .service_id =__cpu_to_le32 (ATH11K_HTC_SVC_ID_TEST_RAW_STREAMS ), - .pipedir =__cpu_to_le32 (PIPEDIR_OUT ),/* out = UL = host -> target */ - .pipenum =__cpu_to_le32 (0 ), - }, - {/* not used */ - .service_id =__cpu_to_le32 (ATH11K_HTC_SVC_ID_TEST_RAW_STREAMS ), - .pipedir =__cpu_to_le32 (PIPEDIR_IN ),/* in = DL = target -> host */ - .pipenum =__cpu_to_le32 (1 ), - }, - { - .service_id =__cpu_to_le32 (ATH11K_HTC_SVC_ID_HTT_DATA_MSG ), - .pipedir =__cpu_to_le32 (PIPEDIR_OUT ),/* out = UL = host -> target */ - .pipenum =__cpu_to_le32 (4 ), - }, - { - .service_id =__cpu_to_le32 (ATH11K_HTC_SVC_ID_HTT_DATA_MSG ), - .pipedir =__cpu_to_le32 (PIPEDIR_IN ),/* in = DL = target -> host */ - .pipenum =__cpu_to_le32 (1 ), - }, - { - .service_id =__cpu_to_le32 (ATH11K_HTC_SVC_ID_PKT_LOG ), - .pipedir =__cpu_to_le32 (PIPEDIR_IN ),/* in = DL = target -> host */ - .pipenum =__cpu_to_le32 (5 ), - }, - -/* (Additions here) */ - - {/* terminator entry */ } -};#define ATH11K_IRQ_CE0_OFFSET 4
@@ -444,7 +206,7 @@ static void ath11k_ahb_ce_irq_enable(struct ath11k_base *ab, u16 ce_id) {const struct ce_pipe_config *ce_config; - ce_config = &target_ce_config_wlan[ce_id]; + ce_config = &ab->hw_params.target_ce_config[ce_id];if (__le32_to_cpu (ce_config->pipedir) &PIPEDIR_OUT )ath11k_ahb_setbit32 (ab, ce_id,CE_HOST_IE_ADDRESS );
@@ -459,7 +221,7 @@ static void ath11k_ahb_ce_irq_disable(struct ath11k_base *ab, u16 ce_id) {const struct ce_pipe_config *ce_config; - ce_config = &target_ce_config_wlan[ce_id]; + ce_config = &ab->hw_params.target_ce_config[ce_id];if (__le32_to_cpu (ce_config->pipedir) &PIPEDIR_OUT )ath11k_ahb_clearbit32 (ab, ce_id,CE_HOST_IE_ADDRESS );
@@ -577,10 +339,10 @@ static void ath11k_ahb_init_qmi_ce_config(struct ath11k_base *ab) {struct ath11k_qmi_ce_cfg *cfg = &ab->qmi.ce_cfg; - cfg->tgt_ce_len =ARRAY_SIZE (target_ce_config_wlan) -1 ; - cfg->tgt_ce = target_ce_config_wlan; - cfg->svc_to_ce_map_len =ARRAY_SIZE (target_service_to_ce_map_wlan); - cfg->svc_to_ce_map = target_service_to_ce_map_wlan; + cfg->tgt_ce_len = ab->hw_params.target_ce_count; + cfg->tgt_ce = ab->hw_params.target_ce_config; + cfg->svc_to_ce_map_len = ab->hw_params.svc_to_ce_map_len; + cfg->svc_to_ce_map = ab->hw_params.svc_to_ce_map; ab->qmi.service_ins_id =ATH11K_QMI_WLFW_SERVICE_INS_ID_V01_IPQ8074 ; }
@@ -788,8 +550,8 @@ static int ath11k_ahb_map_service_to_pipe(struct ath11k_base *ab, u16 service_idbool ul_set = false, dl_set = false;int i; -for (i =0 ; i <ARRAY_SIZE (target_service_to_ce_map_wlan); i++) { - entry = &target_service_to_ce_map_wlan[i]; +for (i =0 ; i < ab->hw_params.svc_to_ce_map_len; i++) { + entry = &ab->hw_params.svc_to_ce_map[i];if (__le32_to_cpu (entry->service_id) != service_id)continue ;
drivers/net/wireless/ath/ath11k/core.c +8 -0
@@ -35,6 +35,10 @@ static const struct ath11k_hw_params ath11k_hw_params[] = { .regs = &ipq8074_regs, .host_ce_config = ath11k_host_ce_config_ipq8074, .ce_count = 12, + .target_ce_config = ath11k_target_ce_config_wlan_ipq8074, + .target_ce_count = 11, + .svc_to_ce_map = ath11k_target_service_to_ce_map_wlan_ipq8074, + .svc_to_ce_map_len = 21, .single_pdev_only = false, .needs_band_to_mac = true, .rxdma1_enable = true,
@@ -60,6 +64,10 @@ static const struct ath11k_hw_params ath11k_hw_params[] = { .regs = &qca6390_regs, .host_ce_config = ath11k_host_ce_config_qca6390, .ce_count = 9, + .target_ce_config = ath11k_target_ce_config_wlan_qca6390, + .target_ce_count = 9, + .svc_to_ce_map = ath11k_target_service_to_ce_map_wlan_qca6390, + .svc_to_ce_map_len = 14, .single_pdev_only = true, .needs_band_to_mac = false, .rxdma1_enable = false,
drivers/net/wireless/ath/ath11k/core.h +6 -0
@@ -845,6 +845,12 @@ struct ath11k_fw_stats_bcn {u32 tx_bcn_outage_cnt; }; +extern const struct ce_pipe_config ath11k_target_ce_config_wlan_ipq8074[]; +extern const struct service_to_pipe ath11k_target_service_to_ce_map_wlan_ipq8074[]; + +extern const struct ce_pipe_config ath11k_target_ce_config_wlan_qca6390[]; +extern const struct service_to_pipe ath11k_target_service_to_ce_map_wlan_qca6390[]; +void ath11k_peer_unmap_event (struct ath11k_base *ab,u16 peer_id);void ath11k_peer_map_event (struct ath11k_base *ab,u8 vdev_id,u16 peer_id,u8 *mac_addr,u16 ast_hash);
drivers/net/wireless/ath/ath11k/hw.c +410 -0
416 lines not on this page · raw message
drivers/net/wireless/ath/ath11k/hw.h +4 -1
@@ -129,7 +129,6 @@ struct ath11k_hw_params { } fw;const struct ath11k_hw_ops *hw_ops; -const struct ath11k_hw_ring_mask *ring_mask;bool internal_sleep_clock;
@@ -137,6 +136,10 @@ struct ath11k_hw_params {const struct ath11k_hw_regs *regs;const struct ce_attr *host_ce_config;u32 ce_count; +const struct ce_pipe_config *target_ce_config; +u32 target_ce_count; +const struct service_to_pipe *svc_to_ce_map; +u32 svc_to_ce_map_len;bool single_pdev_only;
drivers/net/wireless/ath/ath11k/pci.c +6 -187
212 lines not on this page · raw message
Signature · 7 lines
2.7.4 -- ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k
PATCH v7 3/3 ath11k: add ipq6018 support
In reply to a message not in the archiveIPQ6018 has one 5G and one 2G radio with 2x2,
shares ipq8074 configurations.
Tested on: IPQ6018 hw1.0 AHB WLAN.HK.2.2-02134-QCAHKSWPL_SILICONZ-1 Tested on: IPQ8074 hw2.0 AHB WLAN.HK.2.4.0.1-00009-QCAHKSWPL_SILICONZ-1
--- drivers/net/wireless/ath/ath11k/ahb.c | 3 + drivers/net/wireless/ath/ath11k/core.c | 29 ++++++++++ drivers/net/wireless/ath/ath11k/core.h | 2 + drivers/net/wireless/ath/ath11k/hw.c | 102 +++++++++++++++++++++++++++++++++ 4 files changed, 136 insertions(+)
drivers/net/wireless/ath/ath11k/ahb.c +3 -0
@@ -20,6 +20,9 @@ static const struct of_device_id ath11k_ahb_of_match[] = { { .compatible = "qcom,ipq8074-wifi", .data = (void *)ATH11K_HW_IPQ8074, }, + { .compatible = "qcom,ipq6018-wifi", + .data = (void *)ATH11K_HW_IPQ6018, + }, { } };
drivers/net/wireless/ath/ath11k/core.c +29 -0
@@ -49,6 +49,35 @@ static const struct ath11k_hw_params ath11k_hw_params[] = { .tcl_0_only = false, }, { + .hw_rev = ATH11K_HW_IPQ6018, + .name = "ipq6018 hw1.0", + .fw = { + .dir = "IPQ6018/hw1.0", + .board_size = 256 * 1024, + .cal_size = 256 * 1024, + }, + .max_radios = 2, + .bdf_addr = 0x4ABC0000, + .hw_ops = &ipq6018_ops, + .ring_mask = &ath11k_hw_ring_mask_ipq8074, + .internal_sleep_clock = false, + .regs = &ipq8074_regs, + .host_ce_config = ath11k_host_ce_config_ipq8074, + .ce_count = 12, + .target_ce_config = ath11k_target_ce_config_wlan_ipq8074, + .target_ce_count = 11, + .svc_to_ce_map = ath11k_target_service_to_ce_map_wlan_ipq6018, + .svc_to_ce_map_len = 19, + .single_pdev_only = false, + .needs_band_to_mac = true, + .rxdma1_enable = true, + .num_rxmda_per_pdev = 1, + .rx_mac_buf_ring = false, + .vdev_start_delay = false, + .htt_peer_map_v2 = true, + .tcl_0_only = false, + }, + { .name = "qca6390 hw2.0", .hw_rev = ATH11K_HW_QCA6390_HW20, .fw = {
drivers/net/wireless/ath/ath11k/core.h +2 -0
@@ -90,6 +90,7 @@ struct ath11k_skb_rxcb {enum ath11k_hw_rev {ATH11K_HW_IPQ8074 , +ATH11K_HW_IPQ6018 ,ATH11K_HW_QCA6390_HW20 , };
@@ -847,6 +848,7 @@ struct ath11k_fw_stats_bcn {extern const struct ce_pipe_config ath11k_target_ce_config_wlan_ipq8074[];extern const struct service_to_pipe ath11k_target_service_to_ce_map_wlan_ipq8074[]; +extern const struct service_to_pipe ath11k_target_service_to_ce_map_wlan_ipq6018[];extern const struct ce_pipe_config ath11k_target_ce_config_wlan_qca6390[];extern const struct service_to_pipe ath11k_target_service_to_ce_map_wlan_qca6390[];
drivers/net/wireless/ath/ath11k/hw.c +102 -0
108 lines not on this page · raw message
Signature · 7 lines
2.7.4 -- ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k
Re: [PATCH v7 3/3] ath11k: add ipq6018 support
Quoted 7 lines · Anilkumar Kolli
IPQ6018 has one 5G and one 2G radio with 2x2,
shares ipq8074 configurations.Tested on: IPQ6018 hw1.0 AHB WLAN.HK.2.2-02134-QCAHKSWPL_SILICONZ-1 Tested on: IPQ8074 hw2.0 AHB WLAN.HK.2.4.0.1-00009-QCAHKSWPL_SILICONZ-1
Signed-off-by Anilkumar Kolli <[email protected]>
[...]
drivers/net/wireless/ath/ath11k/core.h struct ath11k_skb_rxcb { · line 95
Quoted 9 lines
drivers/net/wireless/ath/ath11k/core.h +1
-0@@ -90,6 +90,7 @@ struct ath11k_skb_rxcb {enum ath11k_hw_rev {ATH11K_HW_IPQ8074 , +ATH11K_HW_IPQ6018 ,ATH11K_HW_QCA6390_HW20 , };
In the pending branch I changed this to:
enum ath11k_hw_rev {
ATH11K_HW_IPQ8074,
ATH11K_HW_QCA6390_HW20,
ATH11K_HW_IPQ6018_HW10,
};Also ATH11K_HW_IPQ8074 should be renamed to ATH11K_HW_IPQ8074_HW20, but in a separate patch later.
Signature · 6 lines
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches -- ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k
Re: [PATCH v7 3/3] ath11k: add ipq6018 support
In reply to Anilkumar KolliQuoted 7 lines · Anilkumar Kolli
IPQ6018 has one 5G and one 2G radio with 2x2,
shares ipq8074 configurations.Tested on: IPQ6018 hw1.0 AHB WLAN.HK.2.2-02134-QCAHKSWPL_SILICONZ-1 Tested on: IPQ8074 hw2.0 AHB WLAN.HK.2.4.0.1-00009-QCAHKSWPL_SILICONZ-1
Signed-off-by Anilkumar Kolli <[email protected]>
[...]
drivers/net/wireless/ath/ath11k/core.h struct ath11k_skb_rxcb { · line 95
Quoted 9 lines
drivers/net/wireless/ath/ath11k/core.h +1
-0@@ -90,6 +90,7 @@ struct ath11k_skb_rxcb {enum ath11k_hw_rev {ATH11K_HW_IPQ8074 , +ATH11K_HW_IPQ6018 ,ATH11K_HW_QCA6390_HW20 , };
In the pending branch I changed this to:
enum ath11k_hw_rev {
ATH11K_HW_IPQ8074,
ATH11K_HW_QCA6390_HW20,
ATH11K_HW_IPQ6018_HW10,
};Also ATH11K_HW_IPQ8074 should be renamed to ATH11K_HW_IPQ8074_HW20, but in a separate patch later.
Signature · 1 line
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
PATCH v7 3/3 ath11k: add ipq6018 support
In reply to a message not in the archiveIPQ6018 has one 5G and one 2G radio with 2x2,
shares ipq8074 configurations.
Tested on: IPQ6018 hw1.0 AHB WLAN.HK.2.2-02134-QCAHKSWPL_SILICONZ-1 Tested on: IPQ8074 hw2.0 AHB WLAN.HK.2.4.0.1-00009-QCAHKSWPL_SILICONZ-1
--- drivers/net/wireless/ath/ath11k/ahb.c | 3 + drivers/net/wireless/ath/ath11k/core.c | 29 ++++++++++ drivers/net/wireless/ath/ath11k/core.h | 2 + drivers/net/wireless/ath/ath11k/hw.c | 102 +++++++++++++++++++++++++++++++++ 4 files changed, 136 insertions(+)
drivers/net/wireless/ath/ath11k/ahb.c +3 -0
@@ -20,6 +20,9 @@ static const struct of_device_id ath11k_ahb_of_match[] = { { .compatible = "qcom,ipq8074-wifi", .data = (void *)ATH11K_HW_IPQ8074, }, + { .compatible = "qcom,ipq6018-wifi", + .data = (void *)ATH11K_HW_IPQ6018, + }, { } };
drivers/net/wireless/ath/ath11k/core.c +29 -0
@@ -49,6 +49,35 @@ static const struct ath11k_hw_params ath11k_hw_params[] = { .tcl_0_only = false, }, { + .hw_rev = ATH11K_HW_IPQ6018, + .name = "ipq6018 hw1.0", + .fw = { + .dir = "IPQ6018/hw1.0", + .board_size = 256 * 1024, + .cal_size = 256 * 1024, + }, + .max_radios = 2, + .bdf_addr = 0x4ABC0000, + .hw_ops = &ipq6018_ops, + .ring_mask = &ath11k_hw_ring_mask_ipq8074, + .internal_sleep_clock = false, + .regs = &ipq8074_regs, + .host_ce_config = ath11k_host_ce_config_ipq8074, + .ce_count = 12, + .target_ce_config = ath11k_target_ce_config_wlan_ipq8074, + .target_ce_count = 11, + .svc_to_ce_map = ath11k_target_service_to_ce_map_wlan_ipq6018, + .svc_to_ce_map_len = 19, + .single_pdev_only = false, + .needs_band_to_mac = true, + .rxdma1_enable = true, + .num_rxmda_per_pdev = 1, + .rx_mac_buf_ring = false, + .vdev_start_delay = false, + .htt_peer_map_v2 = true, + .tcl_0_only = false, + }, + { .name = "qca6390 hw2.0", .hw_rev = ATH11K_HW_QCA6390_HW20, .fw = {
drivers/net/wireless/ath/ath11k/core.h +2 -0
@@ -90,6 +90,7 @@ struct ath11k_skb_rxcb {enum ath11k_hw_rev {ATH11K_HW_IPQ8074 , +ATH11K_HW_IPQ6018 ,ATH11K_HW_QCA6390_HW20 , };
@@ -847,6 +848,7 @@ struct ath11k_fw_stats_bcn {extern const struct ce_pipe_config ath11k_target_ce_config_wlan_ipq8074[];extern const struct service_to_pipe ath11k_target_service_to_ce_map_wlan_ipq8074[]; +extern const struct service_to_pipe ath11k_target_service_to_ce_map_wlan_ipq6018[];extern const struct ce_pipe_config ath11k_target_ce_config_wlan_qca6390[];extern const struct service_to_pipe ath11k_target_service_to_ce_map_wlan_qca6390[];
drivers/net/wireless/ath/ath11k/hw.c +102 -0
108 lines not on this page · raw message
Signature · 1 line
2.7.4