From: Josua Mayer <josua@solid-run.com>
To: u-boot@lists.denx.de
Cc: sr@denx.de, Josua Mayer <josua@solid-run.com>
Subject: [PATCH 2/2] arm: mvebu: clearfog: support 512MB memory size from tlv eeprom
Date: Sun, 8 Oct 2023 16:58:04 +0200 [thread overview]
Message-ID: <20231008145804.25567-3-josua@solid-run.com> (raw)
In-Reply-To: <20231008145804.25567-1-josua@solid-run.com>
Handle 2GBit memory size value "2" from tlv eeprom on ddr
initialisation, to support SoMs with 512MB ddr memory.
Signed-off-by: Josua Mayer <josua@solid-run.com>
---
board/solidrun/clearfog/clearfog.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/board/solidrun/clearfog/clearfog.c b/board/solidrun/clearfog/clearfog.c
index 4f4532b537e..6fa2fe5fe3e 100644
--- a/board/solidrun/clearfog/clearfog.c
+++ b/board/solidrun/clearfog/clearfog.c
@@ -159,6 +159,9 @@ struct mv_ddr_topology_map *mv_ddr_topology_map_get(void)
cf_read_tlv_data();
switch (cf_tlv_data.ram_size) {
+ case 2:
+ ifp->memory_size = MV_DDR_DIE_CAP_2GBIT;
+ break;
case 4:
default:
ifp->memory_size = MV_DDR_DIE_CAP_4GBIT;
--
2.35.3
next prev parent reply other threads:[~2023-10-08 14:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-08 14:58 [PATCH 0/2] arm: mvebu: clearfog: support additional ddr Josua Mayer
2023-10-08 14:58 ` [PATCH 1/2] arm: mvebu: clearfog: read number of ddr channels from tlv data Josua Mayer
2023-10-16 9:00 ` Stefan Roese
2023-10-16 14:44 ` Stefan Roese
2023-10-08 14:58 ` Josua Mayer [this message]
2023-10-16 9:01 ` [PATCH 2/2] arm: mvebu: clearfog: support 512MB memory size from tlv eeprom Stefan Roese
2023-10-16 14:45 ` Stefan Roese
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=20231008145804.25567-3-josua@solid-run.com \
--to=josua@solid-run.com \
--cc=sr@denx.de \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox