Skip to content

Commit dec3963

Browse files
Sowjanya Komatinenithierryreding
authored andcommitted
clk: tegra: Add Tegra210 CSI TPG clock gate
Tegra210 CSI hardware internally uses PLLD for internal test pattern generator logic. PLLD_BASE register in CAR has a bit CSI_CLK_SOURCE to enable PLLD out to CSI during TPG mode. This patch adds this CSI TPG clock gate to Tegra210 clock driver to allow Tegra video driver to ungate CSI TPG clock during TPG mode and gate during non TPG mode. Acked-by: Stephen Boyd <[email protected]> Signed-off-by: Sowjanya Komatineni <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent 4232985 commit dec3963

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

drivers/clk/tegra/clk-tegra210.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3076,6 +3076,13 @@ static __init void tegra210_periph_clk_init(struct device_node *np,
30763076
periph_clk_enb_refcnt);
30773077
clks[TEGRA210_CLK_DSIB] = clk;
30783078

3079+
/* csi_tpg */
3080+
clk = clk_register_gate(NULL, "csi_tpg", "pll_d",
3081+
CLK_SET_RATE_PARENT, clk_base + PLLD_BASE,
3082+
23, 0, &pll_d_lock);
3083+
clk_register_clkdev(clk, "csi_tpg", NULL);
3084+
clks[TEGRA210_CLK_CSI_TPG] = clk;
3085+
30793086
/* la */
30803087
clk = tegra_clk_register_periph("la", la_parents,
30813088
ARRAY_SIZE(la_parents), &tegra210_la, clk_base,

0 commit comments

Comments
 (0)