]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00220796-3: imx6sl arm2/evk: Add platform_device for V4L2 support
authorRobby Cai <R63905@freescale.com>
Tue, 21 Aug 2012 05:46:43 +0000 (13:46 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:35:18 +0000 (08:35 +0200)
Add platform device for V4L2 support

Signed-off-by: Robby Cai <R63905@freescale.com>
arch/arm/mach-mx6/board-mx6sl_arm2.c
arch/arm/mach-mx6/board-mx6sl_evk.c
arch/arm/mach-mx6/devices-imx6q.h
arch/arm/plat-mxc/devices/platform-imx-pxp.c
arch/arm/plat-mxc/include/mach/devices-common.h

index d1cf110f6c3bed5639a51f9abb3a176196cffb52..45b33c9caace45c1a8e3f7d639ae74599dd38b60 100755 (executable)
@@ -1260,6 +1260,7 @@ static void __init mx6_arm2_init(void)
        imx6q_add_busfreq();
        imx6sl_add_dcp();
        imx6sl_add_rngb();
+       imx6sl_add_imx_pxp_v4l2();
 
        imx6q_add_perfmon(0);
        imx6q_add_perfmon(1);
index 11623ccc68e72f86d34443963e4d35e516be89fc..40c05c451e7a1ea443f07f4781d49f57fe07b8fd 100644 (file)
@@ -1267,6 +1267,7 @@ static void __init mx6_evk_init(void)
        imx6q_add_busfreq();
        imx6sl_add_dcp();
        imx6sl_add_rngb();
+       imx6sl_add_imx_pxp_v4l2();
 
        imx6q_add_perfmon(0);
        imx6q_add_perfmon(1);
index c75aed86800b0ef6443d0581dee6d318a619aec5..f91369ffc2806daaa021ae08f2766c82e737596b 100644 (file)
@@ -220,6 +220,9 @@ extern const struct imx_pxp_data imx6dl_pxp_data __initconst;
 #define imx6dl_add_imx_pxp_client()   \
        imx_add_imx_pxp_client()
 
+#define imx6sl_add_imx_pxp_v4l2()   \
+       imx_add_imx_pxp_v4l2()
+
 extern const struct imx_epdc_data imx6dl_epdc_data __initconst;
 #define imx6dl_add_imx_epdc(pdata)     \
        imx_add_imx_epdc(&imx6dl_epdc_data, pdata)
index 3ae3e4880e1df1f1cca162e43f3a80da793df8b8..418489e1c4ea5190dfa3d509b687c1253ea523ce 100644 (file)
@@ -64,3 +64,8 @@ struct platform_device *__init imx_add_imx_pxp_client()
                NULL, 0, NULL, 0);
 }
 
+struct platform_device *__init imx_add_imx_pxp_v4l2()
+{
+    return imx_add_platform_device_dmamask("pxp-v4l2", -1,
+               NULL, 0, NULL, 0, DMA_BIT_MASK(32));
+}
index 4512751cbd118a12d421c00d279b59b3260ed176..99ef8abee1e326618d3f92199fbe772406b2a27c 100755 (executable)
@@ -468,6 +468,7 @@ struct imx_pxp_data {
 struct platform_device *__init imx_add_imx_pxp(
        const struct imx_pxp_data *data);
 struct platform_device *__init imx_add_imx_pxp_client(void);
+struct platform_device *__init imx_add_imx_pxp_v4l2(void);
 
 #include <linux/fsl_devices.h>
 struct imx_elcdif_data {