[PATCH 5/6] mx31moboard: initialize ipu device for all the boards

Guennadi Liakhovetski g.liakhovetski at gmx.de
Fri Nov 6 09:49:58 EST 2009


On Tue, 3 Nov 2009, Valentin Longchamp wrote:

> Signed-off-by: Valentin Longchamp <valentin.longchamp at epfl.ch>

I cannot judge whether you really need IPU support for "all" (mx31moboard) 
boards, and I also do not know how many of them you have in some 
development trees, so far I only see one CONFIG_MACH_MX31MOBOARD option in 
in a recent "next," but technically you can add

Acked-by: Guennadi Liakhovetski <g.liakhovetski at gmx.de>

Thanks
Guennadi

> ---
>  arch/arm/mach-mx3/mx31moboard.c |    7 +++++++
>  1 files changed, 7 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/arm/mach-mx3/mx31moboard.c b/arch/arm/mach-mx3/mx31moboard.c
> index f3ab51b..2f95dcd 100644
> --- a/arch/arm/mach-mx3/mx31moboard.c
> +++ b/arch/arm/mach-mx3/mx31moboard.c
> @@ -40,6 +40,7 @@
>  #include <mach/hardware.h>
>  #include <mach/imx-uart.h>
>  #include <mach/iomux-mx3.h>
> +#include <mach/ipu.h>
>  #include <mach/i2c.h>
>  #include <mach/mmc.h>
>  #include <mach/mx3_camera.h>
> @@ -393,6 +394,10 @@ static void mx31moboard_init_sel_gpios(void)
>  	}
>  }
>  
> +static struct ipu_platform_data mx3_ipu_data = {
> +	.irq_base = MXC_IPU_IRQ_START,
> +};
> +
>  static struct platform_device *devices[] __initdata = {
>  	&mx31moboard_flash,
>  	&mx31moboard_leds_device,
> @@ -430,6 +435,8 @@ static void __init mxc_board_init(void)
>  
>  	mxc_register_device(&mxcsdhc_device0, &sdhc1_pdata);
>  
> +	mxc_register_device(&mx3_ipu, &mx3_ipu_data);
> +
>  	usb_xcvr_reset();
>  
>  	moboard_usbotg_init();
> -- 
> 1.6.3.3
> 
> 
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
> 

---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/



More information about the linux-arm-kernel mailing list