A64/R40 DRAM controller dual-rank-related changes
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | sunxi: support asymmetric dual rank DRAM on A64/R40 | +0 | 0 replies | |
| 2/2 | sunxi: enable dual rank memory on R40 | +0 | 1 reply | |
| 2/2 | sunxi: enable dual rank memory on R40 | +0 | 3 replies |
Reviews trailers per patch
1 of 3 patches has a Reviewed-by or Acked-by.
| Patch | Andre Przywara |
|---|---|
| 1/2 | R-b |
| 2/2 | |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/2] A64/R40 DRAM controller dual-rank-related changes
Quoted 6 lines · On Fri, 26 Feb 2021 00:13:23 +0800 Icenowy Zheng <[email protected]> wrote:
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.
Quoted 8 lines
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.
Thanks, queued both for -next.
I moved the call to mctl_r40_detect_rank_count() and mctl_set_cr() into sunxi_dram_init(), to avoid the size regression.
Cheers,
Andre
Quoted 9 lines
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(-)