All of lore.kernel.org
 help / color / mirror / Atom feed
From: Icenowy Zheng <icenowy@aosc.io>
To: u-boot@lists.denx.de
Subject: [PATCH 0/2] A64/R40 DRAM controller dual-rank-related changes
Date: Fri, 26 Feb 2021 00:13:23 +0800	[thread overview]
Message-ID: <20210225161325.94019-1-icenowy@aosc.io> (raw)

This patchset contains two patches.

The first one enables asymmetric dual rank DRAM on A64. This is needed
for 3GiB PinePhone, which has 2GiB rank 0 and 1GiB rank 1. This patch is
already used by the firmware flashed to PinePhone by factory.

The second one enables dual rank (and asymmetric dual rank, although not
tested because of lack of real board) on R40. In order to support single
rank and dual rank at the same time, a new rank detection code is
implemented (because PIR_QSGATE-based one does not work on R40). The
code enables some error report facility of the DRAM controller, and
then tries to access rank 1 and then check for error. It's placed at 2nd
patch because it depends on the function that calculates rank 0 size
(and rank 1 base address) introduced in PATCH 1.

Icenowy Zheng (2):
  sunxi: support asymmetric dual rank DRAM on A64/R40
  sunxi: enable dual rank memory on R40

 .../include/asm/arch-sunxi/dram_sunxi_dw.h    |  11 +-
 arch/arm/mach-sunxi/dram_sunxi_dw.c           | 149 +++++++++++++++---
 2 files changed, 131 insertions(+), 29 deletions(-)

-- 
2.30.0

             reply	other threads:[~2021-02-25 16:13 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-25 16:13 Icenowy Zheng [this message]
2021-02-25 16:13 ` [PATCH 1/2] sunxi: support asymmetric dual rank DRAM on A64/R40 Icenowy Zheng
2021-03-18  1:32   ` Andre Przywara
2021-03-18 10:02   ` Peter Robinson
2021-02-25 16:13 ` [PATCH 2/2] sunxi: enable dual rank memory on R40 Icenowy Zheng
2021-02-26 14:04   ` Ivan Uvarov
2021-03-02 13:40   ` Andre Przywara
2021-03-02 13:50     ` Icenowy Zheng
2021-03-02 15:19       ` Andre Przywara
2021-03-02 17:49         ` [linux-sunxi] " Icenowy Zheng
2021-03-18  1:42           ` Andre Przywara
2021-03-02 18:08         ` Icenowy Zheng
2021-03-31 15:57 ` [PATCH 0/2] A64/R40 DRAM controller dual-rank-related changes Andre Przywara

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210225161325.94019-1-icenowy@aosc.io \
    --to=icenowy@aosc.io \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.