diff options
author | Kever Yang <kever.yang@rock-chips.com> | 2020-02-19 09:45:37 +0800 |
---|---|---|
committer | Kever Yang <kever.yang@rock-chips.com> | 2020-04-28 18:05:08 +0800 |
commit | c3d31af6d6c2cd63d4de173a00a72c7f009e6443 (patch) | |
tree | 1fb876c0f952a111b9c2b8831b21ea7474fcaadc /drivers | |
parent | d16d37bcd4087b8ea0f66cb76a73edad182d151a (diff) | |
download | u-boot-c3d31af6d6c2cd63d4de173a00a72c7f009e6443.tar.gz |
rockchip: video: Use ofnode_decode_display_timing() to parse timing
Use ofnode_decode_display_timing() instead of
fdtdec_decode_display_timing() to parse display timing, so that we can
support live DT.
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/video/rockchip/rk_lvds.c | 3 | ||||
-rw-r--r-- | drivers/video/rockchip/rk_mipi.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/drivers/video/rockchip/rk_lvds.c b/drivers/video/rockchip/rk_lvds.c index 79e24baf53..404af7eb6e 100644 --- a/drivers/video/rockchip/rk_lvds.c +++ b/drivers/video/rockchip/rk_lvds.c @@ -161,8 +161,7 @@ int rk_lvds_enable(struct udevice *dev, int panel_bpp, int rk_lvds_read_timing(struct udevice *dev, struct display_timing *timing) { - if (fdtdec_decode_display_timing - (gd->fdt_blob, dev_of_offset(dev), 0, timing)) { + if (ofnode_decode_display_timing(dev_ofnode(dev), 0, timing)) { debug("%s: Failed to decode display timing\n", __func__); return -EINVAL; } diff --git a/drivers/video/rockchip/rk_mipi.c b/drivers/video/rockchip/rk_mipi.c index f9280e8607..a77bdfd24d 100644 --- a/drivers/video/rockchip/rk_mipi.c +++ b/drivers/video/rockchip/rk_mipi.c @@ -29,8 +29,7 @@ int rk_mipi_read_timing(struct udevice *dev, { int ret; - ret = fdtdec_decode_display_timing(gd->fdt_blob, dev_of_offset(dev), - 0, timing); + ret = ofnode_decode_display_timing(dev_ofnode(dev), 0, timing); if (ret) { debug("%s: Failed to decode display timing (ret=%d)\n", __func__, ret); |