/*it means use previous field for MC*/
/*else not pulldown,mcdi_mcpreflag is 2*/
/*it means use forward & previous field for MC*/
- if (is_meson_txhd_cpu())
+ if (cpu_after_eq(MESON_CPU_MAJOR_ID_TXHD))
mc_pre_flag = 2;
} else {
- if (is_meson_txhd_cpu())
+ if (cpu_after_eq(MESON_CPU_MAJOR_ID_TXHD))
mc_pre_flag = 1;
post_blend_mode = 1;
}
di_post_stru.di_mcvecrd_mif.canvas_num =
di_buf->di_buf_dup_p[2]->mcvec_canvas_idx;
mc_pre_flag = is_meson_txl_cpu()?0:(overturn?1:0);
- if (is_meson_txlx_cpu() || is_meson_gxlx_cpu() ||
- is_meson_txhd_cpu())
+ if (cpu_after_eq(MESON_CPU_MAJOR_ID_TXLX))
invert_mv = true;
else if (!overturn)
di_post_stru.di_buf2_mif.canvas0_addr0 =
/*it means use previous field for MC*/
/*else not pulldown,mcdi_mcpreflag is 2*/
/*it means use forward & previous field for MC*/
- if (is_meson_txhd_cpu())
+ if (cpu_after_eq(MESON_CPU_MAJOR_ID_TXHD))
mc_pre_flag = 2;
} else {
- if (is_meson_txhd_cpu())
+ if (cpu_after_eq(MESON_CPU_MAJOR_ID_TXHD))
mc_pre_flag = 1;
post_blend_mode = 1;
}
pldn_dly1 = 2;
}
+ mtn_int_combing_glbmot();
}
static const struct reserved_mem_ops rmem_di_ops = {
DI_VSYNC_WR_MPEG_REG_BITS(MCDI_MC_CRTL,
di_mcvecrd_mif->vecrd_offset, 12, 3);
if (di_mcvecrd_mif->blend_en) {
- DI_VSYNC_WR_MPEG_REG_BITS(MCDI_MC_CRTL,
- mcen_mode, 0, 2);
- DI_VSYNC_WR_MPEG_REG_BITS(MCDI_MC_CRTL, 1, 11, 1);
- DI_VSYNC_WR_MPEG_REG_BITS(MCDI_MC_CRTL,
- 3, 18, 2);
+ if (blend_mode == 1) {
+ DI_VSYNC_WR_MPEG_REG_BITS(MCDI_MC_CRTL,
+ mcen_mode, 0, 2);
+ DI_VSYNC_WR_MPEG_REG_BITS(MCDI_MC_CRTL,
+ 0, 11, 1);
+ DI_VSYNC_WR_MPEG_REG_BITS(MCDI_MC_CRTL,
+ 2, 18, 2);
+ } else {
+ DI_VSYNC_WR_MPEG_REG_BITS(MCDI_MC_CRTL,
+ mcen_mode, 0, 2);
+ DI_VSYNC_WR_MPEG_REG_BITS(MCDI_MC_CRTL,
+ 1, 11, 1);
+ DI_VSYNC_WR_MPEG_REG_BITS(MCDI_MC_CRTL,
+ 3, 18, 2);
+
+ }
} else {
DI_VSYNC_WR_MPEG_REG_BITS(MCDI_MC_CRTL,
0, 0, 2);
DI_VSYNC_WR_MPEG_REG_BITS(MCDI_MCVECRD_X, 1, 30, 1);
DI_VSYNC_WR_MPEG_REG_BITS(MCDI_MCVECRD_Y, 1, 30, 1);
if (cpu_after_eq(MESON_CPU_MAJOR_ID_TXL)) {
- if (cpu_after_eq(MESON_CPU_MAJOR_ID_TXLX)) {
+ if (is_meson_txlx_cpu()) {
DI_VSYNC_WR_MPEG_REG_BITS(MCDI_MC_CRTL,
pre_flag, 8, 2);
flag_val = (pre_flag != 2) ? 0 : 1;
DI_VSYNC_WR_MPEG_REG_BITS(MCDI_MCVECRD_X, 0, 30, 1);
DI_VSYNC_WR_MPEG_REG_BITS(MCDI_MCVECRD_Y, 0, 30, 1);
if (cpu_after_eq(MESON_CPU_MAJOR_ID_TXL)) {
- if (cpu_after_eq(MESON_CPU_MAJOR_ID_TXLX)) {
+ if (is_meson_txlx_cpu()) {
DI_VSYNC_WR_MPEG_REG_BITS(MCDI_MC_CRTL,
pre_flag, 8, 2);
flag_val = (pre_flag != 2) ? 0 : 1;