From patchwork Fri Sep 23 07:57:17 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kever Yang X-Patchwork-Id: 673929 X-Patchwork-Delegate: sjg@chromium.org 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 3sgQhM5FThz9t0v for ; Fri, 23 Sep 2016 17:57:55 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=eadFgtt9; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8FE00A76E0; Fri, 23 Sep 2016 09:57:53 +0200 (CEST) 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 nRIXFink8QtQ; Fri, 23 Sep 2016 09:57:53 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 86EE3A76C9; Fri, 23 Sep 2016 09:57:52 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7ABCDA76B9 for ; Fri, 23 Sep 2016 09:57:43 +0200 (CEST) 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 gw1NihFZT3TC for ; Fri, 23 Sep 2016 09:57:43 +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-pf0-f195.google.com (mail-pf0-f195.google.com [209.85.192.195]) by theia.denx.de (Postfix) with ESMTPS id 08BD3A76B4 for ; Fri, 23 Sep 2016 09:57:39 +0200 (CEST) Received: by mail-pf0-f195.google.com with SMTP id q2so4904607pfj.0 for ; Fri, 23 Sep 2016 00:57:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=Gq6ZGZNp4FO5+WM8mQoslwvw58+OQ3OqYZjD7glqnYU=; b=eadFgtt998GQiK+dmGz2Fi1oJRhUrwhRX9lZ830X87glsnUazeo3iWMHINcvlgCCy9 kmS7EhBKOynfHj8hfyD0W7tlfR/RHZnsMOZX6LO+db8xxlShHWim3uCi0/BZLSohsB/0 U5aOaWRUyagRWVRS3L6+YfgW0V3oKbWsFt139B9X31AobP6cIBpXG9jT/c7oTHnBdG3W BRlfrCq9nUQZFn9r9hBFdLEQCxh1UKCLC/tT0EJpL9v4VtYolotUuV5drUE2X7KD2sOC CRCX5N+RMM6oIiQWbrAJmPCfaU83jsQeeqHwuH2zk/Jh5icIiTj2siRva0CFb3FKLESq Vqvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=Gq6ZGZNp4FO5+WM8mQoslwvw58+OQ3OqYZjD7glqnYU=; b=TM/Jus2tHrAejMLhEiSg88COHgvyK1W6HwV7KbGT4x3FRAJmMn6p9Q5MOvSqTMxMGl RJu8xxRrzcoptCjlQefrozrGkBgbAM3g9UVV8PVwfwVFlREa1TOJEEWsiBOcXpi/Ya0J p7tC2R8qbpJltB6pN9OipcP5UIz79Aa1p4K4HDAcTcJ+wipsYOFJraWMQIQvtwb/ob+y VF4rXunaqAvqBnNSHQkom/xzCiD5l6oPi/zm4SeUDkhyj3f0DdXvnsDt/J1qe3Q733MC TyA/6KdtCsz0ZfExhSkw/fuvwIjMwLnq7SFPYbL7j8LQM6DcGwBq53YugQ3KXD7GzCJ3 fqjA== X-Gm-Message-State: AE9vXwMk14RmrUYu1weSWfNFEhdwKvaugqYX6yS+iLyBfe3Szg/EJdBRdUc0/y4ImIu3XA== X-Received: by 10.98.55.71 with SMTP id e68mr8353708pfa.147.1474617458311; Fri, 23 Sep 2016 00:57:38 -0700 (PDT) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id xw10sm9217475pab.0.2016.09.23.00.57.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 23 Sep 2016 00:57:37 -0700 (PDT) From: Kever Yang To: sjg@chromium.org Date: Fri, 23 Sep 2016 15:57:17 +0800 Message-Id: <1474617443-11325-2-git-send-email-kever.yang@rock-chips.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1474617443-11325-1-git-send-email-kever.yang@rock-chips.com> References: <1474617443-11325-1-git-send-email-kever.yang@rock-chips.com> Cc: Lin huang , u-boot@lists.denx.de, zhangqing@rock-chips.com Subject: [U-Boot] [PATCH v3 1/7] rockchip: rk3399: update PPLL and pmu_pclk frequency X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 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" Update PPLL to 676MHz and PMU_PCLK to 48MHz, because: 1. 48MHz can make sure the pwm can get exact 50% duty ratio, but 99MHz can not, 2. We think 48MHz is fast enough for pmu pclk and it is lower power cost than 99MHz, 3. PPLL 676 MHz and PMU_PCLK 48MHz are the clock rate we are using internally for kernel,it suppose not to change the bus clock like pmu_pclk in kernel, so we want to change it in uboot. Signed-off-by: Kever Yang Acked-by: Simon Glass --- Changes in v3: None Changes in v2: None arch/arm/include/asm/arch-rockchip/cru_rk3399.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/include/asm/arch-rockchip/cru_rk3399.h b/arch/arm/include/asm/arch-rockchip/cru_rk3399.h index c919f47..6776e48 100644 --- a/arch/arm/include/asm/arch-rockchip/cru_rk3399.h +++ b/arch/arm/include/asm/arch-rockchip/cru_rk3399.h @@ -64,9 +64,9 @@ check_member(rk3399_cru, sdio1_con[1], 0x594); #define APLL_HZ (600*MHz) #define GPLL_HZ (594*MHz) #define CPLL_HZ (384*MHz) -#define PPLL_HZ (594*MHz) +#define PPLL_HZ (676*MHz) -#define PMU_PCLK_HZ (99*MHz) +#define PMU_PCLK_HZ (48*MHz) #define ACLKM_CORE_HZ (300*MHz) #define ATCLK_CORE_HZ (300*MHz)