OMAP2/3: Add V4L2 DSS driver support in device.c
Subsystems (4)
PATCH 2/2 OMAP2/3: Add V4L2 DSS driver support in device.c
From: Vaibhav Hiremath <[email protected]>
Signed-off-by Vaibhav Hiremath <[email protected]>
--- arch/arm/mach-omap2/devices.c | 28 ++++++++++++++++++++++++++++ 1 files changed, 28 insertions(+), 0 deletions(-)
arch/arm/mach-omap2/devices.c +28 -0
@@ -763,6 +763,33 @@ static inline void omap_hdq_init(void)static inline void omap_hdq_init (void ) {}#endif +/*---------------------------------------------------------------------------*/ + +#if defined(CONFIG_VIDEO_OMAP2_VOUT ) || \ + defined(CONFIG_VIDEO_OMAP2_VOUT_MODULE ) +#if defined(CONFIG_FB_OMAP2 ) || defined(CONFIG_FB_OMAP2_MODULE ) +static struct resource omap_vout_resource[3 -CONFIG_FB_OMAP2_NUM_FBS ] = { +}; +#else +static struct resource omap_vout_resource[2 ] = { +}; +#endif + +static struct platform_device omap_vout_device = { + .name ="omap_vout" , + .num_resources =ARRAY_SIZE (omap_vout_resource), + .resource = &omap_vout_resource[0 ], + .id =-1 , +}; +static void omap_init_vout (void ) +{ +if (platform_device_register (&omap_vout_device) <0 ) +printk (KERN_ERR "Unable to register OMAP-VOUT device\n" ); +} +#else +static inline void omap_init_vout (void ) {} +#endif +/*-------------------------------------------------------------------------*/ static int __init omap2_init_devices (void )
@@ -777,6 +804,7 @@ static int __init omap2_init_devices(void)omap_hdq_init ();omap_init_sti ();omap_init_sha1_md5 (); +omap_init_vout ();return 0 ; }
Signature · 1 line
1.6.2.4
Tony Lindgren
maintainerPATCH 2/2 OMAP2/3: Add V4L2 DSS driver support in device.c
This patch has been applied to the linux-omap
by youw fwiendly patch wobot.
Branch in linux-omap: for-next
Initial commit ID (Likely to change): df8a77d5a4b80dbcbd5c401875e7427e0bb37450
PatchWorks
http://patchwork.kernel.org/patch/90106/
Git (Likely to change, and takes a while to get mirrored)
http://git.kernel.org/?p=linux/kernel/git/tmlind/linux-omap-2.6.git;a=commit;h=df8a77d5a4b80dbcbd5c401875e7427e0bb37450