Message ID | 20190611145135.21399-68-jagan@amarulasolutions.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-amarula+bncBD7MFH7A7EEBBEMC77TQKGQEP4MQH4Y@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 9CB883F08A for <linux-amarula@patchwork.amarulasolutions.com>; Tue, 11 Jun 2019 16:56:18 +0200 (CEST) Received: by mail-pf1-f199.google.com with SMTP id o184sf9784411pfg.1 for <linux-amarula@patchwork.amarulasolutions.com>; Tue, 11 Jun 2019 07:56:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1560264977; cv=pass; d=google.com; s=arc-20160816; b=ZBp68HRnOjVXfz05o4xxkS4+8ypTYdEcOJN4N8OvitNXljT9fYIX6CfWXMC93st2Fi 5Um0R7QYMgNZ2uYGWAkI1IqsxpFEIYjbfSHEOJnO3kFQ9mH/xDY0aZarlCN8cJzMyeSk H1xpDQ4s+wOHAnlB8nfHn2esGkb64TcGDq0wC+DnGElX3qNFPouJBcN9CJCHdTwCcdg+ LBCXtsL9J23i3S7+sWolnYO+aHbuwCtnkqcAifZ2N+9HGxfQ4XtusJMAW3a0nE9M0HVE 2+P9H/1ULM9SXEjLLNw9s2miL48IG9BOlEI4KWek40TLMGT+ndTAlVwn75rPcRpvn/I6 fZxA== 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=5NDNZWbezWp6BglCkhFuY/PSBmBCA/0kkIJ8LH3hi98=; b=Y1IOcBj4bb/Gl5HoRZm0LHTOARM85INorScuwJ9UDSLURMPd5+cfsHB/aZ28W2+kEq WHiYzPPXfznQVMD1Vb/K9jompV2dsRvp9CrfwvDvgkWyFX6JjUbPDnThTMYVO2gufDoJ taIBxLqhBIqPVqQ5Yv/Pg/DkF4pdzt65yr+qBVvZXt1NPWT8K9XU+57MS721/V9v8LVZ 9iQmKCNCsP0C2qc5Iiih0nrA67JDhB9auBbM/4fV7X3/wLyEg0bd6xONP3yvT58Fcnj6 SFccN4pvlZF1xhNvvqB0UAqoq0s5wSse1riuZ1/8kCWr27JKZqW3V0cAg3iSjiK0q8/L 28mw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=atxzZC9s; 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=5NDNZWbezWp6BglCkhFuY/PSBmBCA/0kkIJ8LH3hi98=; b=KvhGPwkijQhSYNtLsixGm/dpaSPPEfflhQ0c92KsiXgtmFySASIjDnBKsxTRy2D42e XVEMu6pF6gfW2umz7fT1Acqdbu7ZoSIdv+jWJh/kn0K5K8+a2QsdilfKmlsvdEyLOPMi NljwO5Hhu/sEWo12R+kckAFjFS5DnMui957bk= 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=5NDNZWbezWp6BglCkhFuY/PSBmBCA/0kkIJ8LH3hi98=; b=Q/zT6EOSdbjIjlRrge3RfAsfsscW+7IguX8YCjtNgm0xsGnnvigahiKB3SQWrupabp xW6r3E8f/pqC9KMvmph13CzvYAHTP5UExjedaVlYbg6LdLX4OEaR1/W3cQ4mWesvd0w6 gB7sixi2uZALF/YBRFOMKBgu0DhWdz48rfwXt5o5ALpZww59xgPrzXlecgqCMb1hAAKt at/FW0Gcdb7wQlmP/kzOmV10uD/YEMC9+xtKSXornxbjCm0zUZ6E3RlJr9XW4BL8m6h8 GrEmMHT9g7ccJdqD9LiJANcaIEZFTITWr4FrK9vgaTTIhp2Dq8xW2lkHD3By2ZqkuZMI 1NrQ== X-Gm-Message-State: APjAAAXICTVbqEmMuaudsI6wBGuDt99VOMGh2UrSAlGDziN7IJR5BqdT 1DYQkxCSllSsUQF9LsVXZZ+B1Fe1 X-Google-Smtp-Source: APXvYqx4SMLoHeF8DsYcNXPl4qJaRfFR4zf9p0fyclLPKqnOPjBAB6lya6hqZPSLv6CWJx+W+gKZWg== X-Received: by 2002:a17:90a:628a:: with SMTP id d10mr27120575pjj.7.1560264977413; Tue, 11 Jun 2019 07:56:17 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:8593:: with SMTP id m19ls862086pjn.2.canary-gmail; Tue, 11 Jun 2019 07:56:17 -0700 (PDT) X-Received: by 2002:a17:90a:2008:: with SMTP id n8mr26810624pjc.4.1560264977102; Tue, 11 Jun 2019 07:56:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560264977; cv=none; d=google.com; s=arc-20160816; b=wSC9/4Uf8cW2LZM0TL0blZ6iFHGFxOzDQ//ethxjKEUJElbr/Kn3Yeuk2gSPeQoUYV xf0cEZYfqcBFkAuAKIZhVF/E6qSWBGybhOwa+NMCCAuP41mfwkTkTex7yUGP6/Q1cuW9 nvIylwUz5DuHT2EFAXkOrJ98GFugd4ATjVT2+1eNAzLj0YfIDYhxVmpr4OBwYdBBCSM/ 0BgSd8ybcxD2DENej7Uqgk6CPUHcNQgTn1vNezzyRs3TU8xihIStFN3ry4C/V/UutvVy 0a7aM1GMq40dfZZHDoo5bfL2n5MEkGSLW8P3SXxzem6qEx8o9ewWHZSZZQEkQWc3WrG+ 7qgA== 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=LnrKP4ufWufAf+TSgUvgwMId8hTqzwuPYT4ERq3rBNk=; b=hYVsNUvJi9AavI9E5xhaxNok+sghm21jZ0bqwCiVqqBgPLryVhRRoOEfTM+lW0jv8j A3gX2JMk0fsizY2GCLlQ34MuCNXyewje0Pi8wkgeiI+ug3dqBJrbcpl1W8ICIf7vP5Kz Fn/Svr0bUvob5+rQRsXSCLpgFlEQ0WwRwthh1UGmP6U+ETye67J9tBXHn5zX87uqwzFF QEM07amncCmqerIlqlLdaFOQRODDgDVOBf+09vWF63YMqonLGXAhCNM/mEVWi5Oa9jdM tjNj4b5RqFYpASNoDjNSevZxwfWQ5xkMCsa/Ogud8bzHanx7AByRbIOybYk3K58JGfA0 1/MQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=atxzZC9s; 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 y5sor12007357pgs.32.2019.06.11.07.56.17 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Tue, 11 Jun 2019 07:56:17 -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:5961:: with SMTP id j33mr4337823pgm.89.1560264976669; Tue, 11 Jun 2019 07:56:16 -0700 (PDT) Received: from localhost.localdomain ([115.97.180.18]) by smtp.gmail.com with ESMTPSA id e9sm16206208pfn.154.2019.06.11.07.56.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Jun 2019 07:56:16 -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: gajjar04akash@gmail.com, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki <jagan@amarulasolutions.com> Subject: [PATCH 67/92] ram: rk3399: Map chipselect for lpddr4 Date: Tue, 11 Jun 2019 20:21:10 +0530 Message-Id: <20190611145135.21399-68-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=atxzZC9s; 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
|
diff --git a/drivers/ram/rockchip/sdram_rk3399.c b/drivers/ram/rockchip/sdram_rk3399.c index 13c552649c..ecc215b9c7 100644 --- a/drivers/ram/rockchip/sdram_rk3399.c +++ b/drivers/ram/rockchip/sdram_rk3399.c @@ -189,6 +189,16 @@ static void set_memory_map(const struct chan_info *chan, u32 channel, clrsetbits_le32(&denali_pi[155], (0x3 << 16) | (0x7 << 24), ((3 - sdram_ch->cap_info.bk) << 16) | ((16 - row) << 24)); + + if (sdram_params->base.dramtype == LPDDR4) { + if (cs_map == 1) + cs_map = 0x5; + else if (cs_map == 2) + cs_map = 0xa; + else + cs_map = 0xF; + } + /* PI_41 PI_CS_MAP:RW:24:4 */ clrsetbits_le32(&denali_pi[41], 0xf << 24, cs_map << 24); if (sdram_ch->cap_info.rank == 1 && sdram_params->base.dramtype == DDR3)