1
0
Fork 0

pt: fb blanking configurable in devtree

Add an optional  device tree parameter
  parade,fb_blanking_disabled

This parameter controls the blanking notifier.
If the parameter is set in the device tree,
the parade device will NOT change its state
according to the state of the framebuffer
device.
zero-sugar
Michal Koziel 2021-04-12 08:35:57 +02:00 committed by mkemlogic
parent 8749e3f90c
commit c799511f3f
3 changed files with 6 additions and 1 deletions

View File

@ -17127,7 +17127,9 @@ skip_enum:
#ifdef CONFIG_HAS_EARLYSUSPEND
pt_setup_early_suspend(cd);
#elif defined(CONFIG_FB)
pt_setup_fb_notifier(cd);
if (!cd->cpdata->fb_blanking_disabled) {
pt_setup_fb_notifier(cd);
}
#endif
#ifdef NEED_SUSPEND_NOTIFIER

View File

@ -834,6 +834,8 @@ static struct pt_core_platform_data *create_and_get_core_pdata(
if (!rc)
pdata->easy_wakeup_gesture = (u8)value;
pdata->fb_blanking_disabled = of_property_read_bool(core_node, "parade,fb_blanking_disabled");
rc = of_property_read_u32(core_node, "parade,config_dut_generation",
&value);
if (!rc)

View File

@ -163,6 +163,7 @@ struct pt_core_platform_data {
u8 config_dut_generation;
u8 watchdog_force_stop;
u8 panel_id_support;
bool fb_blanking_disabled;
};
struct touch_framework {