From patchwork Wed Jan 25 05:25:57 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chander Kashyap X-Patchwork-Id: 6398 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 6CC5723ECA for ; Wed, 25 Jan 2012 05:26:16 +0000 (UTC) Received: from mail-bk0-f52.google.com (mail-bk0-f52.google.com [209.85.214.52]) by fiordland.canonical.com (Postfix) with ESMTP id 4F130A18817 for ; Wed, 25 Jan 2012 05:26:16 +0000 (UTC) Received: by bkar19 with SMTP id r19so4946812bka.11 for ; Tue, 24 Jan 2012 21:26:16 -0800 (PST) Received: by 10.204.200.197 with SMTP id ex5mr6183513bkb.128.1327469176045; Tue, 24 Jan 2012 21:26:16 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.204.130.220 with SMTP id u28cs125473bks; Tue, 24 Jan 2012 21:26:15 -0800 (PST) Received: by 10.68.115.195 with SMTP id jq3mr37693246pbb.34.1327469173834; Tue, 24 Jan 2012 21:26:13 -0800 (PST) Received: from mail-pw0-f50.google.com (mail-pw0-f50.google.com [209.85.160.50]) by mx.google.com with ESMTPS id l9si23939606pbi.21.2012.01.24.21.26.13 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Jan 2012 21:26:13 -0800 (PST) Received-SPF: neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of chander.kashyap@linaro.org) client-ip=209.85.160.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of chander.kashyap@linaro.org) smtp.mail=chander.kashyap@linaro.org Received: by pbdv3 with SMTP id v3so3668490pbd.37 for ; Tue, 24 Jan 2012 21:26:13 -0800 (PST) MIME-Version: 1.0 Received: by 10.68.209.6 with SMTP id mi6mr37037066pbc.87.1327469172655; Tue, 24 Jan 2012 21:26:12 -0800 (PST) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id o7sm3530961pbq.8.2012.01.24.21.26.07 (version=SSLv3 cipher=OTHER); Tue, 24 Jan 2012 21:26:12 -0800 (PST) From: Chander Kashyap To: u-boot@lists.denx.de Cc: mk7.kang@samsung.com, bjlee@samsung.com, patches@linaro.org, samsung@lists.linaro.org, linaro-dev@lists.linaro.org, Chander Kashyap , "HeungJun, Kim" Subject: [PATCH] TRATS: Fix uart gpio config Date: Wed, 25 Jan 2012 10:55:57 +0530 Message-Id: <1327469157-23608-1-git-send-email-chander.kashyap@linaro.org> X-Mailer: git-send-email 1.7.5.4 X-Gm-Message-State: ALoCoQleRuByg/Ndeda01WWIKCgWgmd+2bJdWswzkYo1tPz2McndbfvnEV2d6JzDEY2XQ79rsbrl It updates the missing gpio configuration of UART port. Signed-off-by: Chander Kashyap Cc: HeungJun, Kim Acked-by: Marek Vasut --- board/samsung/trats/trats.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/board/samsung/trats/trats.c b/board/samsung/trats/trats.c index f795ff0..4c9773d 100644 --- a/board/samsung/trats/trats.c +++ b/board/samsung/trats/trats.c @@ -337,7 +337,7 @@ static void board_uart_init(void) int i; /* UART0-UART1 GPIOs (part1) : 0x22222222 */ - for (i = 0; i < 7; i++) { + for (i = 0; i < 8; i++) { s5p_gpio_set_pull(&gpio1->a0, i, GPIO_PULL_NONE); s5p_gpio_cfg_pin(&gpio1->a0, i, GPIO_FUNC(0x2)); } @@ -347,7 +347,7 @@ static void board_uart_init(void) * GPA1CON[3] = I2C_3_SCL (3) * GPA1CON[2] = I2C_3_SDA (3) */ - for (i = 0; i < 5; i++) { + for (i = 0; i < 6; i++) { s5p_gpio_set_pull(&gpio1->a1, i, GPIO_PULL_NONE); s5p_gpio_cfg_pin(&gpio1->a1, i, GPIO_FUNC((i == 2 || i == 3) ? 0x3 : 0x2));