summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDongjin Kim <tobetter@gmail.com>2022-01-27 10:36:11 +0300
committerDongjin Kim <tobetter@gmail.com>2022-01-27 10:36:20 +0300
commit361a4cf0092448bfbebbbdee50ac1a4aa3897436 (patch)
tree3845276e743a796c1382bce297866ca4af24fee9
parent67023fa9ac2c405c77f2f3945259f0365d5b7b3b (diff)
downloadu-boot-361a4cf0092448bfbebbbdee50ac1a4aa3897436.tar.xz
ODROID-M1: add not to apply display fixup
When a device tree have a bool property 'disable-vop2-fixup', U-Boot wont' apply a device tree fixup for a display device. chosen { disable-vop2-fixup; ... }; Signed-off-by: Dongjin Kim <tobetter@gmail.com> Change-Id: I728b6b45799e5ca690693fa074df8fea1f9f65c2
-rw-r--r--drivers/video/drm/rockchip_vop2.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/video/drm/rockchip_vop2.c b/drivers/video/drm/rockchip_vop2.c
index 58bddfc03f..c00fd0bae5 100644
--- a/drivers/video/drm/rockchip_vop2.c
+++ b/drivers/video/drm/rockchip_vop2.c
@@ -1975,6 +1975,12 @@ static int rockchip_vop2_fixup_dts(struct display_state *state, void *blob)
int vp_id = 0;
int cursor_plane_id = -1;
+#ifdef CONFIG_TARGET_ODROID_M1
+ int chosen = fdt_path_offset(working_fdt, "/chosen");
+ if (fdt_getprop(working_fdt, chosen, "disable-vop2-fixup", NULL))
+ return 0;
+#endif
+
if (vop_fix_dts)
return 0;