Message ID | 20190611145135.21399-50-jagan@amarulasolutions.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2E55014BB for <patchwork-linux-rockchip@patchwork.kernel.org>; Tue, 11 Jun 2019 14:55:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1EB20288D1 for <patchwork-linux-rockchip@patchwork.kernel.org>; Tue, 11 Jun 2019 14:55:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 12F6B2887E; Tue, 11 Jun 2019 14:55:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B8530288B7 for <patchwork-linux-rockchip@patchwork.kernel.org>; Tue, 11 Jun 2019 14:55:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=mRifgjdGZnE8nmOtxd+Xnt0PN7gI+tJtOKS5456+MB0=; b=RXLTMJhN8fdKes ncqaVloYEVSbIwkISW+qUlHJuzcLvXVHoHS9TrhY583vS9EUzOf+IW3k6l0GsYh3KojnZ2AuK4rdb 0gv0KiQuzVcHWrInOxPzCfV29jwZizTDpNbKeQyOfSH42JSc+q2uRNjHDjdv0Fnmpk+qWBLDOheGu WDCrzHBdvYJOARm0VGK9ttrpjKcEfXChVetFkFXcgbAUiXkgdn/S9MGFoASYba1a2e+4mJT7JxdaO M4FvQRWy7mwfA48714UmNTnnfiWDWOYDGpn2noEdJ7cBG0RsXftgewmIvbz7SeLOecQlJvourw83k oeO0fk3/amSmHkit4zVw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1haiB4-0006p0-Ny; Tue, 11 Jun 2019 14:55:10 +0000 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1haiB1-0006Pk-FN for linux-rockchip@lists.infradead.org; Tue, 11 Jun 2019 14:55:08 +0000 Received: by mail-pf1-x444.google.com with SMTP id x15so7622665pfq.0 for <linux-rockchip@lists.infradead.org>; Tue, 11 Jun 2019 07:55:07 -0700 (PDT) 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:content-transfer-encoding; bh=p/nbMHgZZiiLRgXry1m/sPwN8GCBFLgdUWXWzFtklvg=; b=lOvDBu75deOBAt00M/U1uOdVG68gh0m0poJtt6PhbWrlp34jbCg7Ojt0fNXt1Ve8gy 5smP+eVJ1/HZRzvKCckaoX7V/wDt8KFgCmdzhB4dnJOURZEKesm2peN/u1u5iay1/zCP N8IxGNue8BHTk3TLixqIv+9a4wh26SAOrK090= 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:content-transfer-encoding; bh=p/nbMHgZZiiLRgXry1m/sPwN8GCBFLgdUWXWzFtklvg=; b=LHuGnq8aDup+Sf+wLXQoyqY7RkJTDjz919h5VxBeb2kZ7fkLJOVHwdEJODDHGjJKqp 5WzGRN53SPcy4Lf8c+NTt+Sdals3jYngliZxhLkGJ6Qg988LreV1m9J+0hIiLNCzGvhs wNtp4mbOuR43v/3J7TECp817jb32mNL/rBS/A6FaNp2vzSLQTRAHEfE26qbWcqld2CBP w8MVBN5WNrSpCsJt1QHod63d1IdP8f3sDs3tpHyKkLDaQFkNeNNi2s8bFki6ry7sSZWK NaMrrciEgO40gSX6a8QD6rsOD7W8SdOR5zoH/pfZUgD6ImvLuLCZyRJYCH4/CE3q0VEg daiA== X-Gm-Message-State: APjAAAWo9AMFEtDmnbPpr+CDg9J9gGeJ084sstxrOJvPRjAzISlf9vy9 uP+ez3LJQpUhd/ZOduYc6PJYmQ== X-Google-Smtp-Source: APXvYqxaWjEH81uVgHI7d+jBa79boYsVtoabJXxrIxpNaMnNafxWyuwWRMV0mTwzSjmzhxNK1ydq+A== X-Received: by 2002:a63:c903:: with SMTP id o3mr9224659pgg.295.1560264906761; Tue, 11 Jun 2019 07:55:06 -0700 (PDT) Received: from localhost.localdomain ([115.97.180.18]) by smtp.gmail.com with ESMTPSA id e9sm16206208pfn.154.2019.06.11.07.55.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Jun 2019 07:55:06 -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 Subject: [PATCH 49/92] ram: rk3399: Compute stride for 1 channel a Date: Tue, 11 Jun 2019 20:20:52 +0530 Message-Id: <20190611145135.21399-50-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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190611_075507_579717_6F26522F X-CRM114-Status: UNSURE ( 9.77 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Upstream kernel work for Rockchip platforms <linux-rockchip.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-rockchip>, <mailto:linux-rockchip-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-rockchip/> List-Post: <mailto:linux-rockchip@lists.infradead.org> List-Help: <mailto:linux-rockchip-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-rockchip>, <mailto:linux-rockchip-request@lists.infradead.org?subject=subscribe> Cc: linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki <jagan@amarulasolutions.com>, gajjar04akash@gmail.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-rockchip" <linux-rockchip-bounces@lists.infradead.org> Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
ram: rk3399: Add LPDDR4 support
|
expand
|
diff --git a/drivers/ram/rockchip/sdram_rk3399.c b/drivers/ram/rockchip/sdram_rk3399.c index 5985c37f08..033b2730a6 100644 --- a/drivers/ram/rockchip/sdram_rk3399.c +++ b/drivers/ram/rockchip/sdram_rk3399.c @@ -1214,6 +1214,10 @@ static unsigned char calculate_stride(struct rk3399_sdram_params *sdram_params) chinfo |= 1 << channel; } + /* stride calculation for 1 channel */ + if (sdram_params->base.num_channels == 1 && chinfo & 1) + return 0x17; /* channel a */ + /* stride calculation for 2 channels, default gstride type is 256B */ if (ch_cap[0] == ch_cap[1]) { cap = ch_cap[0] + ch_cap[1];