From patchwork Mon Sep 23 11:37:20 2013
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Pierre Aubert
X-Patchwork-Id: 277154
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 2E7FE2C010F
for ;
Mon, 23 Sep 2013 21:38:11 +1000 (EST)
Received: from localhost (localhost [127.0.0.1])
by theia.denx.de (Postfix) with ESMTP id BB1074A05F;
Mon, 23 Sep 2013 13:38:04 +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 xUo8kmqvIrG3; Mon, 23 Sep 2013 13:38:04 +0200 (CEST)
Received: from theia.denx.de (localhost [127.0.0.1])
by theia.denx.de (Postfix) with ESMTP id 3E4384A061;
Mon, 23 Sep 2013 13:37:58 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
by theia.denx.de (Postfix) with ESMTP id 51D214A061
for ; Mon, 23 Sep 2013 13:37:52 +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 0fMz2tpXfs4B for ;
Mon, 23 Sep 2013 13:37:46 +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 esa2.staubli.c3s2.iphmx.com (esa2.staubli.c3s2.iphmx.com
[68.232.139.29]) by theia.denx.de (Postfix) with ESMTPS id 6E3914A05F
for ; Mon, 23 Sep 2013 13:37:40 +0200 (CEST)
X-IronPort-AV: E=Sophos;i="4.90,961,1371074400"; d="scan'208";a="6057404"
Received: from unknown (HELO fav03not.staubli.pri) ([217.109.88.35])
by esa2.staubli.c3s2.iphmx.com with ESMTP; 23 Sep 2013 13:37:34 +0200
Received: from favd8744.staubli.pri ([10.10.100.28])
by fav03not.staubli.pri (Lotus Domino Release 8.5.1FP5)
with ESMTP id 2013092313373393-3582 ;
Mon, 23 Sep 2013 13:37:33 +0200
Received: from favd8744.staubli.pri (localhost [127.0.0.1])
by favd8744.staubli.pri (8.14.5/8.14.5) with ESMTP id r8NBbYBw006014;
Mon, 23 Sep 2013 13:37:34 +0200
Received: (from aubert@localhost)
by favd8744.staubli.pri (8.14.5/8.14.5/Submit) id r8NBbXVk006013;
Mon, 23 Sep 2013 13:37:33 +0200
From: Pierre Aubert
To: u-boot@lists.denx.de
Date: Mon, 23 Sep 2013 13:37:20 +0200
Message-Id:
<69b4c52c2f049e7def7dc9d4b668a8a90243d9c5.1379935205.git.p.aubert@staubli.com>
X-Mailer: git-send-email 1.7.6.5
X-MIMETrack: Itemize by SMTP Server on FAV03NOT/FAVERGES/STAUBLI(Release
8.5.1FP5|September 29, 2010) at 23/09/2013 13:37:33,
Serialize by Router on FAV03NOT/FAVERGES/STAUBLI(Release
8.5.1FP5|September 29, 2010) at 23/09/2013 13:37:34,
Serialize complete at 23/09/2013 13:37:34
Cc: Pierre Aubert
Subject: [U-Boot] [PATCH] mx6: Fix use of improper value in enable_ipu_clock
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
The value MXC_CCM_CCGR3_IPU1_IPU_DI0_OFFSET that was used to initialize
the CCGR3 register caused an undefined value for CG0.
Signed-off-by: Pierre Aubert
CC: Stefano Babic
Acked-by: Eric Nelson
---
arch/arm/cpu/armv7/mx6/clock.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/arm/cpu/armv7/mx6/clock.c b/arch/arm/cpu/armv7/mx6/clock.c
index 7efb0d2..0f7bcbc 100644
--- a/arch/arm/cpu/armv7/mx6/clock.c
+++ b/arch/arm/cpu/armv7/mx6/clock.c
@@ -457,7 +457,7 @@ void enable_ipu_clock(void)
struct mxc_ccm_reg *mxc_ccm = (struct mxc_ccm_reg *)CCM_BASE_ADDR;
int reg;
reg = readl(&mxc_ccm->CCGR3);
- reg |= MXC_CCM_CCGR3_IPU1_IPU_DI0_OFFSET;
+ reg |= MXC_CCM_CCGR3_IPU1_IPU_MASK;
writel(reg, &mxc_ccm->CCGR3);
}
/***************************************************/