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

Commit 19742543 authored by Tatenda Chipeperekwa's avatar Tatenda Chipeperekwa
Browse files

clk: qcom: make DisplayPort PLL modules configurable



Add a separate Kconfig flag to make DisplayPort PLL modules
configurable.

Change-Id: Iae2c3abdf5706971f8e1ba443772d4f4075bd4f8
Signed-off-by: default avatarTatenda Chipeperekwa <tatendac@codeaurora.org>
parent 9d2c3982
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -7,3 +7,11 @@ config QCOM_MDSS_PLL
	It provides support for DSI, eDP and HDMI interface pll programming on MDSS
	hardware. It also handles the pll specific resources and turn them on/off when
	mdss pll client tries to enable/disable pll clocks.

config QCOM_MDSS_DP_PLL
	bool "MDSS DisplayPort PLL programming"
	depends on QCOM_MDSS_PLL
	default n
	help
	This flag enables the modules for DisplayPort (DP) PLL programming and is
	required for all targets that support DP.
+6 −5
Original line number Diff line number Diff line
@@ -3,13 +3,14 @@
obj-$(CONFIG_QCOM_MDSS_PLL) += mdss-pll-util.o
obj-$(CONFIG_QCOM_MDSS_PLL) += mdss-pll.o
obj-$(CONFIG_QCOM_MDSS_PLL) += mdss-dsi-pll-10nm.o
obj-$(CONFIG_QCOM_MDSS_PLL) += mdss-dp-pll-10nm.o
obj-$(CONFIG_QCOM_MDSS_PLL) += mdss-dp-pll-10nm-util.o
obj-$(CONFIG_QCOM_MDSS_PLL) += mdss-dsi-pll-7nm.o
obj-$(CONFIG_QCOM_MDSS_PLL) += mdss-dp-pll-7nm.o
obj-$(CONFIG_QCOM_MDSS_PLL) += mdss-dp-pll-7nm-util.o
obj-$(CONFIG_QCOM_MDSS_PLL) += mdss-dsi-pll-28lpm.o
obj-$(CONFIG_QCOM_MDSS_PLL) += mdss-dsi-pll-28nm-util.o
obj-$(CONFIG_QCOM_MDSS_PLL) += mdss-dsi-pll-14nm.o
obj-$(CONFIG_QCOM_MDSS_PLL) += mdss-dsi-pll-14nm-util.o
obj-$(CONFIG_QCOM_MDSS_PLL) += mdss-dp-pll-14nm.o

obj-$(CONFIG_QCOM_MDSS_DP_PLL) += mdss-dp-pll-7nm.o \
	mdss-dp-pll-7nm-util.o \
	mdss-dp-pll-10nm.o \
	mdss-dp-pll-10nm-util.o \
	mdss-dp-pll-14nm.o \
+20 −1
Original line number Diff line number Diff line
/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright (c) 2016-2018, The Linux Foundation. All rights reserved.
 * Copyright (c) 2016-2019, The Linux Foundation. All rights reserved.
 */

#ifndef __MDSS_DP_PLL_H
@@ -19,6 +19,7 @@ static inline struct dp_pll_vco_clk *to_dp_vco_hw(struct clk_hw *hw)
	return container_of(hw, struct dp_pll_vco_clk, hw);
}

#ifdef CONFIG_QCOM_MDSS_DP_PLL
int dp_pll_clock_register_14nm(struct platform_device *pdev,
				struct mdss_pll_resources *pll_res);

@@ -27,5 +28,23 @@ int dp_pll_clock_register_10nm(struct platform_device *pdev,

int dp_pll_clock_register_7nm(struct platform_device *pdev,
				struct mdss_pll_resources *pll_res);
#else
static inline int dp_pll_clock_register_14nm(struct platform_device *pdev,
				struct mdss_pll_resources *pll_res)
{
	return 0;
}

static inline int dp_pll_clock_register_10nm(struct platform_device *pdev,
				struct mdss_pll_resources *pll_res)
{
	return 0;
}

static inline int dp_pll_clock_register_7nm(struct platform_device *pdev,
				struct mdss_pll_resources *pll_res)
{
	return 0;
}
#endif
#endif /* __MDSS_DP_PLL_H */