From patchwork Sat May 12 00:39:11 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 158655 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 D44F3B701D for ; Sat, 12 May 2012 10:39:32 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1A70B28149; Sat, 12 May 2012 02:39:30 +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 2LzbRTINT7iW; Sat, 12 May 2012 02:39:29 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1415F2814B; Sat, 12 May 2012 02:39:28 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 803442814B for ; Sat, 12 May 2012 02:39:25 +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 DOtI+9pDUfCP for ; Sat, 12 May 2012 02:39:24 +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-yw0-f44.google.com (mail-yw0-f44.google.com [209.85.213.44]) by theia.denx.de (Postfix) with ESMTPS id 477AA28149 for ; Sat, 12 May 2012 02:39:22 +0200 (CEST) Received: by yhq56 with SMTP id 56so3103578yhq.3 for ; Fri, 11 May 2012 17:39:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=gjhIKAmUcxRgYjm1GovnEMCPdh6RfZbCHYGtGTJhVUo=; b=pakxMG1lr+ooarOeQi2g2tKR6B5lm0oJCxhqbdYwEC+/Dpzk3wqdm+oDIUM8Xt5LXe fTzx9h2J+z+/AF5iFSjG4/gStnEir1WgvCbZ38kvdhkMdYDeKm1l+k5SOQi8XRfxMTqu gtnrRkUMDyZxNtdyTsTv1uyCdUGO+WSi/+yzGThqqExjj30b7xMW96MB8n5CFWgBaguY JpWPPDxECs75R2cg4RkcIWa7VrgdlFL9e6yVSunFIl1ktZpI9QtBPxm5NHhTn1oFft+F r39B7CerrPXTJFN6cQfbkoFFeXyJUKToAtLCqAyRe2R2CYdWGmHawm9qfOJIDIYhyuBK 7PDQ== Received: by 10.236.170.71 with SMTP id o47mr88154yhl.104.1336783160434; Fri, 11 May 2012 17:39:20 -0700 (PDT) Received: from localhost.localdomain ([189.101.178.179]) by mx.google.com with ESMTPS id g4sm49479007yhf.12.2012.05.11.17.39.17 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 11 May 2012 17:39:19 -0700 (PDT) From: Fabio Estevam To: u-boot@lists.denx.de Date: Fri, 11 May 2012 21:39:11 -0300 Message-Id: <1336783151-7567-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.7.1 Cc: Fabio Estevam Subject: [U-Boot] [PATCH] mx53: Fix mask for SATA reference 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 From: Fabio Estevam SATA_ALT_REF_CLK field corresponds to bits 1 and 2 of offset 0x180c. Fix the mask for these bits. Signed-off-by: Fabio Estevam --- Stefano, I don't have a SATA disk handy to try this. arch/arm/cpu/armv7/mx5/clock.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/cpu/armv7/mx5/clock.c b/arch/arm/cpu/armv7/mx5/clock.c index fc2406b..64862b3 100644 --- a/arch/arm/cpu/armv7/mx5/clock.c +++ b/arch/arm/cpu/armv7/mx5/clock.c @@ -843,7 +843,7 @@ void mxc_set_sata_internal_clock(void) set_usb_phy1_clk(); - writel((readl(tmp_base) & (~0x7)) | 0x4, tmp_base); + writel((readl(tmp_base) & (~0x6)) | 0x4, tmp_base); } #endif