soc: rockchip: system_monitor: add ebc blank/unblank notifier

Signed-off-by: Zorro Liu <lyx@rock-chips.com>
Change-Id: I317a8b545d53fd1af960cdbd84d271eaa9451d12
This commit is contained in:
Zorro Liu
2021-04-13 11:53:47 +08:00
committed by Tao Huang
parent 2cf597db72
commit ff1dff0cae

View File

@@ -1494,6 +1494,12 @@ static int rockchip_eink_devfs_notifier(struct notifier_block *nb,
case EBC_OFF:
rockchip_set_system_status(SYS_STATUS_LOW_POWER);
break;
case EBC_FB_BLANK:
rockchip_set_system_status(SYS_STATUS_SUSPEND);
break;
case EBC_FB_UNBLANK:
rockchip_clear_system_status(SYS_STATUS_SUSPEND);
break;
default:
break;
}