Message ID | 20190716115745.12585-49-jagan@amarulasolutions.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-amarula+bncBD7MFH7A7EEBB4HYW3UQKGQEISKG7CA@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 3D2373F08F for <linux-amarula@patchwork.amarulasolutions.com>; Tue, 16 Jul 2019 14:00:49 +0200 (CEST) Received: by mail-pf1-f199.google.com with SMTP id 6sf12243260pfi.6 for <linux-amarula@patchwork.amarulasolutions.com>; Tue, 16 Jul 2019 05:00:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1563278448; cv=pass; d=google.com; s=arc-20160816; b=O010wLFKHJIKvaIuEwxbRvVoNr+b6+vA3RjJ/r5reltUR9K1SreUa8COnzIHO+Fe+B xgcKKRBbYtBOKf9Vbvsr02mkoPj4bKsbl8Jy2Rrasd/tBuAcBdmPMyXg45dbZlSZOkiD GJt8spPw1BWSTO5sT48AhYzZofuWUHqmHfVXiwU7R63y8CtB62Qr1jLESMG8R54DM663 VEE07OAXXhjV56tSdCuAhUmRM9JVLBEwjGmLCfZNkAX3j+XNvLrDhKRmDUn6mRwNEG51 eWJ7QWb5M+gwMfgynHNimlryCk4PRxCmR9BAzQ2lURZTUZep9ZYLHR6B1sw+YeM0JAlJ H+YQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=WQT0/Zi/t3V+WCAUJa2Wj2NyK8ku7TJ3jWbH7BNZmJo=; b=sph0njJ1okzPo7IBX9k4Lnvdvk7uU0ppL6vP1cBieqLbMmTUSARyYnBM6OakuYYEBm 3nGKsdjVTeWhbsSns/zDr9OpWFEGnJmid/Pf6M5pgh7u9BF3ZQx59BshUXlg5/beTzAn Z3cr6X7TyRSN0vrQjB3IczSoN/17ShtkOZxnPAkkL0YRFDfecPsLWcduqWeqPtQuaAT1 d6TT2b0sKzXYJM18EVY3INwgaW0jBC44egwKVrRuhsk03F3UEBK0Qg4+CGb2i6V1KfpH uLBR4grS0xovOKGONHb5ni86ilWlqNfmqwz5b63/JY2+5GJGX8vchjxYrpbc3MYiRGk2 rcSw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=JNz42c7m; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=WQT0/Zi/t3V+WCAUJa2Wj2NyK8ku7TJ3jWbH7BNZmJo=; b=VXHiHJqIj0uzjVrP/Quv9hTxhTeheWHjaBfCdlZZLlS+X5f0HFvPwUeGmZla8UfLOu Vvb6hOVj8UWpeeOq4BnhQNS2dC11vfa5vhuKcPIvDNKL+Fbgew68BtJYq5KRSDd5IeRA KwmhzyEzBsKpBrDc6KeunkoWfQ3OWP83jVzqE= 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:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=WQT0/Zi/t3V+WCAUJa2Wj2NyK8ku7TJ3jWbH7BNZmJo=; b=Lmu+SYhd39h+r5luKoa8NKCfWqMBi4QaUiwANvtYmq4JzQNo2SLQYGlXjqUMEIabuB XQbq/20KBke/1tJP7OSNXyd/WTudjiVGbsGRpBwMp3Oz8NoZZ34Fpc+k1tCM6qOLevAo wlZqRPKWYuLMoIlKOIiuSA+LePd2FGwli/FmPB9gdFkky196WFJH5nLdzop499XK54/6 6yA9hx/AHrBZ++s8hD9WRbY7hHV2HkB9Wnyo8WcVKP8nFHlZrkwDIGFGZMvPO4QS534j R53TU/CmNGbVTjrsqyulLOlEYvvqen+VGVVtnrgAkC3+jGVilCv5pVLdlFhx4z82QxzY GMJA== X-Gm-Message-State: APjAAAVmJgDlgsjcyFEO7QZuHv3hEw2HEg8w7zWVSN/qAiUsAKgPmtkw uWOsqy8fER62dFblm6N6jo9gic5z X-Google-Smtp-Source: APXvYqx2gs6MQbUxQ1Hqv6+jmCCGjllA8McEQqR4hjHD3cbzSX41kPrgv6toI2zQKznob8EOMZJZiQ== X-Received: by 2002:a65:4841:: with SMTP id i1mr32911984pgs.316.1563278448038; Tue, 16 Jul 2019 05:00:48 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:6b81:: with SMTP id p1ls4223371plk.6.gmail; Tue, 16 Jul 2019 05:00:47 -0700 (PDT) X-Received: by 2002:a17:902:5c3:: with SMTP id f61mr32344090plf.98.1563278447720; Tue, 16 Jul 2019 05:00:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563278447; cv=none; d=google.com; s=arc-20160816; b=luNYhGP9AXYVE61cSpJDUqkgYAHLVFau94Fs/pK0+nADpkP/+j/SnvI1Fletkd62l/ wjHFQt3QsOwFzfujrVrBTfbe4gpo0AUbIeQIzX1ccgK/BVn3FP7Kdxi/Bqwuj/4VDRmy f1wWAKLkf/7mLhUih0eV3PS0LSPf1NwPaWfwCKESExZu6j6h7rBFs5MypbwoFoHlqUt3 9wdaPzKWbqs4kYeacqH/lbCOfOhuUznrbFMfPP1gnLfj/bvJrGzXJlZxjHbe+Ytb/bem SVEVPvlKvzPCzwGt9HCBqS+sSRC3jfcY+Cjay4VHKIt2ainmy7TrCOdogqDXlpJJkkDU SAcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=VZZq8s/MFgMQ4+KCax6f04xB7tKYUG01ZRKiMSlIBrI=; b=EK0lZQDdbKQ4Q62+48kTOOWy5o3ZuJHBkv3cf3MBk6bmdUDUoAhVNXJZcgpvy1i6iV iruGLqxCcjkJvF7BVFaQrmr5rrKnrI4H8hdulAAB7i7+0mCS9s/gOxcUG7sxi3mJN3My JBD6DGY+elRAh1gTYBFTMx3GqeR1/OVhArQCE0IGYD+0EHA8Az1UHwg8Z4XqRSFBZFcO ATnApIoCv9xiVZwbHd0EPctIHvFsmqW0dYHS56/UVuWzAdwPaoLI8skLSUR3cnRETvqE 7VqqDUHQtCJL1lKVjIHi7aNp8/a3GFUaZnSK1pbbvtfYAw9haIP7VDC5p0KoLNeZWDJt +r1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=JNz42c7m; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id o6sor10412393pgp.76.2019.07.16.05.00.47 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Tue, 16 Jul 2019 05:00:47 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a63:7a01:: with SMTP id v1mr33887212pgc.310.1563278447333; Tue, 16 Jul 2019 05:00:47 -0700 (PDT) Received: from localhost.localdomain ([49.206.201.107]) by smtp.gmail.com with ESMTPSA id z24sm36269566pfr.51.2019.07.16.05.00.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Jul 2019 05:00:46 -0700 (PDT) From: Jagan Teki <jagan@amarulasolutions.com> To: Simon Glass <sjg@chromium.org>, Philipp Tomsich <philipp.tomsich@theobroma-systems.com>, Kever Yang <kever.yang@rock-chips.com>, YouMin Chen <cym@rock-chips.com>, u-boot@lists.denx.de Cc: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>, gajjar04akash@gmail.com, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki <jagan@amarulasolutions.com> Subject: [PATCH v3 48/57] clk: rockchip: rk3399: Set 400MHz ddr clock Date: Tue, 16 Jul 2019 17:27:36 +0530 Message-Id: <20190716115745.12585-49-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190716115745.12585-1-jagan@amarulasolutions.com> References: <20190716115745.12585-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=JNz42c7m; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: <linux-amarula.amarulasolutions.com> X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>, <mailto:linux-amarula@amarulasolutions.com> List-Help: <https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>, <mailto:linux-amarula+help@amarulasolutions.com> List-Archive: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/> List-Unsubscribe: <mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>, <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe> |
Series |
|
Related |
show
|
On 2019/7/16 下午7:57, Jagan Teki wrote: > Add support for setting 400MHz ddr clock. > > Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> > Signed-off-by: YouMin Chen <cym@rock-chips.com> Reviewed-by: Kever Yang <Kever.yang@rock-chips.com> Thanks, - Kever > --- > drivers/clk/rockchip/clk_rk3399.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/clk/rockchip/clk_rk3399.c b/drivers/clk/rockchip/clk_rk3399.c > index 1de21c9f3e..79007b8682 100644 > --- a/drivers/clk/rockchip/clk_rk3399.c > +++ b/drivers/clk/rockchip/clk_rk3399.c > @@ -839,6 +839,10 @@ static ulong rk3399_ddr_set_clk(struct rk3399_cru *cru, > dpll_cfg = (struct pll_div) > {.refdiv = 2, .fbdiv = 100, .postdiv1 = 4, .postdiv2 = 1}; > break; > + case 400 * MHz: > + dpll_cfg = (struct pll_div) > + {.refdiv = 1, .fbdiv = 50, .postdiv1 = 3, .postdiv2 = 1}; > + break; > case 666 * MHz: > dpll_cfg = (struct pll_div) > {.refdiv = 2, .fbdiv = 111, .postdiv1 = 2, .postdiv2 = 1};
diff --git a/drivers/clk/rockchip/clk_rk3399.c b/drivers/clk/rockchip/clk_rk3399.c index 1de21c9f3e..79007b8682 100644 --- a/drivers/clk/rockchip/clk_rk3399.c +++ b/drivers/clk/rockchip/clk_rk3399.c @@ -839,6 +839,10 @@ static ulong rk3399_ddr_set_clk(struct rk3399_cru *cru, dpll_cfg = (struct pll_div) {.refdiv = 2, .fbdiv = 100, .postdiv1 = 4, .postdiv2 = 1}; break; + case 400 * MHz: + dpll_cfg = (struct pll_div) + {.refdiv = 1, .fbdiv = 50, .postdiv1 = 3, .postdiv2 = 1}; + break; case 666 * MHz: dpll_cfg = (struct pll_div) {.refdiv = 2, .fbdiv = 111, .postdiv1 = 2, .postdiv2 = 1};