Loading Documentation/devicetree/bindings/cnss/cnss-wlan.txt +2 −0 Original line number Diff line number Diff line Loading @@ -42,6 +42,8 @@ Optional properties: - reg-names: Names of the memory regions defined in reg entry - wlan-bootstrap-gpio: WLAN_BOOTSTRAP GPIO signal specified by QCA6174 which should be drived depending on platforms - qcom,is-dual-wifi-enabled: Boolean property to control wlan enable(wlan-en) gpio on dual-wifi platforms. Example: Loading drivers/net/wireless/cnss/cnss_pci.c +13 −0 Original line number Diff line number Diff line Loading @@ -227,6 +227,10 @@ struct index_file { u8 file_name[13]; }; struct cnss_dual_wifi { bool is_dual_wifi_enabled; }; /** * struct wlan_mac_addr - Structure to hold WLAN MAC Address * @mac_addr: MAC address Loading Loading @@ -304,6 +308,7 @@ static struct cnss_data { int wlan_bootstrap_gpio; atomic_t auto_suspended; bool monitor_wake_intr; struct cnss_dual_wifi dual_wifi_info; } *penv; static unsigned int pcie_link_down_panic; Loading Loading @@ -580,6 +585,11 @@ static void cnss_wlan_gpio_set(struct cnss_wlan_gpio_info *info, bool state) return; } if (state == WLAN_EN_LOW && penv->dual_wifi_info.is_dual_wifi_enabled) { pr_debug("%s Dual WiFi enabled\n", __func__); return; } gpio_set_value(info->num, state); info->state = state; Loading Loading @@ -2728,6 +2738,9 @@ static int cnss_probe(struct platform_device *pdev) penv->subsys_handle = subsystem_get(penv->subsysdesc.name); if (of_property_read_bool(dev->of_node, "qcom,is-dual-wifi-enabled")) penv->dual_wifi_info.is_dual_wifi_enabled = true; if (of_property_read_u32(dev->of_node, "qcom,wlan-ramdump-dynamic", &ramdump_size) == 0) { penv->ramdump_addr = dma_alloc_coherent(&pdev->dev, Loading Loading
Documentation/devicetree/bindings/cnss/cnss-wlan.txt +2 −0 Original line number Diff line number Diff line Loading @@ -42,6 +42,8 @@ Optional properties: - reg-names: Names of the memory regions defined in reg entry - wlan-bootstrap-gpio: WLAN_BOOTSTRAP GPIO signal specified by QCA6174 which should be drived depending on platforms - qcom,is-dual-wifi-enabled: Boolean property to control wlan enable(wlan-en) gpio on dual-wifi platforms. Example: Loading
drivers/net/wireless/cnss/cnss_pci.c +13 −0 Original line number Diff line number Diff line Loading @@ -227,6 +227,10 @@ struct index_file { u8 file_name[13]; }; struct cnss_dual_wifi { bool is_dual_wifi_enabled; }; /** * struct wlan_mac_addr - Structure to hold WLAN MAC Address * @mac_addr: MAC address Loading Loading @@ -304,6 +308,7 @@ static struct cnss_data { int wlan_bootstrap_gpio; atomic_t auto_suspended; bool monitor_wake_intr; struct cnss_dual_wifi dual_wifi_info; } *penv; static unsigned int pcie_link_down_panic; Loading Loading @@ -580,6 +585,11 @@ static void cnss_wlan_gpio_set(struct cnss_wlan_gpio_info *info, bool state) return; } if (state == WLAN_EN_LOW && penv->dual_wifi_info.is_dual_wifi_enabled) { pr_debug("%s Dual WiFi enabled\n", __func__); return; } gpio_set_value(info->num, state); info->state = state; Loading Loading @@ -2728,6 +2738,9 @@ static int cnss_probe(struct platform_device *pdev) penv->subsys_handle = subsystem_get(penv->subsysdesc.name); if (of_property_read_bool(dev->of_node, "qcom,is-dual-wifi-enabled")) penv->dual_wifi_info.is_dual_wifi_enabled = true; if (of_property_read_u32(dev->of_node, "qcom,wlan-ramdump-dynamic", &ramdump_size) == 0) { penv->ramdump_addr = dma_alloc_coherent(&pdev->dev, Loading