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>
This commit is contained in:
parent
d16d37bcd4
commit
c3d31af6d6
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user