From patchwork Wed Dec 6 05:16:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 120789 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp6625454qgn; Tue, 5 Dec 2017 21:17:06 -0800 (PST) X-Google-Smtp-Source: AGs4zMarid9tqAVEPEYUN7NHi2aejzHlA5OqztQpXccEF+R2uyCBkvOIi8IRRGZUhByoUeMsJ/K9 X-Received: by 10.80.206.26 with SMTP id y26mr8647235edi.117.1512537426252; Tue, 05 Dec 2017 21:17:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512537426; cv=none; d=google.com; s=arc-20160816; b=yfKARBfdn9owKp2iYAKZ2dmVuMpjXG3fiDexKBOKWbvr/TSwBPKHw3jE1GmFV47kzu RyNz8e0Wp2zsPyaNF2UduOgsRvQ1u7Gb79XiRScpyEI8Rkb/GZgM4lQBr/hLBw+/W0An 2LvZMXEf83aWdXAt30m/7zz9k+wxISyDq8BEwh9k+AMCIdsbX1doXZOa0yhNouBOXn6g q30HWex5ZBy/D9imagHyPwzeTmOQJONV871z1Sg04POIXGJHPJOsK5uGmCKa/Spk0erx pDbNr+2qrxnMkeUCg+3CqjFCPJK+mZOiOuqqt5xfoWs3Sk97o+OazWXzrcDk3JoGzP1O zBVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :dkim-filter:arc-authentication-results; bh=eFFGfsorRlOTRyjcM/HKd0jwr9hQOfW8zjB357pNmg8=; b=ngi1aUc50iQokUPRTLM7IpafimUd905aUkDlVoyQXovYj4pIkd0zWMn+ArWU9okhcG Kve30YYWvp4rMeegi2avObn32moFaZIrOMIpMEMweNEy2yPNRzcABglj0kMasC1RsbIC 22aluINJcVCFJJijzVC/i2CWjCkaL0krKoy/WYaivEkQsqrhYwWO62+bPkz8vZjX/Uz+ IQ0cp3l1JbUxKpNSdlXG+2dK02Sd4iEz3WhSxeDiNtSkdvnuMBLFkuKOHvbuqZLeBVrb MWYNk4ko9lh34xJ7TGuxmNzKwt5irXE6sNQv86FbDYXGx9X0/0aQgDbOU+9Ld8H9yC1d Fs6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=mbPddcf9; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id r38si1950170edd.139.2017.12.05.21.17.04; Tue, 05 Dec 2017 21:17:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=mbPddcf9; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by lists.denx.de (Postfix, from userid 105) id A67A3C21F7A; Wed, 6 Dec 2017 05:17:01 +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=T_DKIM_INVALID 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 633B3C21DCE; Wed, 6 Dec 2017 05:16:58 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id AC909C21DE8; Wed, 6 Dec 2017 05:16:56 +0000 (UTC) Received: from conuserg-11.nifty.com (conuserg-11.nifty.com [210.131.2.78]) by lists.denx.de (Postfix) with ESMTPS id 6FDCBC21DCE for ; Wed, 6 Dec 2017 05:16:55 +0000 (UTC) Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-11.nifty.com with ESMTP id vB65GdxQ011389; Wed, 6 Dec 2017 14:16:40 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com vB65GdxQ011389 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1512537400; bh=1gx2MOp3TvbJU0ef1CIrg0tixPkd3W6d4n1PYPlB0Hs=; h=From:To:Cc:Subject:Date:From; b=mbPddcf9z7liZiGRrWBDwRecYM40sb2TMsOl6b66MOHcptECJmXnasQzGP2bbWkGm DftwOiPryvlTllas3i5GSwL2/yW4aqpdXGVYZ+Kqs9YS6bowiYkm91eQaY8vpySIkQ xpO16Y2VZHtE4B6kJkulmxzZ0XD/lOyG6yGy6+PW3PwcTAW64tOwIBveSB277ggEpF AcyZHQVnFPOMmF76vMcf84Ml7sGvvMycOOwUnxdkizdbNbDmtNmPU96madKFVTn1fs OT1D2rIJShBbjJmrksYGdaBxMxUbZLBpQ8XMMajbVW9oZGXRwJTyHpXbeDrlC+eKTV AVdCywjJZKKDg== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Wed, 6 Dec 2017 14:16:32 +0900 Message-Id: <1512537394-9608-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Subject: [U-Boot] [PATCH 1/3] ARM: uniphier: fix SSCPLL init code for LD11 SoC 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" From: Dai Okamura Commit 682e09ff9f35 ("ARM: uniphier: add PLL init code for LD20 SoC") missed to write the computed value to the SSCPLLCTRL2 register. Fixes: 682e09ff9f35 ("ARM: uniphier: add PLL init code for LD20 SoC") Signed-off-by: Dai Okamura Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/clk/pll-base-ld20.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-uniphier/clk/pll-base-ld20.c b/arch/arm/mach-uniphier/clk/pll-base-ld20.c index 3aa42f8..45fdf0a 100644 --- a/arch/arm/mach-uniphier/clk/pll-base-ld20.c +++ b/arch/arm/mach-uniphier/clk/pll-base-ld20.c @@ -48,6 +48,7 @@ int uniphier_ld20_sscpll_init(unsigned long reg_base, unsigned int freq, tmp = readl(base + 4); tmp &= ~SC_PLLCTRL2_SSC_JK_MASK; tmp |= (41859 * freq / divn) & SC_PLLCTRL2_SSC_JK_MASK; + writel(tmp, base + 4); udelay(50); }