From patchwork Thu Jul 6 08:33:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Leroy X-Patchwork-Id: 785039 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3x3B214sFKz9s7B for ; Thu, 6 Jul 2017 18:37:29 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 887A6C21F8D; Thu, 6 Jul 2017 08:34:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id D209FC21F73; Thu, 6 Jul 2017 08:33:51 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 8E0C1C21F2D; Thu, 6 Jul 2017 08:33:20 +0000 (UTC) Received: from pegase1.c-s.fr (pegase1.c-s.fr [93.17.236.30]) by lists.denx.de (Postfix) with ESMTPS id E0B6DC21D71 for ; Thu, 6 Jul 2017 08:33:16 +0000 (UTC) Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 3x39wv2zKQz9ttBk; Thu, 6 Jul 2017 10:33:03 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id ATt77D6F961c; Thu, 6 Jul 2017 10:33:03 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 3x39wv2Qbrz9ttBT; Thu, 6 Jul 2017 10:33:03 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 434858B7A6; Thu, 6 Jul 2017 10:33:16 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id fvqPZYsucVgu; Thu, 6 Jul 2017 10:33:16 +0200 (CEST) Received: from pc13941vm.idsi0.si.c-s.fr (po15451.idsi0.si.c-s.fr [172.25.231.8]) by messagerie.si.c-s.fr (Postfix) with ESMTP id E92718B74B; Thu, 6 Jul 2017 10:33:15 +0200 (CEST) Received: by pc13941vm.idsi0.si.c-s.fr (Postfix, from userid 0) id C62B069745; Thu, 6 Jul 2017 10:33:15 +0200 (CEST) Message-Id: <466a431b5430548a018c21222080ed4040596147.1499329461.git.christophe.leroy@c-s.fr> In-Reply-To: References: From: Christophe Leroy To: Wolfgang Denk , Heiko Schocher , Tom Rini Date: Thu, 6 Jul 2017 10:33:15 +0200 (CEST) Cc: u-boot@lists.denx.de Subject: [U-Boot] [PATCH v2 04/10] powerpc, 8xx: Implement GLL2 ERRATA X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Signed-off-by: Christophe Leroy Reviewed-by: Heiko Schocher Reviewed-by: Wolfgang Denk --- arch/powerpc/cpu/mpc8xx/cpu_init.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/powerpc/cpu/mpc8xx/cpu_init.c b/arch/powerpc/cpu/mpc8xx/cpu_init.c index cf1280983a..52406e8483 100644 --- a/arch/powerpc/cpu/mpc8xx/cpu_init.c +++ b/arch/powerpc/cpu/mpc8xx/cpu_init.c @@ -51,6 +51,14 @@ void cpu_init_f(immap_t __iomem *immr) clrsetbits_be32(&immr->im_clkrst.car_sccr, ~SCCR_MASK, CONFIG_SYS_SCCR); + /* BUG MPC866 GLL2 consideration */ + reg = in_be32(&immr->im_clkrst.car_sccr); + /* probably we use the mode 1:2:1 */ + if ((reg & 0x00060000) == 0x00020000) { + clrbits_be32(&immr->im_clkrst.car_sccr, 0x00060000); + setbits_be32(&immr->im_clkrst.car_sccr, 0x00020000); + } + /* PLL (CPU clock) settings (15-30) */ out_be32(&immr->im_clkrstk.cark_plprcrk, KAPWR_KEY);