From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH v2 5/6] arch: move PHYS_ADDR_T_64BIT definition to arch/Kconfig
Date: Thu, 13 Mar 2025 08:54:15 +0100 [thread overview]
Message-ID: <20250313075416.3202194-5-a.fatoum@pengutronix.de> (raw)
In-Reply-To: <20250313075416.3202194-1-a.fatoum@pengutronix.de>
Currently, every architecture with 64-bit support defines its own
PHYS_ADDR_T_64BIT symbol, except for x86.
Sync with what's done for ARCH_DMA_ADDR_T_64BIT and move
PHYS_ADDR_T_64BIT into arch/Kconfig as well.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
v1 -> v2:
- no change
---
arch/Kconfig | 4 ++++
arch/arm/cpu/Kconfig | 3 ---
arch/kvx/Kconfig | 3 ---
arch/mips/Kconfig | 3 ---
arch/riscv/Kconfig | 3 ---
arch/sandbox/Kconfig | 3 ---
6 files changed, 4 insertions(+), 15 deletions(-)
diff --git a/arch/Kconfig b/arch/Kconfig
index b1200184678f..dc5d1e454df5 100644
--- a/arch/Kconfig
+++ b/arch/Kconfig
@@ -89,6 +89,10 @@ config ARCH_HAS_SJLJ
help
Architecture has support implemented for setjmp()/longjmp()/initjmp()
+
+config PHYS_ADDR_T_64BIT
+ bool
+
config ARCH_DMA_ADDR_T_64BIT
bool
diff --git a/arch/arm/cpu/Kconfig b/arch/arm/cpu/Kconfig
index 84fe770b6da8..e61bcadc8c35 100644
--- a/arch/arm/cpu/Kconfig
+++ b/arch/arm/cpu/Kconfig
@@ -2,9 +2,6 @@
comment "Processor Type"
-config PHYS_ADDR_T_64BIT
- bool
-
config CPU_32
bool
select HAS_MODULES
diff --git a/arch/kvx/Kconfig b/arch/kvx/Kconfig
index 5f325ca28358..9b733cd79201 100644
--- a/arch/kvx/Kconfig
+++ b/arch/kvx/Kconfig
@@ -23,9 +23,6 @@ config KVX
select RESET_SOURCE
default y
-config PHYS_ADDR_T_64BIT
- bool
-
config 64BIT
bool
select ARCH_DMA_ADDR_T_64BIT
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index 769949a91085..43c493978c8f 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -36,9 +36,6 @@ config GENERIC_LINKER_SCRIPT
bool
default y
-config PHYS_ADDR_T_64BIT
- bool
-
config ARCH_TEXT_BASE
hex
default 0xa0800000
diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index be2146b3facb..4d56e55b533f 100644
--- a/arch/riscv/Kconfig
+++ b/arch/riscv/Kconfig
@@ -59,9 +59,6 @@ config CPU_SUPPORTS_32BIT_KERNEL
config CPU_SUPPORTS_64BIT_KERNEL
bool
-config PHYS_ADDR_T_64BIT
- bool
-
config 32BIT
bool
depends on CPU_SUPPORTS_32BIT_KERNEL
diff --git a/arch/sandbox/Kconfig b/arch/sandbox/Kconfig
index c1a51d4f021d..7c86511a2c61 100644
--- a/arch/sandbox/Kconfig
+++ b/arch/sandbox/Kconfig
@@ -32,9 +32,6 @@ config ARCH_TEXT_BASE
menu "Sandbox specific settings"
-config PHYS_ADDR_T_64BIT
- bool
-
config CC_IS_64BIT
def_bool $(success,$(srctree)/scripts/gcc-64bitptr.sh $(CC))
--
2.39.5
next prev parent reply other threads:[~2025-03-13 7:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-13 7:54 [PATCH v2 1/6] arch: move promptless options to end of Kconfig file Ahmad Fatoum
2025-03-13 7:54 ` [PATCH v2 2/6] RISC-V: rename HAS_CACHE to RISCV_ICACHE Ahmad Fatoum
2025-03-13 7:54 ` [PATCH v2 3/6] treewide: retire CONFIG_HAS_CACHE Ahmad Fatoum
2025-03-13 7:54 ` [PATCH v2 4/6] arch: move hidden arch options to arch/Kconfig Ahmad Fatoum
2025-03-13 7:54 ` Ahmad Fatoum [this message]
2025-03-13 7:54 ` [PATCH v2 6/6] x86: move CONFIG_PHYS_ADDR_T_64BIT setting into Kconfig Ahmad Fatoum
2025-03-14 16:08 ` [PATCH v2 1/6] arch: move promptless options to end of Kconfig file Sascha Hauer
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=20250313075416.3202194-5-a.fatoum@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
/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