media: vsp1: drm: Implement writeback support
Extend the vsp1_du_atomic_flush() API with writeback support by adding format, pitch and memory addresses of the writeback framebuffer. Writeback completion is reported through the existing frame completion callback with a new VSP1_DU_STATUS_WRITEBACK status flag. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com> Reviewed-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
@@ -18,6 +18,7 @@ struct device;
|
||||
int vsp1_du_init(struct device *dev);
|
||||
|
||||
#define VSP1_DU_STATUS_COMPLETE BIT(0)
|
||||
#define VSP1_DU_STATUS_WRITEBACK BIT(1)
|
||||
|
||||
/**
|
||||
* struct vsp1_du_lif_config - VSP LIF configuration
|
||||
@@ -83,12 +84,26 @@ struct vsp1_du_crc_config {
|
||||
unsigned int index;
|
||||
};
|
||||
|
||||
/**
|
||||
* struct vsp1_du_writeback_config - VSP writeback configuration parameters
|
||||
* @pixelformat: plane pixel format (V4L2 4CC)
|
||||
* @pitch: line pitch in bytes for the first plane
|
||||
* @mem: DMA memory address for each plane of the frame buffer
|
||||
*/
|
||||
struct vsp1_du_writeback_config {
|
||||
u32 pixelformat;
|
||||
unsigned int pitch;
|
||||
dma_addr_t mem[3];
|
||||
};
|
||||
|
||||
/**
|
||||
* struct vsp1_du_atomic_pipe_config - VSP atomic pipe configuration parameters
|
||||
* @crc: CRC computation configuration
|
||||
* @writeback: writeback configuration
|
||||
*/
|
||||
struct vsp1_du_atomic_pipe_config {
|
||||
struct vsp1_du_crc_config crc;
|
||||
struct vsp1_du_writeback_config writeback;
|
||||
};
|
||||
|
||||
void vsp1_du_atomic_begin(struct device *dev, unsigned int pipe_index);
|
||||
|
Reference in New Issue
Block a user