[PATCH 09/10] MXS: Enable USB on M28EVK

Sergei Shtylyov sshtylyov at mvista.com
Wed Apr 18 08:08:49 EDT 2012


Hello.

On 18-04-2012 6:07, Marek Vasut wrote:

> Enable the second USB port on M28EVK board.

> Signed-off-by: Marek Vasut<marex at denx.de>
> Cc: Chen Peter-B29397<B29397 at freescale.com>
> Cc: Detlev Zundel<dzu at denx.de>
> Cc: Fabio Estevam<festevam at gmail.com>
> Cc: Li Frank-B20596<B20596 at freescale.com>
> Cc: Lin Tony-B19295<B19295 at freescale.com>
> Cc: Linux USB<linux-usb at vger.kernel.org>
> Cc: Sascha Hauer<s.hauer at pengutronix.de>
> Cc: Shawn Guo<shawn.guo at freescale.com>
> Cc: Shawn Guo<shawn.guo at linaro.org>
> Cc: Stefano Babic<sbabic at denx.de>
> Cc: Subodh Nijsure<snijsure at grid-net.com>
> Cc: Tony Lin<tony.lin at freescale.com>
> Cc: Wolfgang Denk<wd at denx.de>
> ---
>   arch/arm/mach-mxs/Kconfig       |    2 ++
>   arch/arm/mach-mxs/mach-m28evk.c |    9 +++++++++
>   2 files changed, 11 insertions(+)

> diff --git a/arch/arm/mach-mxs/Kconfig b/arch/arm/mach-mxs/Kconfig
> index 9dbf29f..5b5566c 100644
> --- a/arch/arm/mach-mxs/Kconfig
> +++ b/arch/arm/mach-mxs/Kconfig
[...]
> @@ -377,6 +382,10 @@ static void __init m28evk_init(void)
>   	mx28_add_ts(&touch_pdata);
>
>   	mx28_add_gpmi_nand(&m28evk_gpmi_nand_data);
> +
> +	gpio_request_one(MXS_GPIO_NR(3, 13), GPIOF_OUT_INIT_LOW, "USB Power");

    Still can fail, and you don't handle it (unlike the next patch).

WBR, Sergei



More information about the linux-arm-kernel mailing list