gpu: ipu-v3 ipu-cpmem: Remove unused functions
ipu_cpmem_set_yuv_interleaved() was added in 2012 by commit0125f21b2b
("staging: drm/imx: Add ipu_cpmem_set_yuv_interleaved()") but has remained unused. ipu_cpmem_get_burstsize() was added in 2016 by commit03085911d7
("gpu: ipu-cpmem: Add ipu_cpmem_get_burstsize()") but has remained unused. Remove them. Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Link: https://patchwork.freedesktop.org/patch/msgid/20241226022752.219399-8-linux@treblig.org Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
This commit is contained in:
parent
c687c3147d
commit
2800028d5b
|
@ -337,12 +337,6 @@ void ipu_cpmem_set_axi_id(struct ipuv3_channel *ch, u32 id)
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(ipu_cpmem_set_axi_id);
|
EXPORT_SYMBOL_GPL(ipu_cpmem_set_axi_id);
|
||||||
|
|
||||||
int ipu_cpmem_get_burstsize(struct ipuv3_channel *ch)
|
|
||||||
{
|
|
||||||
return ipu_ch_param_read_field(ch, IPU_FIELD_NPB) + 1;
|
|
||||||
}
|
|
||||||
EXPORT_SYMBOL_GPL(ipu_cpmem_get_burstsize);
|
|
||||||
|
|
||||||
void ipu_cpmem_set_burstsize(struct ipuv3_channel *ch, int burstsize)
|
void ipu_cpmem_set_burstsize(struct ipuv3_channel *ch, int burstsize)
|
||||||
{
|
{
|
||||||
ipu_ch_param_write_field(ch, IPU_FIELD_NPB, burstsize - 1);
|
ipu_ch_param_write_field(ch, IPU_FIELD_NPB, burstsize - 1);
|
||||||
|
@ -452,23 +446,6 @@ int ipu_cpmem_set_format_passthrough(struct ipuv3_channel *ch, int width)
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(ipu_cpmem_set_format_passthrough);
|
EXPORT_SYMBOL_GPL(ipu_cpmem_set_format_passthrough);
|
||||||
|
|
||||||
void ipu_cpmem_set_yuv_interleaved(struct ipuv3_channel *ch, u32 pixel_format)
|
|
||||||
{
|
|
||||||
switch (pixel_format) {
|
|
||||||
case V4L2_PIX_FMT_UYVY:
|
|
||||||
ipu_ch_param_write_field(ch, IPU_FIELD_BPP, 3); /* bits/pixel */
|
|
||||||
ipu_ch_param_write_field(ch, IPU_FIELD_PFS, 0xA);/* pix fmt */
|
|
||||||
ipu_ch_param_write_field(ch, IPU_FIELD_NPB, 31);/* burst size */
|
|
||||||
break;
|
|
||||||
case V4L2_PIX_FMT_YUYV:
|
|
||||||
ipu_ch_param_write_field(ch, IPU_FIELD_BPP, 3); /* bits/pixel */
|
|
||||||
ipu_ch_param_write_field(ch, IPU_FIELD_PFS, 0x8);/* pix fmt */
|
|
||||||
ipu_ch_param_write_field(ch, IPU_FIELD_NPB, 31);/* burst size */
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
EXPORT_SYMBOL_GPL(ipu_cpmem_set_yuv_interleaved);
|
|
||||||
|
|
||||||
void ipu_cpmem_set_yuv_planar_full(struct ipuv3_channel *ch,
|
void ipu_cpmem_set_yuv_planar_full(struct ipuv3_channel *ch,
|
||||||
unsigned int uv_stride,
|
unsigned int uv_stride,
|
||||||
unsigned int u_offset, unsigned int v_offset)
|
unsigned int u_offset, unsigned int v_offset)
|
||||||
|
|
|
@ -262,7 +262,6 @@ void ipu_cpmem_set_uv_offset(struct ipuv3_channel *ch, u32 u_off, u32 v_off);
|
||||||
void ipu_cpmem_interlaced_scan(struct ipuv3_channel *ch, int stride,
|
void ipu_cpmem_interlaced_scan(struct ipuv3_channel *ch, int stride,
|
||||||
u32 pixelformat);
|
u32 pixelformat);
|
||||||
void ipu_cpmem_set_axi_id(struct ipuv3_channel *ch, u32 id);
|
void ipu_cpmem_set_axi_id(struct ipuv3_channel *ch, u32 id);
|
||||||
int ipu_cpmem_get_burstsize(struct ipuv3_channel *ch);
|
|
||||||
void ipu_cpmem_set_burstsize(struct ipuv3_channel *ch, int burstsize);
|
void ipu_cpmem_set_burstsize(struct ipuv3_channel *ch, int burstsize);
|
||||||
void ipu_cpmem_set_block_mode(struct ipuv3_channel *ch);
|
void ipu_cpmem_set_block_mode(struct ipuv3_channel *ch);
|
||||||
void ipu_cpmem_set_rotation(struct ipuv3_channel *ch,
|
void ipu_cpmem_set_rotation(struct ipuv3_channel *ch,
|
||||||
|
@ -270,7 +269,6 @@ void ipu_cpmem_set_rotation(struct ipuv3_channel *ch,
|
||||||
int ipu_cpmem_set_format_rgb(struct ipuv3_channel *ch,
|
int ipu_cpmem_set_format_rgb(struct ipuv3_channel *ch,
|
||||||
const struct ipu_rgb *rgb);
|
const struct ipu_rgb *rgb);
|
||||||
int ipu_cpmem_set_format_passthrough(struct ipuv3_channel *ch, int width);
|
int ipu_cpmem_set_format_passthrough(struct ipuv3_channel *ch, int width);
|
||||||
void ipu_cpmem_set_yuv_interleaved(struct ipuv3_channel *ch, u32 pixel_format);
|
|
||||||
void ipu_cpmem_set_yuv_planar_full(struct ipuv3_channel *ch,
|
void ipu_cpmem_set_yuv_planar_full(struct ipuv3_channel *ch,
|
||||||
unsigned int uv_stride,
|
unsigned int uv_stride,
|
||||||
unsigned int u_offset,
|
unsigned int u_offset,
|
||||||
|
|
Loading…
Reference in New Issue