From patchwork Wed Nov 7 17:37:15 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ashok X-Patchwork-Id: 197689 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 535D72C00DC for ; Thu, 8 Nov 2012 04:37:40 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2BB774A797; Wed, 7 Nov 2012 18:37:37 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id i+g2x5aLv7Ry; Wed, 7 Nov 2012 18:37:37 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 73C184A79E; Wed, 7 Nov 2012 18:37:34 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 0F8424A79E for ; Wed, 7 Nov 2012 18:37:32 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BSxugo3JDUwg for ; Wed, 7 Nov 2012 18:37:31 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-pa0-f44.google.com (mail-pa0-f44.google.com [209.85.220.44]) by theia.denx.de (Postfix) with ESMTPS id 11CF44A797 for ; Wed, 7 Nov 2012 18:37:29 +0100 (CET) Received: by mail-pa0-f44.google.com with SMTP id fb11so1297667pad.3 for ; Wed, 07 Nov 2012 09:37:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=XxN8YREKVgWSZ9Ipvdn6I5evSBCiYr6k3rb2eVTYiJM=; b=my+0qHJK0q3s2evrqeRdY7zk5aN0mypoUtLFck9qxsi3zumTzj2wdNMkE91JTn6IwE goQ+monqEEajThjBq4xvio3vMMgVH+lR9zNenv42DKxN5xvetIOM5M1HCOcNarM5jUH5 UASduJC8PHosFSWdjYIM65TFcvYkkTDdvBIwW+sQhM9aUSGudzfIvcVquVbVnkU0tAad qoWQkcRNSD61hX4H+EmUqGX9+EDSrWdqt5W2AM08+vrg3TRF8L+DqaFF4/5yjghfOiY5 0zzXv9Je0wJzGIme53kQ4sjSC/tVV3EoOQ5rpZQ+mwAByqjOIMwZT9xVE+bqXZmM8J48 U4fg== Received: by 10.68.189.138 with SMTP id gi10mr15520829pbc.165.1352309845362; Wed, 07 Nov 2012 09:37:25 -0800 (PST) Received: from [14.96.89.143] ([14.96.89.143]) by mx.google.com with ESMTPS id c8sm14597761pav.4.2012.11.07.09.37.22 (version=SSLv3 cipher=OTHER); Wed, 07 Nov 2012 09:37:24 -0800 (PST) Message-ID: <509A9C4B.9030301@gmail.com> Date: Wed, 07 Nov 2012 23:07:15 +0530 From: Ashok Kumar Reddy User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-Version: 1.0 To: uboot mailing list , Stefano Babic Subject: [U-Boot] [PATCH] mx35pdk:Use IMX_GPIO_NR macro X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Use IMX_GPO_NR macro Signed-off-by: Ashok Kumar Reddy Acked-by: Stefano Babic --- board/freescale/mx35pdk/mx35pdk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/freescale/mx35pdk/mx35pdk.c b/board/freescale/mx35pdk/mx35pdk.c index 7cb6b30..e9b3827 100644 --- a/board/freescale/mx35pdk/mx35pdk.c +++ b/board/freescale/mx35pdk/mx35pdk.c @@ -246,7 +246,7 @@ int board_late_init(void) mxc_request_iomux(MX35_PIN_COMPARE, MUX_CONFIG_GPIO); mxc_iomux_set_input(MUX_IN_GPIO1_IN_5, INPUT_CTL_PATH0); - gpio_direction_output(37, 1); + gpio_direction_output(IMX_GPIO_NR(2, 5), 1); } val = mc9sdz60_reg_read(MC9SDZ60_REG_GPIO_1) | 0x04;