Pnangn:Enable FPS overheat protection

Enable Egistec feature
Support overheat protection

Change-Id: Ice0e80ff55d3141f489996acb2c3b1504c4f165f
Reviewed-on: https://gerrit.mot.com/2488250
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: liujian <liujian24@lenovo.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
This commit is contained in:
liujian24 authored and liujian committed 2023-01-16 00:30:16 -06:00
1 parent 3a69eb0e1a
commit 632bd4f7f5
3 files changed
+9

No files matched your search

@@ -11,6 +11,10 @@ ifeq ($(EGIS_FPS_PANEL_NOTIFICATIONS),true)
KERNEL_CFLAGS += CONFIG_EGIS_PANEL_NOTIFICATIONS=y
endif
ifeq ($(EGIS_FPS_DRM_PANEL_NOTIFICATIONS),true)
KERNEL_CFLAGS += CONFIG_EGIS_DRM_PANEL_NOTIFICATIONS=y
endif
include $(CLEAR_VARS)
LOCAL_MODULE := ets_bix_mmi.ko
LOCAL_MODULE_TAGS := optional
+3
View File
@@ -7,6 +7,9 @@ ifneq ($(filter m y,$(CONFIG_EGIS_PANEL_NOTIFICATIONS)),)
EXTRA_CFLAGS += -DCONFIG_PANEL_NOTIFICATIONS
endif
ifneq ($(filter m y,$(CONFIG_EGIS_DRM_PANEL_NOTIFICATIONS)),)
EXTRA_CFLAGS += -DCONFIG_DRM_PANEL_NOTIFICATIONS
endif
#ifneq ($(filter m y,$(CONFIG_ET721_FOD)),)
# EXTRA_CFLAGS += -DET721_FOD
#endif
@@ -1509,6 +1509,7 @@ int egisfp_probe(struct platform_device *pdev)
#elif defined(CONFIG_DRM_PANEL_NOTIFICATIONS) && (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0))
egis_dev->notifier = egisfp_noti_block;
DEBUG_PRINT(" %s : register drm_panel_notifier_register\n", __func__);
if (egis_dev->active_panel) {
DEBUG_PRINT(" %s : register drm_panel_notifier \n", __func__);
status = drm_panel_notifier_register(egis_dev->active_panel, &egis_dev->notifier);
@@ -1518,6 +1519,7 @@ int egisfp_probe(struct platform_device *pdev)
egis_dev->call_back_registered = 1;
}
#else
DEBUG_PRINT(" %s : register ets_fb_register_client\n", __func__);
egis_dev->notifier = egisfp_noti_block;
status = ets_fb_register_client(&egis_dev->notifier);
if (status)