Lines Matching +full:pll +full:-

1 // SPDX-License-Identifier: GPL-2.0-only
3 * HDMI PLL
5 * Copyright (C) 2013 Texas Instruments Incorporated - https://www.ti.com/
23 void hdmi_pll_dump(struct hdmi_pll_data *pll, struct seq_file *s) in hdmi_pll_dump() argument
25 #define DUMPPLL(r) seq_printf(s, "%-35s %08x\n", #r,\ in hdmi_pll_dump()
26 hdmi_read_reg(pll->base, r)) in hdmi_pll_dump()
41 struct hdmi_pll_data *pll = container_of(dsspll, struct hdmi_pll_data, pll); in hdmi_pll_enable() local
42 struct hdmi_wp_data *wp = pll->wp; in hdmi_pll_enable()
45 r = pm_runtime_get_sync(&pll->pdev->dev); in hdmi_pll_enable()
59 struct hdmi_pll_data *pll = container_of(dsspll, struct hdmi_pll_data, pll); in hdmi_pll_disable() local
60 struct hdmi_wp_data *wp = pll->wp; in hdmi_pll_disable()
67 r = pm_runtime_put_sync(&pll->pdev->dev); in hdmi_pll_disable()
68 WARN_ON(r < 0 && r != -ENOSYS); in hdmi_pll_disable()
132 struct dss_pll *pll = &hpll->pll; in hdmi_init_pll_data() local
136 clk = devm_clk_get(&pdev->dev, "sys_clk"); in hdmi_init_pll_data()
142 pll->name = "hdmi"; in hdmi_init_pll_data()
143 pll->id = DSS_PLL_HDMI; in hdmi_init_pll_data()
144 pll->base = hpll->base; in hdmi_init_pll_data()
145 pll->clkin = clk; in hdmi_init_pll_data()
147 if (hpll->wp->version == 4) in hdmi_init_pll_data()
148 pll->hw = &dss_omap4_hdmi_pll_hw; in hdmi_init_pll_data()
150 pll->hw = &dss_omap5_hdmi_pll_hw; in hdmi_init_pll_data()
152 pll->ops = &hdmi_pll_ops; in hdmi_init_pll_data()
154 r = dss_pll_register(dss, pll); in hdmi_init_pll_data()
162 struct hdmi_pll_data *pll, struct hdmi_wp_data *wp) in hdmi_pll_init() argument
166 pll->pdev = pdev; in hdmi_pll_init()
167 pll->wp = wp; in hdmi_pll_init()
169 pll->base = devm_platform_ioremap_resource_byname(pdev, "pll"); in hdmi_pll_init()
170 if (IS_ERR(pll->base)) in hdmi_pll_init()
171 return PTR_ERR(pll->base); in hdmi_pll_init()
173 r = hdmi_init_pll_data(dss, pdev, pll); in hdmi_pll_init()
175 DSSERR("failed to init HDMI PLL\n"); in hdmi_pll_init()
184 struct dss_pll *pll = &hpll->pll; in hdmi_pll_uninit() local
186 dss_pll_unregister(pll); in hdmi_pll_uninit()