From patchwork Wed Feb 8 12:34:41 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 140135 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 86294B71C0 for ; Wed, 8 Feb 2012 23:35:06 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 64F89280C7; Wed, 8 Feb 2012 13:35:03 +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 C3FRVWzpp1R6; Wed, 8 Feb 2012 13:35:01 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9D003280AA; Wed, 8 Feb 2012 13:35:00 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E2B5A280A6 for ; Wed, 8 Feb 2012 13:34:57 +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 DcU8vS2bsHjP for ; Wed, 8 Feb 2012 13:34:57 +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-gy0-f172.google.com (mail-gy0-f172.google.com [209.85.160.172]) by theia.denx.de (Postfix) with ESMTPS id 1586E2809F for ; Wed, 8 Feb 2012 13:34:55 +0100 (CET) Received: by ghbg16 with SMTP id g16so142329ghb.3 for ; Wed, 08 Feb 2012 04:34:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; bh=TO5G6I5OuRztGEpSACK1DnnXGsgqjuqNUUe7fg7pbbA=; b=DdVjt2P3ptiduq3GdBeUpmzaajeDcHo8B4hYYjVamXOH+QuAgwIGJsD16BHZ97NWMj LYesUIO09PKBMXFEJ0ltlTW4av+kidnBGiIcvvh1qTzc1ZvskGGEg6DXCXDWFIwkT9dd dyXMYveWd2ebkVPG4yabcIEMVTfHpw2KU8db4= Received: by 10.236.184.8 with SMTP id r8mr36960681yhm.110.1328704494531; Wed, 08 Feb 2012 04:34:54 -0800 (PST) Received: from localhost.localdomain ([187.106.61.98]) by mx.google.com with ESMTPS id d5sm2774203anm.22.2012.02.08.04.34.51 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 08 Feb 2012 04:34:53 -0800 (PST) From: Fabio Estevam To: u-boot@lists.denx.de Date: Wed, 8 Feb 2012 10:34:41 -0200 Message-Id: <1328704485-1505-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.7.1 Cc: Fabio Estevam Subject: [U-Boot] [PATCH 1/5] mx53loco: Use gpio_direction_input prior to gpio_get_value 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: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Use gpio_direction_input prior to gpio_get_value. Cc: Jason Liu Signed-off-by: Fabio Estevam Acked-by: Stefano Babic Acked-by: Jason Liu --- board/freescale/mx53loco/mx53loco.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/board/freescale/mx53loco/mx53loco.c b/board/freescale/mx53loco/mx53loco.c index e6345e7..c2c26f0 100644 --- a/board/freescale/mx53loco/mx53loco.c +++ b/board/freescale/mx53loco/mx53loco.c @@ -153,7 +153,9 @@ int board_mmc_getcd(struct mmc *mmc) int ret; mxc_request_iomux(MX53_PIN_EIM_DA11, IOMUX_CONFIG_ALT1); + gpio_direction_input(75); mxc_request_iomux(MX53_PIN_EIM_DA13, IOMUX_CONFIG_ALT1); + gpio_direction_input(77); if (cfg->esdhc_base == MMC_SDHC1_BASE_ADDR) ret = !gpio_get_value(77); /* GPIO3_13 */