public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Jagan Teki <jagan@amarulasolutions.com>
To: u-boot@lists.denx.de
Subject: [PATCH v3 1/5] clk: rk3399: Set empty for vopl assigned-clocks
Date: Thu,  2 Apr 2020 17:11:21 +0530	[thread overview]
Message-ID: <20200402114125.2501-2-jagan@amarulasolutions.com> (raw)
In-Reply-To: <20200402114125.2501-1-jagan@amarulasolutions.com>

During vidconsole probe, the device probe will try to
check whether the assigned clocks on that video console
node is initialized or not? and return an error if not.

But, unlike Linux U-Boot won't require to handle these
vopl assigned-clocks since core clocks are enough to
handle the video out to process.

So, mark them as empty in set_rate to satisfy clk_set_defaults
so-that probe happened properly.

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
---
Changes for v3:
- new patch

 drivers/clk/rockchip/clk_rk3399.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/clk/rockchip/clk_rk3399.c b/drivers/clk/rockchip/clk_rk3399.c
index 865b80cc0f..1f62376595 100644
--- a/drivers/clk/rockchip/clk_rk3399.c
+++ b/drivers/clk/rockchip/clk_rk3399.c
@@ -994,6 +994,13 @@ static ulong rk3399_clk_set_rate(struct clk *clk, ulong rate)
 	case DCLK_VOP1:
 		ret = rk3399_vop_set_clk(priv->cru, clk->id, rate);
 		break;
+	case ACLK_VOP1:
+	case HCLK_VOP1:
+		/**
+		 * assigned-clocks handling won't require for vopl, so
+		 * return 0 to satisfy clk_set_defaults during device probe.
+		 */
+		return 0;
 	case SCLK_DDRCLK:
 		ret = rk3399_ddr_set_clk(priv->cru, rate);
 		break;
-- 
2.17.1

  reply	other threads:[~2020-04-02 11:41 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-02 11:41 [PATCH v3 0/5] rockchip: rk3399: Fix HDMI out Jagan Teki
2020-04-02 11:41 ` Jagan Teki [this message]
2020-04-02 12:47   ` [PATCH v3 1/5] clk: rk3399: Set empty for vopl assigned-clocks Kever Yang
2020-04-02 11:41 ` [PATCH v3 2/5] video: rockchip: Fix vop modes for rk3399 Jagan Teki
2020-04-02 12:47   ` Kever Yang
2020-04-02 11:41 ` [PATCH v3 3/5] rockchip: Enable pre console " Jagan Teki
2020-04-02 12:47   ` Kever Yang
2020-04-02 11:41 ` [PATCH v3 4/5] rockchip: Enable HDMI output on rk3399 board w/ HDMI Jagan Teki
2020-04-02 12:38   ` Peter Robinson
2020-04-02 12:48   ` Kever Yang
2020-04-05 14:07   ` Manivannan Sadhasivam
2020-04-02 11:41 ` [PATCH v3 5/5] video: rockchip: Support 4K resolution for rk3399, HDMI Jagan Teki
2020-04-02 12:48   ` Kever Yang
2020-04-02 12:39 ` [PATCH v3 0/5] rockchip: rk3399: Fix HDMI out Peter Robinson
2020-04-02 13:56 ` Anatolij Gustschin
2020-04-02 14:28   ` Kever Yang
2020-04-02 14:42     ` Anatolij Gustschin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200402114125.2501-2-jagan@amarulasolutions.com \
    --to=jagan@amarulasolutions.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox