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

From: [email-masked] (Sergei Shtylyov)
Date: Wed, 18 Apr 2012 16:08:49 +0400

Hello.

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

> Enable the second USB port on M28EVK board.

> Signed-off-by: Marek Vasut<[email-masked]>
> Cc: Chen Peter-B29397<[email-masked]>
> Cc: Detlev Zundel<[email-masked]>
> Cc: Fabio Estevam<[email-masked]>
> Cc: Li Frank-B20596<[email-masked]>
> Cc: Lin Tony-B19295<[email-masked]>
> Cc: Linux USB<[email-masked]>
> Cc: Sascha Hauer<[email-masked]>
> Cc: Shawn Guo<[email-masked]>
> Cc: Shawn Guo<[email-masked]>
> Cc: Stefano Babic<[email-masked]>
> Cc: Subodh Nijsure<[email-masked]>
> Cc: Tony Lin<[email-masked]>
> Cc: Wolfgang Denk<[email-masked]>
> ---
>   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