From patchwork Sun Nov 25 20:17:04 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philippe Reynes X-Patchwork-Id: 1799621 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 30D563FC5A for ; Sun, 25 Nov 2012 20:20:36 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Tciee-0002w0-Nl; Sun, 25 Nov 2012 20:18:16 +0000 Received: from smtp4-g21.free.fr ([2a01:e0c:1:1599::13]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Tcie8-0002r1-K4 for linux-arm-kernel@lists.infradead.org; Sun, 25 Nov 2012 20:17:45 +0000 Received: from localhost.localdomain (unknown [88.161.33.221]) by smtp4-g21.free.fr (Postfix) with ESMTP id D7F8D4C8173; Sun, 25 Nov 2012 21:17:38 +0100 (CET) From: Philippe Reynes To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 3/4] imx27-dt: configure i2c1 gpio on armadeus apf27 Date: Sun, 25 Nov 2012 21:17:04 +0100 Message-Id: <1353874625-14754-4-git-send-email-tremyfr@yahoo.fr> X-Mailer: git-send-email 1.7.4.4 In-Reply-To: <1353874625-14754-1-git-send-email-tremyfr@yahoo.fr> References: <1353874625-14754-1-git-send-email-tremyfr@yahoo.fr> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20121125_151745_383085_0A235B8F X-CRM114-Status: UNSURE ( 9.02 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.0 (-) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-1.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (tremyfr[at]yahoo.fr) 0.0 DKIM_ADSP_CUSTOM_MED No valid author signature, adsp_override is CUSTOM_MED -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.9 NML_ADSP_CUSTOM_MED ADSP custom_med hit, and not from a mailing list Cc: Philippe Reynes , s.hauer@pengutronix.de, eric.jarrige@armadeus.org, julien.boibessot@armadeus.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Signed-off-by: Philippe Reynes --- arch/arm/mach-imx/imx27-dt.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-imx/imx27-dt.c b/arch/arm/mach-imx/imx27-dt.c index f212f81..2eb7014 100644 --- a/arch/arm/mach-imx/imx27-dt.c +++ b/arch/arm/mach-imx/imx27-dt.c @@ -17,6 +17,7 @@ #include #include #include +#include #include static const struct of_dev_auxdata imx27_auxdata_lookup[] __initconst = { @@ -48,6 +49,10 @@ int apf27_lan8700_wakeup(struct phy_device *phydev) static void __init apf27_init(void) { phy_register_fixup_for_id("imx27-fec.0-1:1f", apf27_lan8700_wakeup); + + /* configure i2c1 gpio */ + mxc_gpio_mode((GPIO_PORTD | GPIO_OUT | GPIO_PF | 17)); + mxc_gpio_mode((GPIO_PORTD | GPIO_OUT | GPIO_PF | 18)); } static void __init imx27_dt_init(void)