if (((cvd2->vd_port == TVIN_PORT_CVBS1) ||
(cvd2->vd_port == TVIN_PORT_CVBS2)) &&
- (cvd2->config_fmt == TVIN_SIG_FMT_CVBS_NTSC_M))
+ (cvd2->config_fmt == TVIN_SIG_FMT_CVBS_NTSC_M)) {
W_APB_REG(CVD2_VSYNC_SIGNAL_THRESHOLD, 0x7d);
+ if (tvafe_cpu_type() == CPU_TYPE_TL1) {
+ W_APB_REG(CVD2_REG_B0, 0x0);
+ W_APB_REG(CVD2_3DCOMB_FILTER, 0xfd);
+ }
+ }
/* reload CVD2 reg 0x87, 0x93, 0x94, 0x95, 0x96, 0xe6, 0xfa (int) */
W_APB_REG(((CVD_BASE_ADD+CVD_PART3_REG_0)<<2),
for (i = 0; i < p->length; i++) {
switch (p->am_reg[i].type) {
case REG_TYPE_PHY:
- #ifdef PQ_DEBUG_EN
- tvafe_pr_info("%s: bus type: phy..\n", __func__);
- #endif
+ if (tvafe_dbg_enable)
+ tvafe_pr_info("%s: bus type: phy..\n", __func__);
break;
case REG_TYPE_CBUS:
if (p->am_reg[i].mask == 0xffffffff)
(aml_read_cbus(p->am_reg[i].addr) &
(~(p->am_reg[i].mask))) |
(p->am_reg[i].val & p->am_reg[i].mask));
- #ifdef PQ_DEBUG_EN
- tvafe_pr_info("%s: cbus: Reg0x%x(%u)=0x%x(%u)val=%x(%u)mask=%x(%u)\n",
+ if (tvafe_dbg_enable)
+ tvafe_pr_info("%s: cbus: Reg0x%x(%u)=0x%x(%u)val=%x(%u)mask=%x(%u)\n",
__func__, p->am_reg[i].addr, p->am_reg[i].addr,
- (p->am_reg[i].val & p->am_reg[i].mask),
- (p->am_reg[i].val & p->am_reg[i].mask),
- p->am_reg[i].val, p->am_reg[i].val,
- p->am_reg[i].mask, p->am_reg[i].mask);
- #endif
+ (p->am_reg[i].val & p->am_reg[i].mask),
+ (p->am_reg[i].val & p->am_reg[i].mask),
+ p->am_reg[i].val, p->am_reg[i].val,
+ p->am_reg[i].mask, p->am_reg[i].mask);
break;
case REG_TYPE_APB:
if (p->am_reg[i].mask == 0xffffffff)
(R_APB_REG(p->am_reg[i].addr<<2) &
(~(p->am_reg[i].mask))) |
(p->am_reg[i].val & p->am_reg[i].mask));
- #ifdef PQ_DEBUG_EN
- tvafe_pr_info("%s: apb: Reg0x%x(%u)=0x%x(%u)val=%x(%u)mask=%x(%u)\n",
+ if (tvafe_dbg_enable)
+ tvafe_pr_info("%s: apb: Reg0x%x(%u)=0x%x(%u)val=%x(%u)mask=%x(%u)\n",
__func__, p->am_reg[i].addr, p->am_reg[i].addr,
- (p->am_reg[i].val & p->am_reg[i].mask),
- (p->am_reg[i].val & p->am_reg[i].mask),
- p->am_reg[i].val, p->am_reg[i].val,
- p->am_reg[i].mask, p->am_reg[i].mask);
- #endif
+ (p->am_reg[i].val & p->am_reg[i].mask),
+ (p->am_reg[i].val & p->am_reg[i].mask),
+ p->am_reg[i].val, p->am_reg[i].val,
+ p->am_reg[i].mask, p->am_reg[i].mask);
break;
default:
- #ifdef PQ_DEBUG_EN
- tvafe_pr_info("%s: bus type error!!!bustype = 0x%x................\n",
+ if (tvafe_dbg_enable)
+ tvafe_pr_info("%s: bus type error!!!bustype = 0x%x................\n",
__func__, p->am_reg[i].type);
- #endif
break;
}
}