PM / devfreq: rockchip_dmc: Add ebc system status support

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I17c359d119e5ea6c0124d05bb0ab55e3d540643b
This commit is contained in:
Finley Xiao
2024-05-08 18:00:06 +08:00
committed by Tao Huang
parent 2bb3dc2155
commit 3d41eb3c90
2 changed files with 3 additions and 1 deletions

View File

@@ -180,7 +180,8 @@ static struct monitor_dev_profile dmc_mdevp = {
static inline unsigned long is_dualview(unsigned long status)
{
return (status & SYS_STATUS_LCDC0) && (status & SYS_STATUS_LCDC1);
return ((status & SYS_STATUS_SINGLEVP) &&
((status & SYS_STATUS_MULTIVP) || (status & SYS_STATUS_EBC)));
}
static inline unsigned long is_isp(unsigned long status)

View File

@@ -38,6 +38,7 @@
#define SYS_STATUS_VIDEO_SVEP (1 << 19)
#define SYS_STATUS_VIDEO_4K_60P (1 << 20)
#define SYS_STATUS_DEEP_SUSPEND (1 << 21)
#define SYS_STATUS_EBC (1 << 22)
#define SYS_STATUS_VIDEO (SYS_STATUS_VIDEO_4K | \
SYS_STATUS_VIDEO_1080P | \