disp: msm: specify default value for msm enum property

Allow caller to specify the default value of the enum
property while installing with msm prop layer. It is
not always the case that the default value to be the
first entry.

Change-Id: Ie0bb1ad7479e3e07810b3d817fdf618b1935858c
Signed-off-by: Jeykumar Sankaran <jsanka@codeaurora.org>
This commit is contained in:
Jeykumar Sankaran
2020-05-27 18:20:13 -07:00
부모 fdf88f7853
커밋 b87b13690b
6개의 변경된 파일23개의 추가작업 그리고 20개의 파일을 삭제

파일 보기

@@ -3709,7 +3709,7 @@ static void _sde_plane_install_properties(struct drm_plane *plane,
else
msm_property_install_enum(&psde->property_info,
"multirect_mode", 0x0, 0, e_multirect_mode,
ARRAY_SIZE(e_multirect_mode),
ARRAY_SIZE(e_multirect_mode), 0,
PLANE_PROP_MULTIRECT_MODE);
if (psde->features & BIT(SDE_SSPP_EXCL_RECT))
@@ -3719,10 +3719,11 @@ static void _sde_plane_install_properties(struct drm_plane *plane,
sde_plane_rot_install_properties(plane, catalog);
msm_property_install_enum(&psde->property_info, "blend_op", 0x0, 0,
e_blend_op, ARRAY_SIZE(e_blend_op), PLANE_PROP_BLEND_OP);
e_blend_op, ARRAY_SIZE(e_blend_op), 0, PLANE_PROP_BLEND_OP);
msm_property_install_enum(&psde->property_info, "src_config", 0x0, 1,
e_src_config, ARRAY_SIZE(e_src_config), PLANE_PROP_SRC_CONFIG);
e_src_config, ARRAY_SIZE(e_src_config), 0,
PLANE_PROP_SRC_CONFIG);
if (psde->pipe_hw->ops.setup_solidfill)
msm_property_install_range(&psde->property_info, "color_fill",
@@ -3748,7 +3749,7 @@ static void _sde_plane_install_properties(struct drm_plane *plane,
msm_property_install_enum(&psde->property_info, "fb_translation_mode",
0x0, 0, e_fb_translation_mode,
ARRAY_SIZE(e_fb_translation_mode),
ARRAY_SIZE(e_fb_translation_mode), 0,
PLANE_PROP_FB_TRANSLATION_MODE);
kfree(info);