diff options
author | Jason Chen <jason.chen@linaro.org> | 2011-12-05 16:41:46 +0800 |
---|---|---|
committer | Eric Miao <eric.miao@linaro.org> | 2012-01-11 21:39:16 +0800 |
commit | b46087c0c37052ba9062d546264fbed1166c1b7a (patch) | |
tree | 2c7c14bb5d437897c6bb4fe48dc8adbbd5ffaae4 | |
parent | 01026a75447a669033410f7af51acb86dbf35936 (diff) |
MXC V4L2 output: add dt support
Signed-off-by: Jason Chen <jason.chen@linaro.org>
-rw-r--r-- | arch/arm/boot/dts/imx6q-sabrelite.dts | 4 | ||||
-rw-r--r-- | drivers/media/video/mxc/output/mxc_vout.c | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/imx6q-sabrelite.dts b/arch/arm/boot/dts/imx6q-sabrelite.dts index d2e0cd9166c..35938d88577 100644 --- a/arch/arm/boot/dts/imx6q-sabrelite.dts +++ b/arch/arm/boot/dts/imx6q-sabrelite.dts @@ -118,5 +118,9 @@ internal_clk = "false"; reg = <0x00000001 0x0>; /* reserve fb mem */ }; + + v4l2-out@0 { + compatible = "fsl,vout_ipuv3"; + }; }; }; diff --git a/drivers/media/video/mxc/output/mxc_vout.c b/drivers/media/video/mxc/output/mxc_vout.c index 57e684f9930..8092e670114 100644 --- a/drivers/media/video/mxc/output/mxc_vout.c +++ b/drivers/media/video/mxc/output/mxc_vout.c @@ -1630,9 +1630,15 @@ static int mxc_vout_remove(struct platform_device *pdev) return 0; } +static const struct of_device_id mxc_vout_dt_ids[] = { + { .compatible = "fsl,vout_ipuv3", }, + { /* sentinel */ } +}; + static struct platform_driver mxc_vout_driver = { .driver = { .name = "mxc_v4l2_output", + .of_match_table = mxc_vout_dt_ids, }, .probe = mxc_vout_probe, .remove = mxc_vout_remove, |