From patchwork Mon Dec 8 15:36:30 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 418741 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 5885B140082 for ; Tue, 9 Dec 2014 02:36:42 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1C8AF4B6F3; Mon, 8 Dec 2014 16:36:39 +0100 (CET) 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 B9VOqhDpRV9B; Mon, 8 Dec 2014 16:36:38 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5AD134B6E8; Mon, 8 Dec 2014 16:36:38 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 719B74B6E8 for ; Mon, 8 Dec 2014 16:36:34 +0100 (CET) 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 5abm27xvat5i for ; Mon, 8 Dec 2014 16:36:34 +0100 (CET) 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-lb0-f181.google.com (mail-lb0-f181.google.com [209.85.217.181]) by theia.denx.de (Postfix) with ESMTPS id 400974B6E7 for ; Mon, 8 Dec 2014 16:36:30 +0100 (CET) Received: by mail-lb0-f181.google.com with SMTP id l4so3897229lbv.26 for ; Mon, 08 Dec 2014 07:36:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=+fCeFs3fjnmCQaILkBpfgvw39E+yKFLwa8FxI8uVWlU=; b=A6thob47l185CL5/0OiTO21D73mMp6QFP8zh52gJOJNsf/q87KoooyeSca3Q+v8NmU uWlAH6B/kVIHnnbgCxknzuzkaS3vUlb4U+tUXu/NFlHPgonNzwsOUJfq3qhIXzWAxrbA bDCeDQ+hbZ1MpUkzjuPWfI3KOBHv/SBYRAnBmBlNxmUrlB7k2n44fIqCrCTPi0D6x52o 1u4Mtl40SVPH4olK0Yt5s5rH3O++byqR9s250epTVeaxp6R5aOUwm71ZEiWlsQ5B2fGi PaBUX/A7hdqFHndrB0Nto4/+yrNEwzUE1G705J92omc08fKK1pCBn3ytSOYRcqbs+nfD D0tQ== MIME-Version: 1.0 X-Received: by 10.152.203.137 with SMTP id kq9mr16786647lac.51.1418052990119; Mon, 08 Dec 2014 07:36:30 -0800 (PST) Received: by 10.152.179.137 with HTTP; Mon, 8 Dec 2014 07:36:30 -0800 (PST) In-Reply-To: <5485C19E.1030907@denx.de> References: <1418045465-32179-1-git-send-email-sr@denx.de> <5485B67A.8000800@denx.de> <5485C19E.1030907@denx.de> Date: Mon, 8 Dec 2014 13:36:30 -0200 Message-ID: From: Fabio Estevam To: Stefan Roese Cc: Fabio Estevam , U-Boot-Denx Subject: Re: [U-Boot] [PATCH RFC] arm: mx6: Add CCGR0 configuration to default DCD (spl_sd.cfg) X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.13 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de On Mon, Dec 8, 2014 at 1:19 PM, Stefan Roese wrote: > Hi Fabio, > > On 08.12.2014 15:51, Fabio Estevam wrote: >>> >>> Could you test this on one of your board? If your board also fails to >>> boot >>> via the "bmode mmc0" command if the CCGR0 register value is missing? >> >> >> I am currently out of the office without access to my mx6 board, > > > I see. Perhaps you could do that once you are back in the office... Sure, I will test it and will let you know how it goes. In the meantime, I am wondering if the change below would allow your board to boot: Regards, Fabio Estevam --- a/arch/arm/cpu/armv7/mx6/soc.c +++ b/arch/arm/cpu/armv7/mx6/soc.c @@ -105,6 +105,10 @@ void init_aips(void) #ifdef CONFIG_MX6SX struct aipstz_regs *aips3; #endif + struct mxc_ccm_reg *ccm = (struct mxc_ccm_reg *)CCM_BASE_ADDR; + + /* Turn on AIPS1 and AIPS2 clocks */ + setbits_le32(&ccm->CCGR0, 0xf); aips1 = (struct aipstz_regs *)AIPS1_BASE_ADDR; aips2 = (struct aipstz_regs *)AIPS2_BASE_ADDR;