From patchwork Sat Oct 27 09:17:50 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 1654691 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id 295E5DFAC4 for ; Sat, 27 Oct 2012 09:21:11 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TS2Y9-0007b8-Jf; Sat, 27 Oct 2012 09:19:26 +0000 Received: from mail-pa0-f49.google.com ([209.85.220.49]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TS2XG-0007Hp-9P for linux-arm-kernel@lists.infradead.org; Sat, 27 Oct 2012 09:18:31 +0000 Received: by mail-pa0-f49.google.com with SMTP id bi5so2226901pad.36 for ; Sat, 27 Oct 2012 02:18:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :in-reply-to:references:x-gm-message-state; bh=hXCUws73fqBYododHFgMzofjLS2PEZpUpaJVy8akxiU=; b=FztBm3tU6fst3be80NmUKJwI+XBfHYJtlIMJ+3khHlWlnrGzRtHd7q7KcsHOwvhRvt fGuLvrUMUXE844/l609ngNnTAdvPPmCSa2R99xxivMIFOjrgLUFbMsWyw2ZUyzzLub+1 5Ok9H09a+gKWVP07tGFwfZiYCmUhPRcVQX8Nm7+2VxmuOGV1pkhAWMb6WINcbJ93WQW4 84m3Dz6tWcwZIFW93cWQt2tXbQ6L3z+xwlRCy6O/6avvG4hyOy9CSSeNlYQa+Pc+Uj3b 2Ueby5w9uOOEIME0/Tj3a9gUqb76IIzUflNLamzyuZoiWERQ2YyT0h/nkBW2K46JR8Xl uXBA== Received: by 10.68.138.198 with SMTP id qs6mr77454105pbb.151.1351329510019; Sat, 27 Oct 2012 02:18:30 -0700 (PDT) Received: from localhost ([122.167.99.215]) by mx.google.com with ESMTPS id iq3sm2564247pbc.5.2012.10.27.02.18.27 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 27 Oct 2012 02:18:29 -0700 (PDT) From: Viresh Kumar To: linus.walleij@linaro.org Subject: [PATCH 5/9] pinctrl: SPEAr1310: Fix value of PERIP_CFG reigster and MCIF_SEL_SHIFT Date: Sat, 27 Oct 2012 14:47:50 +0530 Message-Id: X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e In-Reply-To: References: In-Reply-To: References: X-Gm-Message-State: ALoCoQn2Ja6q7b9c3JocJLEt3osP8mz5KffgMqVAhzhYKKFKXaDWdy28XmavzQHimygUclZxrb1A X-Spam-Note: CRM114 invocation failed X-Spam-Score: -0.1 (/) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.220.49 listed in list.dnswl.org] 2.5 SUSPICIOUS_RECIPS Similar addresses in recipient list -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Vipul Kumar Samar , Viresh Kumar , spear-devel@list.st.com, linux-arm-kernel@lists.infradead.org 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 From: Vipul Kumar Samar This patch fixes two macros: PERIP_CFG registers offset and MCIF selection shift. Signed-off-by: Vipul Kumar Samar Signed-off-by: Viresh Kumar --- drivers/pinctrl/spear/pinctrl-spear1310.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/spear/pinctrl-spear1310.c b/drivers/pinctrl/spear/pinctrl-spear1310.c index c720d09..baf98ae 100644 --- a/drivers/pinctrl/spear/pinctrl-spear1310.c +++ b/drivers/pinctrl/spear/pinctrl-spear1310.c @@ -25,8 +25,8 @@ static const struct pinctrl_pin_desc spear1310_pins[] = { }; /* registers */ -#define PERIP_CFG 0x32C - #define MCIF_SEL_SHIFT 3 +#define PERIP_CFG 0x3B0 + #define MCIF_SEL_SHIFT 5 #define MCIF_SEL_SD (0x1 << MCIF_SEL_SHIFT) #define MCIF_SEL_CF (0x2 << MCIF_SEL_SHIFT) #define MCIF_SEL_XD (0x3 << MCIF_SEL_SHIFT)