aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorJason Chen <b02280@freescale.com>2011-08-30 17:42:20 +0800
committerEric Miao <eric.miao@linaro.org>2011-12-04 23:13:25 +0800
commita8208a795486288c6435898fb1006dd2fcaba6b6 (patch)
tree6a8d749588fb31639b430ec4b146766b049491ae /arch
parent2dcdcee5c49ccfe0865584b29ab884e7d801440e (diff)
mx53_loco: add v4l2 output support
Signed-off-by: Jason Chen <b02280@freescale.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-mx5/board-mx53_loco.c1
-rw-r--r--arch/arm/mach-mx5/devices-imx51.h4
-rw-r--r--arch/arm/mach-mx5/devices-imx53.h4
3 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-mx5/board-mx53_loco.c b/arch/arm/mach-mx5/board-mx53_loco.c
index b45af051cb0..e6a542cef38 100644
--- a/arch/arm/mach-mx5/board-mx53_loco.c
+++ b/arch/arm/mach-mx5/board-mx53_loco.c
@@ -449,6 +449,7 @@ static void __init mx53_loco_board_init(void)
imx53_add_ldb(&ldb_data);
imx53_add_tve(&tve_data);
+ imx53_add_v4l2_output(0);
imx53_add_imx_uart(0, NULL);
mx53_loco_fec_reset();
diff --git a/arch/arm/mach-mx5/devices-imx51.h b/arch/arm/mach-mx5/devices-imx51.h
index aeed2fd229f..76e59e00d0c 100644
--- a/arch/arm/mach-mx5/devices-imx51.h
+++ b/arch/arm/mach-mx5/devices-imx51.h
@@ -77,3 +77,7 @@ extern const struct imx_ipuv3_data imx51_ipuv3_data __initconst;
extern const struct imx_tve_data imx51_tve_data __initconst;
#define imx51_add_tve(pdata) \
imx_add_tve(&imx51_tve_data, pdata)
+
+#define imx51_add_v4l2_output(id) \
+ platform_device_register_resndata(NULL, "mxc_v4l2_output",\
+ id, NULL, 0, NULL, 0);
diff --git a/arch/arm/mach-mx5/devices-imx53.h b/arch/arm/mach-mx5/devices-imx53.h
index 7c8ff4c272a..ed19e2c3517 100644
--- a/arch/arm/mach-mx5/devices-imx53.h
+++ b/arch/arm/mach-mx5/devices-imx53.h
@@ -74,3 +74,7 @@ extern const struct imx_mxc_pwm_data imx53_mxc_pwm_data[] __initconst;
#define imx53_add_mxc_pwm_backlight(id, pdata) \
platform_device_register_resndata(NULL, "pwm-backlight",\
id, NULL, 0, pdata, sizeof(*pdata));
+
+#define imx53_add_v4l2_output(id) \
+ platform_device_register_resndata(NULL, "mxc_v4l2_output",\
+ id, NULL, 0, NULL, 0);