mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 04:48:04 +09:00
amvecm: match uboot sdr2hdr function [1/1]
PD#OTT-2524 Problem: enable sdr2hdr function, uboot logo have color change Solution: match uboot sdr2hdr function Verify: verify on G12A Change-Id: I160cd6141d09a385d299ca96a89eb1ebf09c86e8 Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
This commit is contained in:
committed by
Dongjin Kim
parent
4ca49b6c65
commit
1a81c3d076
@@ -61,6 +61,7 @@
|
||||
#include "vlock.h"
|
||||
#include "hdr/am_hdr10_plus.h"
|
||||
#include "local_contrast.h"
|
||||
#include "arch/vpp_hdr_regs.h"
|
||||
|
||||
#define pr_amvecm_dbg(fmt, args...)\
|
||||
do {\
|
||||
@@ -6192,6 +6193,12 @@ free_buf:
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
static void def_hdr_sdr_mode(void)
|
||||
{
|
||||
if (((READ_VPP_REG(VD1_HDR2_CTRL) >> 13) & 0x1) &&
|
||||
((READ_VPP_REG(OSD1_HDR2_CTRL) >> 13) & 0x1))
|
||||
sdr_mode = 2;
|
||||
}
|
||||
|
||||
/* #if (MESON_CPU_TYPE == MESON_CPU_TYPE_MESONG9TV) */
|
||||
void init_pq_setting(void)
|
||||
@@ -6220,6 +6227,9 @@ void init_pq_setting(void)
|
||||
0x4000);
|
||||
WRITE_VPP_REG(SRSHARP0_SHARP_SR2_CBIC_VCOEF0 + sr_offset[0],
|
||||
0x4000);
|
||||
|
||||
/*kernel sdr2hdr match uboot setting*/
|
||||
def_hdr_sdr_mode();
|
||||
}
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user