From patchwork Fri Jun 4 02:25:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Packham X-Patchwork-Id: 1487542 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=GcIqLwh4; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Fx67t5SGPz9s24 for ; Fri, 4 Jun 2021 12:26:00 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 56DA682AD2; Fri, 4 Jun 2021 04:25:52 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="GcIqLwh4"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7E23E82AD8; Fri, 4 Jun 2021 04:25:50 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 8976382AC3 for ; Fri, 4 Jun 2021 04:25:47 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=judge.packham@gmail.com Received: by mail-pj1-x102e.google.com with SMTP id k22-20020a17090aef16b0290163512accedso4382936pjz.0 for ; Thu, 03 Jun 2021 19:25:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9qb/cfmr5YXByG6HB93n2K2T9cFekHBaKVP81ZYuEc4=; b=GcIqLwh446XQzxkIRpZhNUKPn4GCC1bfZMXLs0QMGkHNG2/Ck52La5H/6IgmPCf0oz iLFT7A0hrwt32A4adt94bAWFXpLmk+l7emggHlxBjvIC+pQnr21gqNH82YgTLDRiMC9j euGsj9/aVQtPWQqjoOMsrHlAVhgSvSQsa2VmDeXGQY4pusFBA9wTY84Jp0zuwmCV+efy AGu/rkJrcG6g4KLzBq1PblHdQEF8YQskrOFDdmkz26HJ0rIWs2+Q1ixCw7bAILzrO72g NJDQhAWqnro8uftN4npoRmXzOSyhwj1+zxV6Uv5oLLuJ+kCohxHphJjufpbcbLaI8klW 9d4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9qb/cfmr5YXByG6HB93n2K2T9cFekHBaKVP81ZYuEc4=; b=aDiddv6znztC9rr19SduGLNGB8syhH7H6yveXh/A4ZCC8R9fvWCCu97RE27GBLn2ST NrvYnyZUKtWEFlPVT7poGtwETORfT6dNQBtvuGho3CNGvaPfIOiEP5VkL599jRAiwOHW JylAtVwpZ15Yp47XXm9YMyDwrTIBHEGufC0M9do5+MO6ko3gGTR9JL71k+/SddF3opPB otZ5dAey+NWfv6kCk3iXmWN4E85lzYq2Horpeaf7XTct+yTtaV9FeE4wucKYFL/hUYSm fX4V3o3w86Ztq1yQHzu1Fgli6VngNftNb9iMmGvFxJQueNHvEtE9loxIuAwVXU4mQoU4 fFIw== X-Gm-Message-State: AOAM532ZiWd+Ip60JVanhamnmrM/R5l31VNlI/dZzkUGBwiKnUxckSCA Uwns/VLwkZ5hmUbCwvMO/c5lWJ11BMXwag== X-Google-Smtp-Source: ABdhPJzm07033dek48m/6CP6PcQP7gsMP1XIQuK9Ar1j3O1QPqdhpfvxDa6v0mBtdHUxHq1QiZ8OfA== X-Received: by 2002:a17:903:3112:b029:103:6340:3195 with SMTP id w18-20020a1709033112b029010363403195mr2164986plc.29.1622773545816; Thu, 03 Jun 2021 19:25:45 -0700 (PDT) Received: from chrisp-dl.atlnz.lc ([2001:df5:b000:22:2594:3e21:2060:96c]) by smtp.gmail.com with ESMTPSA id v2sm307812pfm.134.2021.06.03.19.25.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Jun 2021 19:25:45 -0700 (PDT) From: Chris Packham To: u-boot@lists.denx.de Cc: Steve Rae , Scott Branden , Chris Packham , Tom Rini Subject: [PATCH] arm: iproc: Add higher speed configurations Date: Fri, 4 Jun 2021 14:25:36 +1200 Message-Id: <20210604022536.29195-1-judge.packham@gmail.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.4 at phobos.denx.de X-Virus-Status: Clean Add support for 1.3GHz, 1.35GHz and 1.4GHz parts. This is based on equivalent code in Broadcom's LDK 5.0.6. Signed-off-by: Chris Packham --- As Broadcom are currently migrating users to the BCM58525BB1KF14G part I suspect others may want this. In our case because we wanted to still run at 1.2GHz we also had to set CONFIG_ARMCLK to 1200. arch/arm/cpu/armv7/iproc-common/armpll.c | 29 +++++++++++++----------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/arch/arm/cpu/armv7/iproc-common/armpll.c b/arch/arm/cpu/armv7/iproc-common/armpll.c index efa3d9e5a9bd..8c3a323f0654 100644 --- a/arch/arm/cpu/armv7/iproc-common/armpll.c +++ b/arch/arm/cpu/armv7/iproc-common/armpll.c @@ -19,19 +19,22 @@ struct armpll_parameters { }; struct armpll_parameters armpll_clk_tab[] = { - { 25, 64, 1, 1, 0}, - { 100, 64, 1, 1, 2}, - { 400, 64, 1, 1, 6}, - { 448, 71, 713050, 1, 6}, - { 500, 80, 1, 1, 6}, - { 560, 89, 629145, 1, 6}, - { 600, 96, 1, 1, 6}, - { 800, 64, 1, 1, 7}, - { 896, 71, 713050, 1, 7}, - { 1000, 80, 1, 1, 7}, - { 1100, 88, 1, 1, 7}, - { 1120, 89, 629145, 1, 7}, - { 1200, 96, 1, 1, 7}, + { 25, 64, 1, 1, 0}, + { 100, 64, 1, 1, 2}, + { 400, 64, 1, 1, 6}, + { 448, 71, 713050, 1, 6}, + { 500, 80, 1, 1, 6}, + { 560, 89, 629145, 1, 6}, + { 600, 96, 1, 1, 6}, + { 800, 64, 1, 1, 7}, + { 896, 71, 713050, 1, 7}, + { 1000, 80, 1, 1, 7}, + { 1100, 88, 1, 1, 7}, + { 1120, 89, 629145, 1, 7}, + { 1200, 96, 1, 1, 7}, + { 1300, 104, 1, 1, 7}, + { 1350, 108, 1, 1, 7}, + { 1400, 112, 1, 1, 7}, }; uint32_t armpll_config(uint32_t clkmhz)