PD#163289: amvecm: optimize gamma table write
Change-Id: I2e97b37084c78a0dfb7109c4aeef8898c2bf94c6
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
int cnt = 0;
unsigned long flags = 0;
+ if (!(READ_VPP_REG(ENCL_VIDEO_EN) & 0x1))
+ return;
+
spin_lock_irqsave(&vpp_lcd_gamma_lock, flags);
WRITE_VPP_REG_BITS(L_GAMMA_CNTL_PORT,
int cnt = 0;
unsigned long flags = 0;
+ if (!(READ_VPP_REG(ENCL_VIDEO_EN) & 0x1))
+ return;
+
spin_lock_irqsave(&vpp_lcd_gamma_lock, flags);
while (!(READ_VPP_REG(L_GAMMA_CNTL_PORT) & (0x1 << ADR_RDY))) {
#define VPP_POST2_MATRIX_PRE_OFFSET0_1 0x39ab
#define VPP_POST2_MATRIX_PRE_OFFSET2 0x39ac
#define VPP_POST2_MATRIX_EN_CTRL 0x39ad
+
+#define ENCL_VIDEO_EN 0x1ca0
#endif