From patchwork Mon May 31 19:29:00 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Philippe_R=C3=83=C2=A9tornaz?= X-Patchwork-Id: 103320 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o4VJhdZF017014 for ; Mon, 31 May 2010 19:43:39 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756976Ab0EaTni (ORCPT ); Mon, 31 May 2010 15:43:38 -0400 Received: from smtp3.epfl.ch ([128.178.224.226]:47203 "HELO smtp3.epfl.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752929Ab0EaTni (ORCPT ); Mon, 31 May 2010 15:43:38 -0400 X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Mon, 31 May 2010 19:43:39 +0000 (UTC) X-Greylist: delayed 400 seconds by postgrey-1.27 at vger.kernel.org; Mon, 31 May 2010 15:43:37 EDT Received: (qmail 15080 invoked by uid 107); 31 May 2010 19:36:55 -0000 X-Virus-Scanned: ClamAV Received: from lsro1pc40.epfl.ch (128.178.145.86) (authenticated) by smtp3.epfl.ch (AngelmatoPhylax SMTP proxy); Mon, 31 May 2010 21:36:55 +0200 From: =?utf-8?q?Philippe=20R=C3=A9tornaz?= To: s.hauer@pengutronix.de Cc: linux-arm-kernel@lists.infradead.org, dmitry.torokhov@gmail.com, sameo@linux.intel.com, linux-input@vger.kernel.org, broonie@opensource.wolfsonmicro.com, u.kleine-koenig@pengutronix.de, ext-jari.vanhala@nokia.com, valentin.longchamp@epfl.ch, =?utf-8?q?Philippe=20R=C3=A9tornaz?= Subject: [PATCH 2/2] mx31moboard: Add MC13783 power button support Date: Mon, 31 May 2010 21:29:00 +0200 Message-Id: <1275334140-29339-3-git-send-email-philippe.retornaz@epfl.ch> X-Mailer: git-send-email 1.6.3.3 In-Reply-To: <1275334140-29339-2-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> MIME-Version: 1.0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org 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 = {