U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Bin Liu <b-liu@ti.com>
To: <u-boot@lists.denx.de>
Cc: Neha Malcom Francis <n-francis@ti.com>,
	Udit Kumar <u-kumar1@ti.com>, "Bin Liu" <b-liu@ti.com>
Subject: [PATCH] Kconfig: ram: select FDT_64BIT for K3_INLINE_ECC
Date: Thu, 16 Jul 2026 09:37:51 -0500	[thread overview]
Message-ID: <20260716143751.1680929-1-b-liu@ti.com> (raw)

Commit f43f71012254 ("ram: k3-ddrss: Add support for a partial inline
ECC region") uses ofnode_get_addr_size() to read memory address and
size from devicetree using type fdt_addr_t and fdt_size_t.  However
these data types are 32bit if CONFIG_FDT_64BIT is not defined on ARMv7
build.

So enable CONFIG_FDT_64BIT to retrieve correct 64bit memory address and
size from devicetree.

Signed-off-by: Bin Liu <b-liu@ti.com>
---
 drivers/ram/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/ram/Kconfig b/drivers/ram/Kconfig
index cfbfa1252d0e..acd6d9cfd6a9 100644
--- a/drivers/ram/Kconfig
+++ b/drivers/ram/Kconfig
@@ -121,6 +121,7 @@ config IMXRT_SDRAM
 config K3_INLINE_ECC
 	bool "Enable TI Inline ECC support"
 	depends on K3_DDRSS
+	select FDT_64BIT
 	help
 	  Enable Inline ECC support on K3 platforms. 1/9th of the SDRAM space
 	  is used for ECC storage and the rest 8/9th is available for system
-- 
2.34.1


             reply	other threads:[~2026-07-16 16:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-16 14:37 Bin Liu [this message]
2026-07-16 17:03 ` [PATCH] Kconfig: ram: select FDT_64BIT for K3_INLINE_ECC Kumar, Udit
2026-07-17 10:12 ` Neha Malcom Francis
2026-07-28 21:56 ` Tom Rini

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=20260716143751.1680929-1-b-liu@ti.com \
    --to=b-liu@ti.com \
    --cc=n-francis@ti.com \
    --cc=u-boot@lists.denx.de \
    --cc=u-kumar1@ti.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