drm/amd/display: Add SMU version field to clk_mgr_internal
authorFatemeh Darbehani <fatemeh.darbehani@amd.com>
Wed, 10 Jul 2019 14:34:31 +0000 (10:34 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 18 Jul 2019 19:27:26 +0000 (14:27 -0500)
For some platforms, we need to know SMU version for driver/SMU
compatibility. This change adds that field.

Signed-off-by: Fatemeh Darbehani <fatemeh.darbehani@amd.com>
Reviewed-by: Yongqiang Sun <yongqiang.sun@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/inc/hw/clk_mgr_internal.h

index 3c105124dcddb14cada422f15243b9f8d37aef22..4b5505fa980ceea0dd617d372397a73c6cc008c5 100644 (file)
@@ -191,6 +191,7 @@ struct state_dependent_clocks {
 
 struct clk_mgr_internal {
        struct clk_mgr base;
+       int smu_ver;
        struct pp_smu_funcs *pp_smu;
        struct clk_mgr_internal_funcs *funcs;