From mboxrd@z Thu Jan 1 00:00:00 1970 From: s.hauer@pengutronix.de (Sascha Hauer) Date: Thu, 3 Jun 2010 10:31:55 +0200 Subject: [PATCH 2/2] mx31moboard: Add MC13783 power button support In-Reply-To: <1275334140-29339-3-git-send-email-philippe.retornaz@epfl.ch> References: <1275334140-29339-1-git-send-email-philippe.retornaz@epfl.ch> <1275334140-29339-2-git-send-email-philippe.retornaz@epfl.ch> <1275334140-29339-3-git-send-email-philippe.retornaz@epfl.ch> Message-ID: <20100603083155.GW26820@pengutronix.de> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Hi Philippe, Please ping me once the LED/Power button support is merged. I'll take care of the platform patches. Sascha On Mon, May 31, 2010 at 09:29:00PM +0200, Philippe R?tornaz wrote: > Add the power-on button on mx31moboard using MC13783 PMIC. > > Signed-off-by: Philippe R?tornaz > --- > arch/arm/mach-mx3/mach-mx31moboard.c | 10 +++++++++- > 1 files changed, 9 insertions(+), 1 deletions(-) > > diff --git a/arch/arm/mach-mx3/mach-mx31moboard.c b/arch/arm/mach-mx3/mach-mx31moboard.c > index 62b5e40..7a8f078 100644 > --- a/arch/arm/mach-mx3/mach-mx31moboard.c > +++ b/arch/arm/mach-mx3/mach-mx31moboard.c > @@ -31,6 +31,7 @@ > #include > #include > #include > +#include > > #include > #include > @@ -262,12 +263,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 | MC13783_BUTTON_EMUL_CAD, > + .b1on_key = KEY_POWER, > +}; > + > static struct mc13783_platform_data moboard_pmic = { > .regulators = moboard_regulators, > .num_regulators = ARRAY_SIZE(moboard_regulators), > .leds = &moboard_leds, > + .buttons = &moboard_buttons, > .flags = MC13783_USE_REGULATOR | MC13783_USE_RTC | > - MC13783_USE_ADC | MC13783_USE_LED, > + MC13783_USE_ADC | MC13783_USE_LED | MC13783_USE_BUTTON, > }; > > static struct spi_board_info moboard_spi_board_info[] __initdata = { > -- > 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 |