linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: marek.vasut@gmail.com (Marek Vasut)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/6] PalmTC: switch to using gpio-vbus transceiver
Date: Thu, 3 Feb 2011 00:59:08 +0100	[thread overview]
Message-ID: <201102030059.08589.marek.vasut@gmail.com> (raw)
In-Reply-To: <1296666003-31647-4-git-send-email-dbaryshkov@gmail.com>

On Wednesday 02 February 2011 18:00:00 Dmitry Eremin-Solenikov wrote:
> Switch from handling gpio-vbus in pxa25x_udc to using standard gpio-vbus
> tranceiver.
> 
> Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
> Cc: Marek Vasut <marek.vasut@gmail.com>

Looks good

Acked-by: Marek Vasut <marek.vasut@gmail.com>
> ---
>  arch/arm/mach-pxa/palmtc.c |   14 ++++++++++++--
>  1 files changed, 12 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/arm/mach-pxa/palmtc.c b/arch/arm/mach-pxa/palmtc.c
> index 2131d58..fcc4490 100644
> --- a/arch/arm/mach-pxa/palmtc.c
> +++ b/arch/arm/mach-pxa/palmtc.c
> @@ -25,6 +25,7 @@
>  #include <linux/power_supply.h>
>  #include <linux/gpio_keys.h>
>  #include <linux/mtd/physmap.h>
> +#include <linux/usb/gpio_vbus.h>
> 
>  #include <asm/mach-types.h>
>  #include <asm/mach/arch.h>
> @@ -294,12 +295,21 @@ static struct platform_device palmtc_keyboard = {
>  /*************************************************************************
> ***** * UDC
>  
> **************************************************************************
> ****/ -static struct pxa2xx_udc_mach_info palmtc_udc_info __initdata = {
> +static struct gpio_vbus_mach_info palmtc_udc_info = {
>  	.gpio_vbus		= GPIO_NR_PALMTC_USB_DETECT_N,
>  	.gpio_vbus_inverted	= 1,
>  	.gpio_pullup		= GPIO_NR_PALMTC_USB_POWER,
>  };
> 
> +static struct platform_device palmtc_gpio_vbus = {
> +	.name	= "gpio-vbus",
> +	.id	= -1,
> +	.dev	= {
> +		.platform_data	= &palmtc_udc_info,
> +	},
> +};
> +
> +
>  /*************************************************************************
> ***** * Touchscreen / Battery / GPIO-extender
>  
> **************************************************************************
> ****/ @@ -391,6 +401,7 @@ static struct platform_device *devices[]
> __initdata = { &palmtc_keyboard,
>  	&palmtc_pxa_keys,
>  	&palmtc_flash,
> +	&palmtc_gpio_vbus,
>  };
> 
>  static void __init palmtc_init(void)
> @@ -404,7 +415,6 @@ static void __init palmtc_init(void)
> 
>  	set_pxa_fb_info(&palmtc_lcd_screen);
>  	pxa_set_mci_info(&palmtc_mci_platform_data);
> -	pxa_set_udc_info(&palmtc_udc_info);
>  	pxa_set_ac97_info(NULL);
>  	pxa_set_ficp_info(&palmtc_ficp_platform_data);

  reply	other threads:[~2011-02-02 23:59 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-02 16:59 [PATCH 0/6] Switch pxa25x_udc devices to use gpio-vbus tranceiver Dmitry Eremin-Solenikov
2011-02-02 16:59 ` [PATCH 1/6] eseries: switch to using gpio-vbus transceiver Dmitry Eremin-Solenikov
2011-02-02 16:59 ` [PATCH 2/6] gumstix: " Dmitry Eremin-Solenikov
2011-02-02 17:00 ` [PATCH 3/6] PalmTC: " Dmitry Eremin-Solenikov
2011-02-02 23:59   ` Marek Vasut [this message]
2011-02-02 17:00 ` [PATCH 4/6] tosa: " Dmitry Eremin-Solenikov
2011-02-02 17:00 ` [PATCH 5/6] pxa25x_udc: stop handling gpio-vbus internally Dmitry Eremin-Solenikov
2011-02-02 17:00 ` [PATCH 6/6] pxa2xx: drop gpio_vbus field from info struct Dmitry Eremin-Solenikov
2011-02-09 22:26 ` [PATCH 0/6] Switch pxa25x_udc devices to use gpio-vbus tranceiver Dmitry Eremin-Solenikov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201102030059.08589.marek.vasut@gmail.com \
    --to=marek.vasut@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).