summaryrefslogtreecommitdiff
path: root/drivers/clk/imx/clk-imx8qxp.c
diff options
context:
space:
mode:
authorRanjani Vaidyanathan <Ranjani.Vaidyanathan@nxp.com>2017-07-27 15:11:20 -0500
committerLeonard Crestez <leonard.crestez@nxp.com>2018-08-24 12:41:33 +0300
commit22b584bf3a468c9def110c399f79cc4753a5f784 (patch)
tree93dfb2afdaea7bbc0ad2053634b8b7fb34cc7228 /drivers/clk/imx/clk-imx8qxp.c
parent31562cdf202afa732f3e54745007b1033f66c323 (diff)
MLK16091-1 clks:imx8qx - Add VPU encoder and decoder clocks
VPU encoder and decoder clocks can be enabled/disabled by Linux on iMX8QX. Signed-off-by: Ranjani Vaidyanathan <Ranjani.Vaidyanathan@nxp.com>
Diffstat (limited to 'drivers/clk/imx/clk-imx8qxp.c')
-rw-r--r--drivers/clk/imx/clk-imx8qxp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/clk/imx/clk-imx8qxp.c b/drivers/clk/imx/clk-imx8qxp.c
index 2383092fb4db..64e309766e44 100644
--- a/drivers/clk/imx/clk-imx8qxp.c
+++ b/drivers/clk/imx/clk-imx8qxp.c
@@ -528,6 +528,10 @@ static int imx8qxp_clk_probe(struct platform_device *pdev)
clks[IMX8QXP_AUD_ACM_AUD_REC_CLK0_CLK] = imx_clk_gate_scu("aud_acm_aud_rec_clk0_clk", "aud_acm_aud_rec_clk0_div", SC_R_AUDIO_PLL_0, SC_PM_CLK_MISC1, (void __iomem *)(AUD_REC_CLK0_LPCG), 0, 0);
clks[IMX8QXP_AUD_ACM_AUD_REC_CLK1_CLK] = imx_clk_gate_scu("aud_acm_aud_rec_clk1_clk", "aud_acm_aud_rec_clk1_div", SC_R_AUDIO_PLL_1, SC_PM_CLK_MISC1, (void __iomem *)(AUD_REC_CLK1_LPCG), 0, 0);
+ /* VPU */
+ clks[IMX8QXP_VPU_ENC_CLK] = imx_clk_gate_scu("vpu_enc_clk", "dummy", SC_R_VPU_ENC, SC_PM_CLK_PER, NULL, 0, 0);
+ clks[IMX8QXP_VPU_DEC_CLK] = imx_clk_gate_scu("vpu_dec_clk", "dummy", SC_R_VPU_DEC, SC_PM_CLK_PER, NULL, 0, 0);
+
np_acm = of_find_compatible_node(NULL, NULL, "nxp,imx8qm-acm");
base_acm = of_iomap(np_acm, 0);
WARN_ON(!base_acm);