drm/amd/display: Allow multiple instance of DTO regs
authorTony Cheng <tony.cheng@amd.com>
Thu, 22 Dec 2016 19:54:50 +0000 (14:54 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 21:07:25 +0000 (17:07 -0400)
Signed-off-by: Tony Cheng <tony.cheng@amd.com>
Reviewed-by: Jordan Lazare <Jordan.Lazare@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.h

index 8ee0071..28984c7 100644 (file)
@@ -76,9 +76,13 @@ struct dce110_clk_src_regs {
        uint32_t RESYNC_CNTL;
        uint32_t PIXCLK_RESYNC_CNTL;
        uint32_t PLL_CNTL;
-       uint32_t PHASE;
-       uint32_t MODULO;
-       uint32_t PIXEL_RATE_CNTL;
+
+       /* below are for DTO.
+        * todo: should probably use different struct to not waste space
+        */
+       uint32_t PHASE[4];
+       uint32_t MODULO[4];
+       uint32_t PIXEL_RATE_CNTL[4];
 };
 
 struct dce110_clk_src {