On Wed, 30 Jun 2010, Uwe Kleine-König wrote: > On Mon, Jun 21, 2010 at 08:15:58AM +0300, Baruch Siach wrote: > > This is the soc_camera support developed by Sascha Hauer for the i.MX27. Alan > > Carvalho de Assis modified the original driver to get it working on more recent > > kernels. I modified it further to add support for i.MX25. This driver has been > > tested on i.MX25 and i.MX27 based platforms. > > > > Signed-off-by: Baruch Siach <baruch@xxxxxxxxxx> > > --- > > arch/arm/plat-mxc/include/mach/memory.h | 4 +- > > arch/arm/plat-mxc/include/mach/mx2_cam.h | 46 + > > drivers/media/video/Kconfig | 13 + > > drivers/media/video/Makefile | 1 + > > drivers/media/video/mx2_camera.c | 1493 ++++++++++++++++++++++++++++++ > > 5 files changed, 1555 insertions(+), 2 deletions(-) > > create mode 100644 arch/arm/plat-mxc/include/mach/mx2_cam.h > > create mode 100644 drivers/media/video/mx2_camera.c > > > > diff --git a/arch/arm/plat-mxc/include/mach/memory.h b/arch/arm/plat-mxc/include/mach/memory.h > > index c4b40c3..5803836 100644 > > --- a/arch/arm/plat-mxc/include/mach/memory.h > > +++ b/arch/arm/plat-mxc/include/mach/memory.h > > @@ -44,12 +44,12 @@ > > */ > > #define CONSISTENT_DMA_SIZE SZ_8M > > > > -#elif defined(CONFIG_MX1_VIDEO) > > +#elif defined(CONFIG_MX1_VIDEO) || defined(CONFIG_MX2_VIDEO) > > /* > > * Increase size of DMA-consistent memory region. > > * This is required for i.MX camera driver to capture at least four VGA frames. > > */ > > #define CONSISTENT_DMA_SIZE SZ_4M > > -#endif /* CONFIG_MX1_VIDEO */ > > +#endif /* CONFIG_MX1_VIDEO || CONFIG_MX2_VIDEO */ > Why not use CONFIG_VIDEO_MX2 here and get rid of CONFIG_MX2_VIDEO? Well, firstly for uniformity with MX1 and MX3, secondly not to have to use (CONFIG_VIDEO_MX2 || CONFIG_VIDEO_MX2_MODULE), also note, that CONFIG_MX1_VIDEO is also used for linking of the FIQ handler for the camera. Thanks Guennadi --- Guennadi Liakhovetski, Ph.D. Freelance Open-Source Software Developer http://www.open-technology.de/ -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html