From: Svyatoslav Ryhel Date: Sun, 23 Feb 2025 09:27:09 +0000 (+0200) Subject: video: tegra20: dc: get DSI/HDMI clock parent if internal DSI/HDMI is used X-Git-Tag: v2025.07-rc1~18^2~12^2~42 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6fb58c1f7a4ad6ce8dfba93ce46978d0c6191692;p=pandora-u-boot.git video: tegra20: dc: get DSI/HDMI clock parent if internal DSI/HDMI is used If device uses native Tegra DSI or HDMI, DC clock MUST use the same parent as DSI/HDMI clock uses. Hence remove need in device tree configuration and satisfy this condition by default. Signed-off-by: Svyatoslav Ryhel --- diff --git a/drivers/video/tegra20/tegra-dc.c b/drivers/video/tegra20/tegra-dc.c index 775043bb1fe..904d0d205f6 100644 --- a/drivers/video/tegra20/tegra-dc.c +++ b/drivers/video/tegra20/tegra-dc.c @@ -524,6 +524,13 @@ exit: return ret; } + priv->clk_parent = devm_clk_get(priv->bridge, "parent"); + if (IS_ERR(priv->clk_parent)) { + log_debug("%s: Could not get DC clock parent from DSI/HDMI: %ld\n", + __func__, PTR_ERR(priv->clk_parent)); + return PTR_ERR(priv->clk_parent); + } + dc_plat = dev_get_plat(priv->bridge); /* Fill the platform data for internal devices */