clk: qcom: mdss: Omit support for unused PLLs

This kernel won't be used on devices with 7nm, 14nm, or 28nm PLLs nor
will it be used with the 10nm DisplayPort PLL since our only display is
connected via DSI.

Don't compile support for PLLs we won't use.

Signed-off-by: Danny Lin <danny@kdrag0n.dev>
[dereference23: Adapted for atoll]
Signed-off-by: Alexander Winkowski <dereference23@outlook.com>
fourteen
Danny Lin 5 years ago committed by Jenna
parent 0ce57e422b
commit 3012ced790
  1. 13
      drivers/clk/qcom/mdss/Makefile
  2. 2
      drivers/clk/qcom/mdss/mdss-pll.c

@ -1,16 +1,3 @@
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_PLL) += mdss-hdmi-pll-28lpm.o
obj-$(CONFIG_QCOM_MDSS_PLL) += mdss-dsi-pll-12nm.o
obj-$(CONFIG_QCOM_MDSS_PLL) += mdss-dsi-pll-12nm-util.o

@ -179,6 +179,7 @@ static int mdss_pll_clock_register(struct platform_device *pdev,
case MDSS_DSI_PLL_10NM:
rc = dsi_pll_clock_register_10nm(pdev, pll_res);
break;
#if 0
case MDSS_DP_PLL_10NM:
rc = dp_pll_clock_register_10nm(pdev, pll_res);
break;
@ -204,6 +205,7 @@ static int mdss_pll_clock_register(struct platform_device *pdev,
case MDSS_DSI_PLL_12NM:
rc = dsi_pll_clock_register_12nm(pdev, pll_res);
break;
#endif
case MDSS_UNKNOWN_PLL:
default:
rc = -EINVAL;

Loading…
Cancel
Save