Skip to content

Commit

Permalink
video: rockchip: mpp: Add more common procfs
Browse files Browse the repository at this point in the history
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I094de11f336a8f1b1b8e125f35ffae7431bf5eea
  • Loading branch information
HermanChen authored and rkhuangtao committed Aug 29, 2022
1 parent 63a566e commit 1f0130b
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/video/rockchip/mpp/mpp_jpgdec.c
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,10 @@ static int jpgdec_procfs_init(struct mpp_dev *mpp)
dec->procfs = NULL;
return -EIO;
}

/* for common mpp_dev options */
mpp_procfs_create_common(dec->procfs, mpp);

mpp_procfs_create_u32("aclk", 0644,
dec->procfs, &dec->aclk_info.debug_rate_hz);
mpp_procfs_create_u32("session_buffers", 0644,
Expand Down
4 changes: 4 additions & 0 deletions drivers/video/rockchip/mpp/mpp_rkvdec.c
Original file line number Diff line number Diff line change
Expand Up @@ -1175,6 +1175,10 @@ static int rkvdec_procfs_init(struct mpp_dev *mpp)
dec->procfs = NULL;
return -EIO;
}

/* for common mpp_dev options */
mpp_procfs_create_common(dec->procfs, mpp);

mpp_procfs_create_u32("aclk", 0644,
dec->procfs, &dec->aclk_info.debug_rate_hz);
mpp_procfs_create_u32("clk_core", 0644,
Expand Down
4 changes: 4 additions & 0 deletions drivers/video/rockchip/mpp/mpp_rkvenc.c
Original file line number Diff line number Diff line change
Expand Up @@ -798,6 +798,10 @@ static int rkvenc_procfs_init(struct mpp_dev *mpp)
enc->procfs = NULL;
return -EIO;
}

/* for common mpp_dev options */
mpp_procfs_create_common(enc->procfs, mpp);

/* for debug */
mpp_procfs_create_u32("aclk", 0644,
enc->procfs, &enc->aclk_info.debug_rate_hz);
Expand Down
4 changes: 4 additions & 0 deletions drivers/video/rockchip/mpp/mpp_vdpu1.c
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,10 @@ static int vdpu_procfs_init(struct mpp_dev *mpp)
dec->procfs = NULL;
return -EIO;
}

/* for common mpp_dev options */
mpp_procfs_create_common(dec->procfs, mpp);

mpp_procfs_create_u32("aclk", 0644,
dec->procfs, &dec->aclk_info.debug_rate_hz);
mpp_procfs_create_u32("session_buffers", 0644,
Expand Down
4 changes: 4 additions & 0 deletions drivers/video/rockchip/mpp/mpp_vdpu2.c
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,10 @@ static int vdpu_procfs_init(struct mpp_dev *mpp)
dec->procfs = NULL;
return -EIO;
}

/* for common mpp_dev options */
mpp_procfs_create_common(dec->procfs, mpp);

mpp_procfs_create_u32("aclk", 0644,
dec->procfs, &dec->aclk_info.debug_rate_hz);
mpp_procfs_create_u32("session_buffers", 0644,
Expand Down
4 changes: 4 additions & 0 deletions drivers/video/rockchip/mpp/mpp_vepu1.c
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,10 @@ static int vepu_procfs_init(struct mpp_dev *mpp)
enc->procfs = NULL;
return -EIO;
}

/* for common mpp_dev options */
mpp_procfs_create_common(enc->procfs, mpp);

mpp_procfs_create_u32("aclk", 0644,
enc->procfs, &enc->aclk_info.debug_rate_hz);
mpp_procfs_create_u32("session_buffers", 0644,
Expand Down
4 changes: 4 additions & 0 deletions drivers/video/rockchip/mpp/mpp_vepu2.c
Original file line number Diff line number Diff line change
Expand Up @@ -677,6 +677,10 @@ static int vepu_procfs_init(struct mpp_dev *mpp)
enc->procfs = NULL;
return -EIO;
}

/* for common mpp_dev options */
mpp_procfs_create_common(enc->procfs, mpp);

mpp_procfs_create_u32("aclk", 0644,
enc->procfs, &enc->aclk_info.debug_rate_hz);
mpp_procfs_create_u32("session_buffers", 0644,
Expand Down

0 comments on commit 1f0130b

Please sign in to comment.