summaryrefslogtreecommitdiff
path: root/drivers/clk
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-07-17 15:23:17 -0600
committerSimon Glass <sjg@chromium.org>2016-07-25 20:46:45 -0600
commitc3aad6f65b3fb574e1a73c686d8793dee00c5819 (patch)
tree9436bf465e9a3efb1464e7449db9effe2d217874 /drivers/clk
parenta617c5d3e2c22355ee9abc455bbb0b36e124a00a (diff)
downloadu-boot-imx-c3aad6f65b3fb574e1a73c686d8793dee00c5819.zip
u-boot-imx-c3aad6f65b3fb574e1a73c686d8793dee00c5819.tar.gz
u-boot-imx-c3aad6f65b3fb574e1a73c686d8793dee00c5819.tar.bz2
rockchip: Use rockchip_get_clk() to obtain the SoC clock
The current code picks the first available clock. In U-Boot proper this is the oscillator device, not the SoC clock device. As a result the HDMI display does not work. Fix this by calling rockchip_get_clk() instead. Fixes: 135aa950 (clk: convert API to match reset/mailbox style) Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Anatolij Gustschin <agust@denx.de>
Diffstat (limited to 'drivers/clk')
-rw-r--r--drivers/clk/clk_rk3288.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/clk_rk3288.c b/drivers/clk/clk_rk3288.c
index a41cf8b..e00feb0 100644
--- a/drivers/clk/clk_rk3288.c
+++ b/drivers/clk/clk_rk3288.c
@@ -145,7 +145,7 @@ void *rockchip_get_cru(void)
struct udevice *dev;
int ret;
- ret = uclass_get_device(UCLASS_CLK, 0, &dev);
+ ret = rockchip_get_clk(&dev);
if (ret)
return ERR_PTR(ret);