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

Commit 7f9b17b1 authored by Komal Bajaj's avatar Komal Bajaj Committed by Mukesh Ojha
Browse files

soc: qcom: Add support to enable eud if enabled in xbl



If eud driver is enabled in xbl, there was a explicit need
to enable eud from hlos side also. This change enables eud
if eud_mode_manager2 register is set, and it keeps the check
after tcsr register property check.

Change-Id: I4f99d2fddb36f196514296302c67b75e73545632
Signed-off-by: default avatarKomal Bajaj <kbajaj@codeaurora.org>
Signed-off-by: default avatarMukesh Ojha <mojha@codeaurora.org>
parent 12ac024c
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -638,9 +638,6 @@ static int msm_eud_probe(struct platform_device *pdev)
		}

		chip->eud_mode_mgr2_phys_base = res->start;

		if (check_eud_mode_mgr2(chip))
			enable = 1;
	}

	chip->need_phy_clk_vote = of_property_read_bool(pdev->dev.of_node,
@@ -709,6 +706,9 @@ static int msm_eud_probe(struct platform_device *pdev)
		}
	}

	if (chip->secure_eud_en && check_eud_mode_mgr2(chip))
		enable = 1;

	ret = uart_add_one_port(&eud_uart_driver, port);
	if (ret) {
		dev_err(chip->dev, "failed to add uart port!\n");