Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 18600d4f authored by Sameer Thalappil's avatar Sameer Thalappil
Browse files

cnss: Add support to export UART availability



Indicate WLAN driver that QCA6174 can use the UART to communicate
with LPASS.

Change-Id: Idc3858bc84345bb027efa7d4c6a7e119fc4f4ad2
CRs-Fixed: 655468
Signed-off-by: default avatarSameer Thalappil <sameert@codeaurora.org>
parent a08ee70c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -21,6 +21,8 @@ Optional properties:
  - qcom,notify-modem-status: Boolean property to decide whether modem
    notification should be enabled or not in this platform
  - wlan-soc-swreg-supply: phandle to the external 1.15V regulator for QCA6174
  - qcom,wlan-uart-access: Boolean property to decide whether QCA6174
    has exclusive access to UART.

Example:

+4 −0
Original line number Diff line number Diff line
@@ -291,6 +291,10 @@ static int cnss_wlan_get_resources(struct platform_device *pdev)
		goto err_reg_enable;
	}

	if (of_find_property((&pdev->dev)->of_node,
				"qcom,wlan-uart-access", NULL))
		penv->cap.cap_flag |= CNSS_HAS_UART_ACCESS;

	if (of_get_property(pdev->dev.of_node,
		    WLAN_SWREG_NAME"-supply", NULL)) {

+1 −0
Original line number Diff line number Diff line
@@ -56,6 +56,7 @@ struct cnss_wlan_driver {
/* platform capabilities */
enum cnss_platform_cap_flag {
	CNSS_HAS_EXTERNAL_SWREG = 0x01,
	CNSS_HAS_UART_ACCESS = 0x02,
};

struct cnss_platform_cap {