drm/i915/vdsc: Add function to write in PPS register
authorSuraj Kandpal <suraj.kandpal@intel.com>
Mon, 28 Aug 2023 05:42:58 +0000 (11:12 +0530)
committerAnimesh Manna <animesh.manna@intel.com>
Tue, 5 Sep 2023 09:12:44 +0000 (14:42 +0530)
commit265bb1cbe3d6907fe8db885a8e6d57ff4c18daa4
treee628031ab894453ccbe0e96e9d73f24d4c3e6feb
parentbd077259d0a9c9bf453e7e9751bf41f1996e6585
drm/i915/vdsc: Add function to write in PPS register

Now that we have a function that reads any PPS register based
on intel_dsc_pps enum provided lets create a function that can
write on any PPS.

--v2
-Changes need as PPS enum was dropped
-Remove duplicated code in intel_dsc_write_pps_reg [Jani]

--v3
-Use dsc_split instead of num_vdsc_instances [Ankit]

--v5
-Changes to implement the new dsc_reg array variable passing
[Ankit]

--v7
-Pass no of vdsc instances to get_pps_reg [Ankit]

--v8
-No need for dsc_reg dynamic allocation [Jani]
-Change function to void as no return needs to be sent back

--v9
-Send ARRAY_SIZE(dsc_reg) instead of vdsc_per_pipe [Ankit]

Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Signed-off-by: Animesh Manna <animesh.manna@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230828054300.560559-6-suraj.kandpal@intel.com
drivers/gpu/drm/i915/display/intel_vdsc.c