ag1233
January 24, 2024, 10:50am
34
hi @iuncuim
I found your patches for u-boot for Orange Pi Zero 3 1.5GB versions
https://gist.github.com/iuncuim
are these
gistfile1.txt
From 4a542204ebd3ce90393c24a102679c9a3c7c13bc Mon Sep 17 00:00:00 2001
From: iuncuim <iuncuim@gmail.com>
Date: Sat, 16 Dec 2023 19:00:16 +0300
Subject: [PATCH] Update dram_sun50i_h616.h and dram_sun50i_h616.c
---
.../include/asm/arch-sunxi/dram_sun50i_h616.h | 1 +
arch/arm/mach-sunxi/dram_sun50i_h616.c | 18 ++++++++++++++++--
2 files changed, 17 insertions(+), 2 deletions(-)
This file has been truncated. show original
12gbit_dram_check
diff --git a/arch/arm/mach-sunxi/dram_sun50i_h616.c b/arch/arm/mach-sunxi/dram_sun50i_h616.c
index c5c1331..9b51b7e 100644
--- a/arch/arm/mach-sunxi/dram_sun50i_h616.c
+++ b/arch/arm/mach-sunxi/dram_sun50i_h616.c
@@ -1352,6 +1352,9 @@ static unsigned long mctl_calc_size(const struct dram_config *config)
u8 width = config->bus_full_width ? 4 : 2;
/* 8 banks */
+ u32 offset = (1ULL << (config->cols + config->rows + 3)) * width * config->ranks;
+ if (mctl_mem_matches(offset-0x10))
This file has been truncated. show original
the relevant fixes for Orange Pi Zero 3 1.5 GB versions?
thanks for sharing them
I'd like to test them locally in Armbian as currently development for this board is currently under development.
If the changes are tested and perhaps refine the codes so that it is robust (e.g. that all the boards 1G/1.5G/2G/4G works), could you consider submitting a patch to u-boot for this?
https://docs.u-boot.org/en/latest/develop/sending_patches.html
https://docs.u-boot.org/en/latest/develop/patman.html
that would help to mainline the fixes for 1.5GB boards so that the full set of Orange Pi Zero 3 boards is supported with the mainline kernel and uboot.