public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Aaron Griffith <aargri@gmail.com>
To: Jonas Karlman <jonas@kwiboo.se>
Cc: Tom Rini <trini@konsulko.com>, Simon Glass <sjg@chromium.org>,
	Philipp Tomsich <philipp.tomsich@vrull.eu>,
	Kever Yang <kever.yang@rock-chips.com>,
	Johan Jonker <jbx6244@gmail.com>,
	Quentin Schulz <quentin.schulz@cherry.de>,
	Lukasz Czechowski <lukasz.czechowski@thaumatec.com>,
	Marek Vasut <marek.vasut+renesas@mailbox.org>,
	Xuhui Lin <xuhui.lin@rock-chips.com>,
	Heiko Stuebner <heiko@sntech.de>,
	Chris Morgan <macromorgan@hotmail.com>,
	Nicolas Frattaroli <nicolas.frattaroli@collabora.com>,
	u-boot@lists.denx.de
Subject: Re: [PATCH 0/5] rockchip: sdram: allow reading memory info from TPL on non-ARM64
Date: Mon, 29 Dec 2025 20:59:22 -0500	[thread overview]
Message-ID: <aVMx-l5JHxxKFluq@nara> (raw)
In-Reply-To: <d63bc142-91a0-459d-8ccf-ad373fb0ca41@kwiboo.se>

Hello Jonas,

On Mon, Dec 29, 2025 at 08:15:29PM +0100, Jonas Karlman wrote:
> I do not think we want to extend the use of the RK ATAGS, at least not
> unless it is absolutely needed.

Understood, please ignore these patches then.

> The memory size info is also encoded in PMUGRF os_reg2 reg, a simple
> call to rockchip_sdram_size(PMUGRF_BASE + OS_REG2_REG) should be enough
> to get the memory size info typically needed by U-Boot.

I got this working, but I got stuck on the code in
`dram_init_banksize` that tries to read reserved memory from
OP-TEE. When left unmodified it mangles the ram banks and tells Linux
it has 4GB+ of memory. So, I was looking for a way around that.

I was also not aware that it's possible to tell the Rockchip TPL where
to load the SPL. OP-TEE at 0x1000 was giving me a lot of grief.

Besides these two issues, I'm actually quite happy to see that my
branch matches yours pretty well, for my first attempt.

> I have now pushed an updated rk3506 branch to GitHub [1], the old branch
> last rebased in September is located at [2].

Thanks! I'm watching this and the kernel developments closely.

FWIW, I have some Debian images for the Lyra boards [1]. Not very
complicated, but I didn't see any options for Lyra besides the
vendor's SDK. I plan on swapping in upstream sources as they become
ready.

 [1]: https://github.com/agrif/debian-lyra

Thanks,
 -Aaron

      reply	other threads:[~2025-12-30  1:59 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-29  0:05 [PATCH 0/5] rockchip: sdram: allow reading memory info from TPL on non-ARM64 Aaron Griffith
2025-12-29  0:05 ` [PATCH 1/5] rockchip: sdram: add option to read bank information from TPL Aaron Griffith
2025-12-29  0:05 ` [PATCH 2/5] rockchip: sdram: remove redundant configuration checks Aaron Griffith
2025-12-29  0:05 ` [PATCH 3/5] rockchip: sdram: allow config headers to override ATAGs location Aaron Griffith
2025-12-29  0:05 ` [PATCH 4/5] rockchip: sdram: refactor bi_dram logic into separate function Aaron Griffith
2025-12-29  0:05 ` [PATCH 5/5] rockchip: sdram: only reserve BL31 and use mem_map on ARM64 Aaron Griffith
2025-12-29  9:49 ` [PATCH 0/5] rockchip: sdram: allow reading memory info from TPL on non-ARM64 Jonas Karlman
2025-12-29 10:26   ` Aaron Griffith
2025-12-29 19:15     ` Jonas Karlman
2025-12-30  1:59       ` Aaron Griffith [this message]

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=aVMx-l5JHxxKFluq@nara \
    --to=aargri@gmail.com \
    --cc=heiko@sntech.de \
    --cc=jbx6244@gmail.com \
    --cc=jonas@kwiboo.se \
    --cc=kever.yang@rock-chips.com \
    --cc=lukasz.czechowski@thaumatec.com \
    --cc=macromorgan@hotmail.com \
    --cc=marek.vasut+renesas@mailbox.org \
    --cc=nicolas.frattaroli@collabora.com \
    --cc=philipp.tomsich@vrull.eu \
    --cc=quentin.schulz@cherry.de \
    --cc=sjg@chromium.org \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=xuhui.lin@rock-chips.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox