davinci: vpbe: enable vpbe for fbdev addition
Subsystems (3)
RFC PATCH 1/3 davinci: vpbe: enable vpbe for fbdev addition
enable the venc, osd and vpbe display driver for addition of fbdev driver. Mainly includes fbdev ops structure inclusion, palette and osd layer related functionality for OSD block.
Signed-off-by Manjunath Hadli <[email protected]>
--- drivers/media/video/davinci/vpbe_display.c | 6 + drivers/media/video/davinci/vpbe_osd.c | 793 +++++++++++++++++++++++++++- drivers/media/video/davinci/vpbe_venc.c | 84 +++ include/media/davinci/vpbe_osd.h | 64 +++- include/media/davinci/vpbe_venc.h | 21 + 5 files changed, 959 insertions(+), 9 deletions(-)
drivers/media/video/davinci/vpbe_display.c +6 -0
@@ -119,9 +119,11 @@ static void vpbe_isr_odd_field(struct vpbe_display *disp_obj,static irqreturn_t venc_isr (int irq,void *arg) {struct vpbe_display *disp_dev = (struct vpbe_display *)arg; +struct vpbe_device *vpbe_dev = disp_dev->vpbe_dev;struct vpbe_layer *layer;static unsigned last_event;unsigned event =0 ; +int ret;int fid;int i;
@@ -194,6 +196,10 @@ static irqreturn_t venc_isr(int irq, void *arg)vpbe_isr_odd_field (disp_dev, layer); } } + ret =v4l2_subdev_call (vpbe_dev->venc, core, ioctl,VENC_INTERRUPT , + &event); +if (ret <0 ) +v4l2_err (&vpbe_dev->v4l2_dev,"Error in getting Field ID 0\n" );return IRQ_HANDLED ; }
drivers/media/video/davinci/vpbe_osd.c +778 -8
894 lines not on this page · raw message
drivers/media/video/davinci/vpbe_venc.c +84 -0
126 lines not on this page · raw message
include/media/davinci/vpbe_osd.h +63 -1
91 lines not on this page · raw message
include/media/davinci/vpbe_venc.h +21 -0
@@ -27,6 +27,24 @@#define VENC_FIRST_FIELD BIT(1)#define VENC_SECOND_FIELD BIT(2) +/** +* struct venc_callback +* @next: used internally by the venc driver to maintain a linked list of +* callbacks +* @mask: a bitmask specifying the venc event(s) for which the +* callback will be invoked +* @handler: the callback routine +* @arg: a null pointer that is passed as the second argument to the callback +* routine +*/ +struct venc_callback { +struct venc_callback *next; +char *owner; +unsigned mask; +void (*handler) (unsigned event,void *arg); +void *arg; +}; +struct venc_platform_data {enum vpbe_version venc_type; int (*setup_pinmux)(enum v4l2_mbus_pixelcode if_type,
@@ -41,6 +59,9 @@ struct venc_platform_data {enum venc_ioctls {VENC_GET_FLD =1 , +VENC_REG_CALLBACK , +VENC_UNREG_CALLBACK , +VENC_INTERRUPT , };/* exported functions */
Signature · 1 line
1.6.2.4