All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [U-Boot] [PATCH 02/20] rockchip: video: Correct VOP clock selection
@ 2021-06-22 15:50 SHAHZAD ALI
  0 siblings, 0 replies; 2+ messages in thread
From: SHAHZAD ALI @ 2021-06-22 15:50 UTC (permalink / raw)
  To: u-boot



^ permalink raw reply	[flat|nested] 2+ messages in thread

* [U-Boot] [PATCH 02/20] rockchip: video: Correct VOP clock selection
  2016-10-31 20:39 [U-Boot] [PATCH 00/20] rockchip: Add support for Asus Chromebit Simon Glass
@ 2016-10-31 20:39 ` Simon Glass
  0 siblings, 0 replies; 2+ messages in thread
From: Simon Glass @ 2016-10-31 20:39 UTC (permalink / raw)
  To: u-boot

This code incorrectly uses the oscillator. It should use the clock
selected in the device tree.

Signed-off-by: Simon Glass <sjg@chromium.org>
Fixes: 135aa95 (clk: convert API to match reset/mailbox style)
---

 drivers/video/rockchip/rk_vop.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/drivers/video/rockchip/rk_vop.c b/drivers/video/rockchip/rk_vop.c
index c6d88d9..130dace 100644
--- a/drivers/video/rockchip/rk_vop.c
+++ b/drivers/video/rockchip/rk_vop.c
@@ -195,7 +195,6 @@ int rk_display_init(struct udevice *dev, ulong fbbase,
 	struct udevice *disp;
 	int ret, remote, i, offset;
 	struct display_plat *disp_uc_plat;
-	struct udevice *dev_clk;
 	struct clk clk;
 
 	vop_id = fdtdec_get_int(blob, ep_node, "reg", -1);
@@ -238,11 +237,7 @@ int rk_display_init(struct udevice *dev, ulong fbbase,
 		return ret;
 	}
 
-	ret = rockchip_get_clk(&dev_clk);
-	if (!ret) {
-		clk.id = DCLK_VOP0 + remote_vop_id;
-		ret = clk_request(dev_clk, &clk);
-	}
+	ret = clk_get_by_index(dev, 1, &clk);
 	if (!ret)
 		ret = clk_set_rate(&clk, timing.pixelclock.typ);
 	if (ret) {
-- 
2.8.0.rc3.226.g39d4020

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-06-22 21:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-22 15:50 [U-Boot] [PATCH 02/20] rockchip: video: Correct VOP clock selection SHAHZAD ALI
  -- strict thread matches above, loose matches on Subject: below --
2016-10-31 20:39 [U-Boot] [PATCH 00/20] rockchip: Add support for Asus Chromebit Simon Glass
2016-10-31 20:39 ` [U-Boot] [PATCH 02/20] rockchip: video: Correct VOP clock selection Simon Glass

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.