linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: "Philippe Rétornaz" <philippe.retornaz@epfl.ch>
Cc: linux-arm-kernel@lists.infradead.org,
	amit.kucheria@canonical.com, dmitry.torokhov@gmail.com,
	sameo@linux.intel.com, linux-input@vger.kernel.org,
	broonie@opensource.wolfsonmicro.com,
	u.kleine-koenig@pengutronix.de, gaowanlong@cn.fujitsu.com,
	shawn.guo@freescale.com
Subject: Re: [PATCH 6/6] mx31moboard: Add MC13783 power button support
Date: Thu, 25 Aug 2011 11:50:12 +0200	[thread overview]
Message-ID: <20110825095012.GR31404@pengutronix.de> (raw)
In-Reply-To: <1311344232-29902-7-git-send-email-philippe.retornaz@epfl.ch>

On Fri, Jul 22, 2011 at 04:17:12PM +0200, Philippe Rétornaz wrote:
> Add the power-on button on mx31moboard using MC13783 PMIC.
> 
> Signed-off-by: Philippe Rétornaz <philippe.retornaz@epfl.ch>

Please ping once the rest is merged.

Sascha

> ---
>  arch/arm/mach-imx/mach-mx31moboard.c |    8 ++++++++
>  1 files changed, 8 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/arm/mach-imx/mach-mx31moboard.c b/arch/arm/mach-imx/mach-mx31moboard.c
> index 579ca1f..2a43492 100644
> --- a/arch/arm/mach-imx/mach-mx31moboard.c
> +++ b/arch/arm/mach-imx/mach-mx31moboard.c
> @@ -28,6 +28,7 @@
>  #include <linux/spi/spi.h>
>  #include <linux/types.h>
>  #include <linux/memblock.h>
> +#include <linux/input.h>
>  
>  #include <linux/usb/otg.h>
>  #include <linux/usb/ulpi.h>
> @@ -264,12 +265,19 @@ static struct mc13783_leds_platform_data moboard_leds = {
>  	.tc2_period = MC13783_LED_PERIOD_10MS,
>  };
>  
> +static struct mc13783_buttons_platform_data moboard_buttons = {
> +	.b1on_flags = MC13783_BUTTON_DBNC_750MS | MC13783_BUTTON_ENABLE |
> +			MC13783_BUTTON_POL_INVERT,
> +	.b1on_key = KEY_POWER,
> +};
> +
>  static struct mc13xxx_platform_data moboard_pmic = {
>  	.regulators = {
>  		.regulators = moboard_regulators,
>  		.num_regulators = ARRAY_SIZE(moboard_regulators),
>  	},
>  	.leds = &moboard_leds,
> +	.buttons = &moboard_buttons,
>  	.flags = MC13XXX_USE_RTC | MC13XXX_USE_ADC,
>  };
>  
> -- 
> 1.6.3.3
> 
> 

-- 
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-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2011-08-25  9:50 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-22 14:17 [PATCH v6 0/6] mc13783: add pwr button support Philippe Rétornaz
2011-07-22 14:17 ` [PATCH 1/6] mc13xxx: Unconditionally register regulator subdevice Philippe Rétornaz
2011-07-22 14:17   ` [PATCH 2/6] mc13xxx: implicitly register led subdevice Philippe Rétornaz
2011-07-22 14:17     ` [PATCH 3/6] mc13xxx: remove obsolete leds and regulators flags Philippe Rétornaz
2011-07-22 14:17       ` [PATCH 4/6] mc13xxx: remove unused define Philippe Rétornaz
2011-07-22 14:17         ` [PATCH 5/6] mc13783: add power button support Philippe Rétornaz
2011-07-22 14:17           ` [PATCH 6/6] mx31moboard: Add MC13783 " Philippe Rétornaz
2011-08-25  9:50             ` Sascha Hauer [this message]
2011-08-25  9:49       ` [PATCH 3/6] mc13xxx: remove obsolete leds and regulators flags Sascha Hauer
2011-07-24  3:44 ` [PATCH v6 0/6] mc13783: add pwr button support Shawn Guo
2011-07-25  6:49   ` Philippe Rétornaz
2011-07-25  7:13     ` Shawn Guo
2011-07-25  7:12 ` Wanlong Gao
2011-07-27 10:34 ` Samuel Ortiz
2011-08-03  7:17   ` Philippe Rétornaz
  -- strict thread matches above, loose matches on Subject: below --
2011-07-21 18:04 [PATCH v5 " Philippe Rétornaz
2011-07-21 18:04 ` [PATCH 1/6] mc13xxx: Unconditionally register regulator subdevice Philippe Rétornaz
2011-07-21 18:04   ` [PATCH 2/6] mc13xxx: implicitly register led subdevice Philippe Rétornaz
2011-07-21 18:04     ` [PATCH 3/6] mc13xxx: remove obsolete leds and regualtors flags Philippe Rétornaz
2011-07-21 18:04       ` [PATCH 4/6] mc13xxx: remove unused define Philippe Rétornaz
2011-07-21 18:04         ` [PATCH 5/6] mc13783: add power button support Philippe Rétornaz
2011-07-21 18:04           ` [PATCH 6/6] mx31moboard: Add MC13783 " Philippe Rétornaz

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=20110825095012.GR31404@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=amit.kucheria@canonical.com \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=dmitry.torokhov@gmail.com \
    --cc=gaowanlong@cn.fujitsu.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-input@vger.kernel.org \
    --cc=philippe.retornaz@epfl.ch \
    --cc=sameo@linux.intel.com \
    --cc=shawn.guo@freescale.com \
    --cc=u.kleine-koenig@pengutronix.de \
    /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).