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

Commit 54823af9 authored by Georgi Djakov's avatar Georgi Djakov Committed by Stephen Boyd
Browse files

clk: qcom: Always add factor clock for xo clocks



Currently the RPM/RPM-SMD clock drivers do not register the xo clocks,
so we should always add factor clock. When we later add xo clocks support
into the drivers, we should update this function to skip registration.
By doing so we avoid any DT dependencies.

Signed-off-by: default avatarGeorgi Djakov <georgi.djakov@linaro.org>
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
parent 1001354c
Loading
Loading
Loading
Loading
+6 −9
Original line number Original line Diff line number Diff line
@@ -153,15 +153,12 @@ int qcom_cc_register_board_clk(struct device *dev, const char *path,
			       const char *name, unsigned long rate)
			       const char *name, unsigned long rate)
{
{
	bool add_factor = true;
	bool add_factor = true;
	struct device_node *node;


	/* The RPM clock driver will add the factor clock if present */
	/*
	if (IS_ENABLED(CONFIG_QCOM_RPMCC)) {
	 * TODO: The RPM clock driver currently does not support the xo clock.
		node = of_find_compatible_node(NULL, NULL, "qcom,rpmcc");
	 * When xo is added to the RPM clock driver, we should change this
		if (of_device_is_available(node))
	 * function to skip registration of xo factor clocks.
			add_factor = false;
	 */
		of_node_put(node);
	}


	return _qcom_cc_register_board_clk(dev, path, name, rate, add_factor);
	return _qcom_cc_register_board_clk(dev, path, name, rate, add_factor);
}
}