mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-28 03:13:11 +08:00
[vepu5xx]: Fix encoder hw stuck
Set rfp_load_thd to zero to avoid reference window timeout stuck. Signed-off-by: Herman Chen <herman.chen@rock-chips.com> Change-Id: I0d24ef109304cb3262167538e2872447bad707f7
This commit is contained in:
@@ -567,7 +567,7 @@ static void setup_vepu580_normal(HalVepu580RegSet *regs)
|
||||
/* reg007 INT_STA is read only */
|
||||
/* reg008 ~ reg0011 gap */
|
||||
regs->reg_ctl.enc_wdg.vs_load_thd = 0x1fffff;
|
||||
regs->reg_ctl.enc_wdg.rfp_load_thd = 0xff;
|
||||
regs->reg_ctl.enc_wdg.rfp_load_thd = 0;
|
||||
|
||||
/* reg015 DTRNS_MAP */
|
||||
regs->reg_ctl.dtrns_map.cmvw_bus_ordr = 0;
|
||||
|
||||
@@ -1200,7 +1200,7 @@ MPP_RET hal_h265e_v540c_gen_regs(void *hal, HalEncTask *task)
|
||||
// reg_ctl->reg0013_dtrns_cfg.dspr_otsd = (ctx->frame_type == INTER_P_FRAME);
|
||||
reg_ctl->reg0013_dtrns_cfg.axi_brsp_cke = 0x0;
|
||||
reg_ctl->reg0014_enc_wdg.vs_load_thd = 0x1fffff;
|
||||
reg_ctl->reg0014_enc_wdg.rfp_load_thd = 0xff;
|
||||
reg_ctl->reg0014_enc_wdg.rfp_load_thd = 0;
|
||||
|
||||
reg_ctl->reg0021_func_en.cke = 1;
|
||||
reg_ctl->reg0021_func_en.resetn_hw_en = 1;
|
||||
|
||||
@@ -2402,7 +2402,7 @@ MPP_RET hal_h265e_v580_gen_regs(void *hal, HalEncTask *task)
|
||||
reg_ctl->reg0013_dtrns_cfg.dspr_otsd = (ctx->frame_type == INTER_P_FRAME);
|
||||
reg_ctl->reg0013_dtrns_cfg.axi_brsp_cke = 0x0;
|
||||
reg_ctl->reg0014_enc_wdg.vs_load_thd = 0x1fffff;
|
||||
reg_ctl->reg0014_enc_wdg.rfp_load_thd = 0xff;
|
||||
reg_ctl->reg0014_enc_wdg.rfp_load_thd = 0;
|
||||
|
||||
reg_ctl->reg0021_func_en.cke = 1;
|
||||
reg_ctl->reg0021_func_en.resetn_hw_en = 1;
|
||||
|
||||
@@ -195,7 +195,7 @@ MPP_RET hal_jpege_v540c_gen_regs(void *hal, HalEncTask *task)
|
||||
|
||||
reg_ctl->reg0013_dtrns_cfg.axi_brsp_cke = 0x0;
|
||||
reg_ctl->reg0014_enc_wdg.vs_load_thd = 0x1fffff;
|
||||
reg_ctl->reg0014_enc_wdg.rfp_load_thd = 0xff;
|
||||
reg_ctl->reg0014_enc_wdg.rfp_load_thd = 0;
|
||||
|
||||
vepu540c_set_jpeg_reg(&cfg);
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user