Re: [PATCH 3/3] MXC: add platform resources for i.MX21 USB host controller.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Jun 06, 2009 at 04:36:54PM +0200, Martin Fuzzey wrote:
> 
> 
> Signed-off-by: Martin Fuzzey <mfuzzey@xxxxxxxxx>
> 
> ---
> 
>  arch/arm/mach-mx2/devices.c |   28 ++++++++++++++++++++++++++++
>  arch/arm/mach-mx2/devices.h |    2 ++
>  2 files changed, 30 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/arm/mach-mx2/devices.c b/arch/arm/mach-mx2/devices.c
> index a0f1b36..3f71973 100644
> --- a/arch/arm/mach-mx2/devices.c
> +++ b/arch/arm/mach-mx2/devices.c
> @@ -446,3 +446,31 @@ int __init mxc_register_gpios(void)
>  {
>  	return mxc_gpio_init(imx_gpio_ports, ARRAY_SIZE(imx_gpio_ports));
>  }
> +
> +
> +#ifdef CONFIG_MACH_MX21
> +static struct resource mx21_usbhc_resources[] = {
> +	[0] = {
> +		.start	= USBOTG_BASE_ADDR,
> +		.end	= USBOTG_BASE_ADDR + 0x1FFF,
> +		.flags	= IORESOURCE_MEM,
> +	},
> +	[1] = {
> +		.start		= MXC_INT_USBHOST,
> +		.end		= MXC_INT_USBHOST,
> +		.flags		= IORESOURCE_IRQ,
> +	},

Please skip the [x].

> +};
> +
> +struct platform_device mx21_usbhc_device = {
> +	.name		= "imx21-hcd",
> +	.id		= 0,
> +	.dev		= {
> +		.dma_mask = &mx21_usbhc_device.dev.coherent_dma_mask,
> +		.coherent_dma_mask = 0xffffffff,

Shouldn't this be DMA_BIT_MASK(32)?

> +	},
> +	.num_resources	= ARRAY_SIZE(mx21_usbhc_resources),
> +	.resource	= mx21_usbhc_resources,
> +};
> +#endif
> +
> diff --git a/arch/arm/mach-mx2/devices.h b/arch/arm/mach-mx2/devices.h
> index 049005b..056ffdc 100644
> --- a/arch/arm/mach-mx2/devices.h
> +++ b/arch/arm/mach-mx2/devices.h
> @@ -20,3 +20,5 @@ extern struct platform_device mxc_i2c_device0;
>  extern struct platform_device mxc_i2c_device1;
>  extern struct platform_device mxc_sdhc_device0;
>  extern struct platform_device mxc_sdhc_device1;
> +extern struct platform_device mx21_usbhc_device;
> +
> 
> 

-- 
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 |
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux