|
27 | 27 | #include "sde_plane.h" |
28 | 28 | #include "dsi_panel.h" |
29 | 29 |
|
30 | | -#ifdef CONFIG_DRM_MSM_KCAL_CTRL |
31 | | -#include "sde_hw_kcal_ctrl.h" |
32 | | -#endif |
33 | | - |
34 | 30 | struct sde_cp_node { |
35 | 31 | u32 property_id; |
36 | 32 | u32 prop_flags; |
@@ -1033,12 +1029,6 @@ void sde_cp_crtc_install_properties(struct drm_crtc *crtc) |
1033 | 1029 |
|
1034 | 1030 | } |
1035 | 1031 |
|
1036 | | -#ifdef CONFIG_DRM_MSM_KCAL_CTRL |
1037 | | -struct drm_crtc *g_pcc_crtc; |
1038 | | -struct drm_property *g_pcc_property; |
1039 | | -uint64_t g_pcc_val; |
1040 | | -#endif |
1041 | | - |
1042 | 1032 | int sde_cp_crtc_set_property(struct drm_crtc *crtc, |
1043 | 1033 | struct drm_property *property, |
1044 | 1034 | uint64_t val) |
@@ -1072,15 +1062,6 @@ int sde_cp_crtc_set_property(struct drm_crtc *crtc, |
1072 | 1062 | goto exit; |
1073 | 1063 | } |
1074 | 1064 |
|
1075 | | -#ifdef CONFIG_DRM_MSM_KCAL_CTRL |
1076 | | - if (prop_node->feature == SDE_CP_CRTC_DSPP_PCC) { |
1077 | | - pr_info("%s pcc kad kcal\n",__func__); |
1078 | | - g_pcc_crtc = crtc; |
1079 | | - g_pcc_property = property; |
1080 | | - g_pcc_val = val; |
1081 | | - } |
1082 | | -#endif |
1083 | | - |
1084 | 1065 | /** |
1085 | 1066 | * sde_crtc is virtual ensure that hardware has been attached to the |
1086 | 1067 | * crtc. Check LM and dspp counts based on whether feature is a |
@@ -1141,16 +1122,6 @@ int sde_cp_crtc_set_property(struct drm_crtc *crtc, |
1141 | 1122 | return ret; |
1142 | 1123 | } |
1143 | 1124 |
|
1144 | | -#ifdef CONFIG_DRM_MSM_KCAL_CTRL |
1145 | | -void kcal_force_update(void) { |
1146 | | - if (g_pcc_crtc) { |
1147 | | - pr_info("%s force kad kcal\n",__func__); |
1148 | | - sde_cp_crtc_set_property(g_pcc_crtc, g_pcc_property, g_pcc_val); |
1149 | | - } |
1150 | | -} |
1151 | | -EXPORT_SYMBOL(kcal_force_update); |
1152 | | -#endif |
1153 | | - |
1154 | 1125 | int sde_cp_crtc_get_property(struct drm_crtc *crtc, |
1155 | 1126 | struct drm_property *property, uint64_t *val) |
1156 | 1127 | { |
|
0 commit comments