From patchwork Mon Apr 18 04:53:03 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chander Kashyap X-Patchwork-Id: 91681 X-Patchwork-Delegate: promsoft@gmail.com 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 619DA1007D5 for ; Mon, 18 Apr 2011 14:53:35 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E6F9D28078; Mon, 18 Apr 2011 06:53:31 +0200 (CEST) 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 qPtJ+PYHiCHz; Mon, 18 Apr 2011 06:53:31 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C6A1A2809B; Mon, 18 Apr 2011 06:53:29 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B02B02809B for ; Mon, 18 Apr 2011 06:53:27 +0200 (CEST) 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 CKI+nZK+0LGM for ; Mon, 18 Apr 2011 06:53:27 +0200 (CEST) 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-wy0-f172.google.com (mail-wy0-f172.google.com [74.125.82.172]) by theia.denx.de (Postfix) with ESMTPS id 0414228078 for ; Mon, 18 Apr 2011 06:53:25 +0200 (CEST) Received: by wyb29 with SMTP id 29so3677608wyb.3 for ; Sun, 17 Apr 2011 21:53:22 -0700 (PDT) Received: by 10.227.206.84 with SMTP id ft20mr2337986wbb.161.1303102402454; Sun, 17 Apr 2011 21:53:22 -0700 (PDT) Received: from chander-ubuntu ([115.113.119.130]) by mx.google.com with ESMTPS id o23sm3015108wbc.10.2011.04.17.21.53.16 (version=SSLv3 cipher=OTHER); Sun, 17 Apr 2011 21:53:21 -0700 (PDT) From: Chander Kashyap To: u-boot@lists.denx.de Date: Mon, 18 Apr 2011 10:23:03 +0530 Message-Id: <1303102383-24476-1-git-send-email-chander.kashyap@linaro.org> X-Mailer: git-send-email 1.7.1 Cc: linaro-dev@lists.linaro.org, bjlee@samsung.com, patches@linaro.org, mk7.kang@samsung.com, Chander Kashyap , samsung@lists.linaro.org Subject: [U-Boot] [PATCH] S5PC2XX: GPIO Macro Values Corrected. X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 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 Macro values for Pull Up and Driver Strength were wrong. Signed-off-by: Chander Kashyap --- arch/arm/include/asm/arch-s5pc2xx/gpio.h | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) -- 1.7.1 diff --git a/arch/arm/include/asm/arch-s5pc2xx/gpio.h b/arch/arm/include/asm/arch-s5pc2xx/gpio.h index 05e5b3e..38303e4 100644 --- a/arch/arm/include/asm/arch-s5pc2xx/gpio.h +++ b/arch/arm/include/asm/arch-s5pc2xx/gpio.h @@ -99,14 +99,13 @@ void gpio_set_rate(struct s5p_gpio_bank *bank, int gpio, int mode); /* Pull mode */ #define GPIO_PULL_NONE 0x0 #define GPIO_PULL_DOWN 0x1 -#define GPIO_PULL_UP 0x2 +#define GPIO_PULL_UP 0x3 /* Drive Strength level */ #define GPIO_DRV_1X 0x0 -#define GPIO_DRV_2X 0x1 -#define GPIO_DRV_3X 0x2 +#define GPIO_DRV_3X 0x1 +#define GPIO_DRV_2X 0x2 #define GPIO_DRV_4X 0x3 #define GPIO_DRV_FAST 0x0 #define GPIO_DRV_SLOW 0x1 - #endif