From patchwork Thu Jan 18 04:16:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Packham X-Patchwork-Id: 862743 X-Patchwork-Delegate: sr@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="WToxpeif"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3zMVzl3526z9t2Q for ; Thu, 18 Jan 2018 15:17:39 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id EAD14C21DA6; Thu, 18 Jan 2018 04:16:44 +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=FREEMAIL_FROM, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, 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 85449C21C2F; Thu, 18 Jan 2018 04:16:40 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 9CE44C21E37; Thu, 18 Jan 2018 04:16:34 +0000 (UTC) Received: from mail-pg0-f67.google.com (mail-pg0-f67.google.com [74.125.83.67]) by lists.denx.de (Postfix) with ESMTPS id 88FD9C21E43 for ; Thu, 18 Jan 2018 04:16:30 +0000 (UTC) Received: by mail-pg0-f67.google.com with SMTP id y27so6962169pgc.5 for ; Wed, 17 Jan 2018 20:16:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=7rlJ4N4Mho3+r8Cv6NntySVSqocSuRMGI/o8j6aM7F8=; b=WToxpeifmlmOkwLj+LGW1jatPOfSKzBvGlOumDZHNODnHamGwqFss6yd4smmxCKnwp WKycApbT2vawWbXxHEsbLziOiDw9XpzDcK2c3rKPC29eOBg7EASY0/1+EhvCfC4amxyC UpYBiou7qIBLib5W+nEsXNh5IUEV/rLkQ04sWcr1T7Ewuo8DpAV3mmeS3KJyiQ4MxADU 5wSPIjH2H8R8yRErCntAHlqJdWXu17yNyCfLLjZSKyW2IxwjTm76SskJ10URib0F2Hsw xSZfh4Hdwd7MkBJItK4Rn0nYTG2I6U/zoIxLqWJknWJsS2YzmtIJLD3di620r1h9vnq9 Q4yA== 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; bh=7rlJ4N4Mho3+r8Cv6NntySVSqocSuRMGI/o8j6aM7F8=; b=ips8y/semjlgC+AeyRZ6GOaIu4qp+Ev6CTPCzwWW1D9bF9xVpfvBFKyPelAqTax/ie dHNLtF13YKf85BA7ptgHWbgy1479rQbZTFYrkcHem6T/b06LIw7TDb/QtXYV7sdf+nyf gpEXYnxIBTf+GCqlTsiMbji8AsXlW9Lrby8VnPPOPspRsfoGhaQXuizktof4JkuHyg6M NXwqgSFxW/r9gxUv1SKr0EMgLB3vKZEYbcTDKzwr/nesTiF33rHfFVb22ilitxsXcQjl jnMY/jqvrBnB3TOXDhZNFjqZxT5wTDpopfXWkz5eL4Ymd/cCytBIgt+mNUr0SU+TWIpb I8UQ== X-Gm-Message-State: AKwxytfz/cT9tIhICNlVU41RmUenVW2VaEXLvOFWxU/odL8jMUW+vniO DZjw/4WlY1sLdwaY4z8qyx+Ssiph X-Google-Smtp-Source: ACJfBouJv1gjsbMx4G05zvzfcsKJIM0+5rjo4fe72PuPdi/rBIr1gZ21QiPIdf6RzB64J/6whZX3Qg== X-Received: by 10.124.25.10 with SMTP id c10mr565842plz.200.1516248988988; Wed, 17 Jan 2018 20:16:28 -0800 (PST) Received: from chrisp-dl.ws.atlnz.lc ([2001:df5:b000:1::2]) by smtp.gmail.com with ESMTPSA id g8sm8234526pgs.55.2018.01.17.20.16.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 17 Jan 2018 20:16:28 -0800 (PST) From: Chris Packham To: u-boot@lists.denx.de Date: Thu, 18 Jan 2018 17:16:08 +1300 Message-Id: <20180118041610.20669-3-judge.packham@gmail.com> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180118041610.20669-1-judge.packham@gmail.com> References: <20180118041610.20669-1-judge.packham@gmail.com> Cc: Stefan Roese , Chris Packham Subject: [U-Boot] [PATCH v2 2/4] ddr: marvell: use correct TREFI value 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" The ternary operation had the HIGH/LOW values the wrong way round. Update it to use the correct value. Signed-off-by: Chris Packham --- Changes in v2: - new drivers/ddr/marvell/a38x/ddr3_training.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ddr/marvell/a38x/ddr3_training.c b/drivers/ddr/marvell/a38x/ddr3_training.c index 043143adf08a..2eb6e05783d4 100644 --- a/drivers/ddr/marvell/a38x/ddr3_training.c +++ b/drivers/ddr/marvell/a38x/ddr3_training.c @@ -1375,7 +1375,7 @@ int ddr3_tip_freq_set(u32 dev_num, enum hws_access_type access_type, /* adjust t_refi to new frequency */ t_refi = (tm->interface_params[if_id].interface_temp == - HWS_TEMP_HIGH) ? TREFI_LOW : TREFI_HIGH; + HWS_TEMP_HIGH) ? TREFI_HIGH : TREFI_LOW; t_refi *= 1000; /*psec */ /* HCLK in[ps] */