dpss: sync code from 5.15 to 6.12 [1/1]

PD#SWPL-245970

Problem:
sync code from 5.15 to 6.12

Solution:
sync code from 5.15 to 6.12
574821
610996
615838
616810

Verify:
T6X

Change-Id: I8f2c55ba78d3bb6cb0ea4ea2f4ea37c31875ba19
Signed-off-by: lukang.jia <lukang.jia@amlogic.com>
This commit is contained in:
lukang.jia
2025-12-15 02:56:03 +00:00
committed by gerrit autosubmit
parent 8fa33a7eb4
commit 99d04263dc
18 changed files with 1096 additions and 305 deletions
@@ -66,6 +66,7 @@ int pvpp_sw_frc(bool on);
void frc_disable_plink_notify(bool async);
void frc_plink_state_changed_notify(void);
void irq_display(void);
void post_vsync_signal_to_dpss_rdma(void);
int dpss_frc_get_video_latency(void);
int dpss_frc_get_video_latency_for_gd(void);
@@ -87,11 +87,14 @@ struct dpss_frc_top_type_s {
/*input*/
u16 hsize;
u16 vsize;
u16 inp_padding_xofst;
u16 inp_padding_yofst;
u16 mc_hsize;
u16 mc_vsize;
u16 crop_top;
u16 crop_left;
u16 crop_bottom;
u16 crop_right;
u32 vfp;//line num before vsync,VIDEO_VSO_BLINE
u32 vfb;//line num before de ,VIDEO_VAVON_BLINE
u32 frc_fb_num; //buffer num for frc loop
enum frc_ratio_mode_type frc_ratio_mode;
enum en_drv_film_mode film_mode;//film_mode
@@ -104,8 +107,8 @@ struct dpss_frc_top_type_s {
u16 other_set1;
u8 rdma_en; //1:rdma 0:cpu interrupt access reg
u8 motion_ctrl; // for frc motion ctrl
u8 rdma_reserved2;
u8 rdma_reserved3;
u8 need_dpe_mix; //t6w badedit
u8 dpe_mix_cnt; //t6w badedit
u32 frc_prot_mode;//0:memc prefetch acorrding mode frame 1:memc prefetch 1 frame
u32 force_en; // for debug
u32 in_out_ratio;
@@ -206,12 +209,6 @@ struct dpss_frc_fw_data_s {
//extern int frc_kerdrv_ver;
#define QUEEN_NUM 60
struct dpss_queue {
u32 data[QUEEN_NUM];
u16 front;
u16 rear;
};
struct Vpu_queue {
int data[QUEEN_NUM];
int front;