linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 1/2] ARM: mx27_3ds: Add VPU support
@ 2012-11-14 13:19 Fabio Estevam
  2012-11-14 13:19 ` [PATCH v2 2/2] ARM: imx_v4_v5_defconfig: " Fabio Estevam
  2012-11-14 14:34 ` [PATCH v2 1/2] ARM: mx27_3ds: " Sascha Hauer
  0 siblings, 2 replies; 4+ messages in thread
From: Fabio Estevam @ 2012-11-14 13:19 UTC (permalink / raw)
  To: linux-arm-kernel

mx27 has a VPU (Video Processing Unit) block that allows doing H264/MPEG4
decoding and encoding in hardware.

Add support for it.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
Changes since v1:
- Do not allocate the coda buffers explicetely

 arch/arm/mach-imx/mach-mx27_3ds.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/mach-imx/mach-mx27_3ds.c b/arch/arm/mach-imx/mach-mx27_3ds.c
index d0e547f..e37a114 100644
--- a/arch/arm/mach-imx/mach-mx27_3ds.c
+++ b/arch/arm/mach-imx/mach-mx27_3ds.c
@@ -531,6 +531,7 @@ static void __init mx27pdk_init(void)
 	imx27_add_imx_ssi(0, &mx27_3ds_ssi_pdata);
 
 	imx_add_platform_device("imx_mc13783", 0, NULL, 0, NULL, 0);
+	imx27_add_coda();
 }
 
 static void __init mx27pdk_timer_init(void)
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH v2 2/2] ARM: imx_v4_v5_defconfig: Add VPU support
  2012-11-14 13:19 [PATCH v2 1/2] ARM: mx27_3ds: Add VPU support Fabio Estevam
@ 2012-11-14 13:19 ` Fabio Estevam
  2012-11-14 14:34 ` [PATCH v2 1/2] ARM: mx27_3ds: " Sascha Hauer
  1 sibling, 0 replies; 4+ messages in thread
From: Fabio Estevam @ 2012-11-14 13:19 UTC (permalink / raw)
  To: linux-arm-kernel

Let the VPU driver be built by default.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 arch/arm/configs/imx_v4_v5_defconfig |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/arm/configs/imx_v4_v5_defconfig b/arch/arm/configs/imx_v4_v5_defconfig
index f71302c..1190c18 100644
--- a/arch/arm/configs/imx_v4_v5_defconfig
+++ b/arch/arm/configs/imx_v4_v5_defconfig
@@ -126,6 +126,9 @@ CONFIG_V4L_PLATFORM_DRIVERS=y
 CONFIG_SOC_CAMERA=y
 CONFIG_SOC_CAMERA_OV2640=y
 CONFIG_VIDEO_MX2=y
+CONFIG_V4L_PLATFORM_DRIVERS=y
+CONFIG_V4L_MEM2MEM_DRIVERS=y
+CONFIG_VIDEO_CODA=y
 CONFIG_FB=y
 CONFIG_FB_IMX=y
 CONFIG_BACKLIGHT_LCD_SUPPORT=y
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH v2 1/2] ARM: mx27_3ds: Add VPU support
  2012-11-14 13:19 [PATCH v2 1/2] ARM: mx27_3ds: Add VPU support Fabio Estevam
  2012-11-14 13:19 ` [PATCH v2 2/2] ARM: imx_v4_v5_defconfig: " Fabio Estevam
@ 2012-11-14 14:34 ` Sascha Hauer
  2012-11-14 15:44   ` Eric Bénard
  1 sibling, 1 reply; 4+ messages in thread
From: Sascha Hauer @ 2012-11-14 14:34 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Fabio,

On Wed, Nov 14, 2012 at 11:19:33AM -0200, Fabio Estevam wrote:
> mx27 has a VPU (Video Processing Unit) block that allows doing H264/MPEG4
> decoding and encoding in hardware.
> 
> Add support for it.
> 
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
> ---
> Changes since v1:
> - Do not allocate the coda buffers explicetely
> 
>  arch/arm/mach-imx/mach-mx27_3ds.c |    1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/arm/mach-imx/mach-mx27_3ds.c b/arch/arm/mach-imx/mach-mx27_3ds.c
> index d0e547f..e37a114 100644
> --- a/arch/arm/mach-imx/mach-mx27_3ds.c
> +++ b/arch/arm/mach-imx/mach-mx27_3ds.c
> @@ -531,6 +531,7 @@ static void __init mx27pdk_init(void)
>  	imx27_add_imx_ssi(0, &mx27_3ds_ssi_pdata);
>  
>  	imx_add_platform_device("imx_mc13783", 0, NULL, 0, NULL, 0);
> +	imx27_add_coda();

Why in the board? It's always present so I would register it in the SoC.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH v2 1/2] ARM: mx27_3ds: Add VPU support
  2012-11-14 14:34 ` [PATCH v2 1/2] ARM: mx27_3ds: " Sascha Hauer
@ 2012-11-14 15:44   ` Eric Bénard
  0 siblings, 0 replies; 4+ messages in thread
From: Eric Bénard @ 2012-11-14 15:44 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Sascha,

Le Wed, 14 Nov 2012 15:34:00 +0100,
Sascha Hauer <s.hauer@pengutronix.de> a ?crit :
> On Wed, Nov 14, 2012 at 11:19:33AM -0200, Fabio Estevam wrote:
> > mx27 has a VPU (Video Processing Unit) block that allows doing H264/MPEG4
> > decoding and encoding in hardware.
> > 
> > Add support for it.
> > 
> > Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
> > ---
> > +	imx27_add_coda();
> 
> Why in the board? It's always present so I would register it in the SoC.
> 
MCIMX27L* dosn't have the VPU. No idea how will behave the probe in
that case.

Eruc

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-11-14 15:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-14 13:19 [PATCH v2 1/2] ARM: mx27_3ds: Add VPU support Fabio Estevam
2012-11-14 13:19 ` [PATCH v2 2/2] ARM: imx_v4_v5_defconfig: " Fabio Estevam
2012-11-14 14:34 ` [PATCH v2 1/2] ARM: mx27_3ds: " Sascha Hauer
2012-11-14 15:44   ` Eric Bénard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).