From patchwork Tue Jun 11 14:50:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 507 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id DD31D3F08A for ; Tue, 11 Jun 2019 16:55:35 +0200 (CEST) Received: by mail-pg1-f200.google.com with SMTP id a21sf9258299pgh.11 for ; Tue, 11 Jun 2019 07:55:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1560264934; cv=pass; d=google.com; s=arc-20160816; b=QQcgjXtGl42CO1/MdUFuWUIg9z8kEZPmXrflHwvJ609wAQY8PhJkueq7IfIVJzTvuE 9wyfZ1xuSm4F/pNaabSjkrCbc0xk5SaNdCCiLa9mGwSMl8EfgxdHTfeUBn7LL+wKfZ1N Gj737IDPPQt9UqeDsXw35qliC8x9QUcItMOcbMx9H2+2I2/3PH74CWPhMt8AkmGvaLyS cR97boYEljdlZQUwOKqHYIvdIRov08SdFvusyzTjkMFsrUPwXQsaY8KnjeFkZh74eCQR xo3L3VIiaRLp3gcZLUJdcMP384L+M8tWnvbQJQXa34DfHQnLJ9gdsX4oDQEyKx34SwNO z/4A== 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=RHS64AMRATBWuWTFfHudzKUFToZff70fmB0SemU/P94=; b=nSboTGPQRA+xyFM8RFqnVeHZfPtuZkxa0nTf9LnoPGoqf1Rwr0s5dXUQssyXJRADQC jE16V5ELFR6TtUpB7ofWOhDWzDGuhXOUP9qyLN+iPm76JPoC5J1T14Xu8k6YYH3F816W RryjvXVQ8m4Cru0FaaN2eF9qxnYuL2NseVhOAjRwvQCfuuv++gljOSEGehgz2PKkYqTV r0vMlaMwOucpb8HMuyg062CxF55yPFfcWpQJ1WimU6zwC/PyGcNyTZdwk3xKLR3/LX6B AJmiPERECE0A0+Lo6RYp0zNgiGRCpRaaG6Vcg+VGsSlM/WmltneWtzDRW0lSSg8cql5o 4Xlg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Jmo4EHno; 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=RHS64AMRATBWuWTFfHudzKUFToZff70fmB0SemU/P94=; b=O7IVH/osQiXivnJZVGTZA8Oy/wl9V3qw15KMMylaSgHxjMi4haq64MKMuNZU2QtjD7 hoGgSdvtbSHnimkO4VvZcR/3J1KgJYAoD6+kWEHPmgspQw3On3b0iv75SbzEQp1sR+hi Ind3a58kLD0vRTFek1LBcN3mqpA6rJdXo8E2I= 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=RHS64AMRATBWuWTFfHudzKUFToZff70fmB0SemU/P94=; b=Ehi3XIocl9Zz4oVuwmW+Qj6alAey6p/mQIKS25lYSmg0stVWzT7CXetmuRGoWZleqT Zpt8qMfQQxU2xdM3We3yIDmDPXix7juWi8EU/oG9NwaoOkVfGKpYbyGxwK1lHn3tAfRN UB7Q8w7bxtLATWAxkDg7/silTlZnEEIyzeG9EAVRJJakKcUYVB6YD3QCli+6kJx5zPeN 54KyvS1B+0f7SAb/CIRsQJV/SgTE2ViCTi7pejtG3ZZcN474UH8JZt7MHLYaoAwRbKcW lPR/FNx4PY/Sq+rF22+TEQ4KmGstJTK1esoAAMz4R1+K9zhXmgIdlApl1ELWjPsrv+r+ dneg== X-Gm-Message-State: APjAAAVquAF1rVILzyVPyRHHtOpAuSlnefpebhCOGH3tJUBv3MAqTIiR JrIqAeYJ3t08nBKwrWO0Z0WRMzcb X-Google-Smtp-Source: APXvYqymNbOTlPX3kP/zJGMlQGAfg9DuhIxXutA/Y5bpXeNp66zsLPr0CAHHrcbB5qfDPS3Eaj01RQ== X-Received: by 2002:a65:5c88:: with SMTP id a8mr20242576pgt.388.1560264934625; Tue, 11 Jun 2019 07:55:34 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:aa7:8614:: with SMTP id p20ls4495796pfn.14.gmail; Tue, 11 Jun 2019 07:55:34 -0700 (PDT) X-Received: by 2002:a63:de4b:: with SMTP id y11mr18647875pgi.301.1560264934232; Tue, 11 Jun 2019 07:55:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560264934; cv=none; d=google.com; s=arc-20160816; b=u2P+Sl5uXpBice+VDeuwMclmNLH0lmdPQOh9RPgfvwJgIRnvoMZZLSMbCcUQKhk4wP LwAsvm0s1DkkYga0/i5u9rbZyb+taYob+1t/oo0ViS5mwvS2iJ5yJHMsxOhZWJFg0h6+ Fggp1uUcbN5X2hZ4L5Uh8DY5UNL1p1H8FvolRWUUclxusDPI3MiGiXeaM1RM3GTGZ06b wTvzfptBygZP20eqvcuPwou0X7ljB0y6MBjFUYJL4jifCX1xeVS2mRte9WXzNn4zt5im 7MXe4ZQP1Fh5tvS1piT5thHNEcm7TaSpTd5S230w1aeGr6xdecN6vYUnrXiaODMrTZe/ X0gQ== 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=zCTHA7AbQTHQFenEvVby/jfWdGvdtti0ZUnuqqPQWH4=; b=yCo5b7cuTcIgfnNjhgdIoGc0gibiWL7Q+MGM0lFqgvQxVw5R0HVn3sG/2s28l9pnUs 1U/wdqFKiChwkVC9vjBDnK6kGopatxKZi+RuOjWRPEwAJbKeQenUNayrP1adulfJ2tbW jH2KQZfTSy2ZiZkqM3DqnDJ7WjYWNWQT47KFcKsX3RLe3tQb/IBSmG+TewqZqIb0rmmX EE3UJFcPDKdmfHFOoefhP4r9n41PWRBQt6Jy/nomtAGKmWoOJ53kPlvcgb9ETBWlomss V5ilaY6oIOVWyBXiHgYBmpqWu3QygNdaWRRkmZV1SxOIy/iC4Do3LtDoGxBlFcgWEoj7 PKPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Jmo4EHno; 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 gn6sor15420958plb.66.2019.06.11.07.55.34 for (Google Transport Security); Tue, 11 Jun 2019 07:55:34 -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:a17:902:467:: with SMTP id 94mr20751079ple.131.1560264933956; Tue, 11 Jun 2019 07:55:33 -0700 (PDT) Received: from localhost.localdomain ([115.97.180.18]) by smtp.gmail.com with ESMTPSA id e9sm16206208pfn.154.2019.06.11.07.55.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Jun 2019 07:55:33 -0700 (PDT) From: Jagan Teki To: Simon Glass , Philipp Tomsich , Kever Yang , YouMin Chen , u-boot@lists.denx.de Cc: gajjar04akash@gmail.com, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH 56/92] ram: rk3399: Add spaces in pctl_cfg Date: Tue, 11 Jun 2019 20:20:59 +0530 Message-Id: <20190611145135.21399-57-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190611145135.21399-1-jagan@amarulasolutions.com> References: <20190611145135.21399-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=Jmo4EHno; 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: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Trivial patch, add proper spaces in pctl_cfg. Signed-off-by: Jagan Teki --- drivers/ram/rockchip/sdram_rk3399.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/ram/rockchip/sdram_rk3399.c b/drivers/ram/rockchip/sdram_rk3399.c index ce38f72374..7251532ad0 100644 --- a/drivers/ram/rockchip/sdram_rk3399.c +++ b/drivers/ram/rockchip/sdram_rk3399.c @@ -559,8 +559,10 @@ static int pctl_cfg(struct dram_info *dram, const struct chan_info *chan, copy_to_reg(&denali_ctl[1], ¶ms_ctl[1], sizeof(struct rk3399_ddr_pctl_regs) - 4); writel(params_ctl[0], &denali_ctl[0]); + copy_to_reg(denali_pi, &sdram_params->pi_regs.denali_pi[0], sizeof(struct rk3399_ddr_pi_regs)); + /* rank count need to set for init */ set_memory_map(chan, channel, sdram_params);