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

Commit e7a5888d authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "cnss: Add support to export UART availability"

parents 4d0b4f89 18600d4f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -24,6 +24,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
@@ -322,6 +322,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 {