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

Commit ed7a74e8 authored by Amir Vajid's avatar Amir Vajid
Browse files

PM / devfreq: memlat: add support for shared core-dev tables



A core-dev table is explicity defined in each memlat device
today. However, some devices may want to share the same core-dev
table so add support for parsing a shared core-dev table that
can be used across multiple memlat devices.

Change-Id: I5ee0d439c199a6414d2adaeed8328f3dc99b2a84
Signed-off-by: default avatarAmir Vajid <avajid@codeaurora.org>
parent d5fb75a0
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -489,6 +489,9 @@ static struct memlat_node *register_common(struct device *dev,
	if (hw->get_child_of_node)
		of_node = hw->get_child_of_node(dev);

	if (of_parse_phandle(of_node, "qcom,core-dev-table", 0))
		of_node = of_parse_phandle(of_node, "qcom,core-dev-table", 0);

	hw->freq_map = init_core_dev_map(dev, of_node, "qcom,core-dev-table");

	if (!hw->freq_map) {