projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4ab3d7
)
rockchip: video: Correct VOP clock selection
author
Simon Glass
<sjg@chromium.org>
Sun, 13 Nov 2016 21:21:56 +0000
(14:21 -0700)
committer
Simon Glass
<sjg@chromium.org>
Sat, 26 Nov 2016 00:59:30 +0000
(17:59 -0700)
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
patch
|
blob
|
history
diff --git
a/drivers/video/rockchip/rk_vop.c
b/drivers/video/rockchip/rk_vop.c
index c6d88d9225d7c9fa66cf46208b7eb85e01b09d50..130dace74009e183a5b834dd5fed514818e3fa27 100644
(file)
--- 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) {