From: Massimo Pegorer <massimo.pegorer+oss@gmail.com>
To: u-boot@lists.u-boot-project.org,
Quentin Schulz <u-boot@0leil.net>,
Jonas Karlman <jonas@kwiboo.se>
Cc: Tom Rini <trini@konsulko.com>,
Ilias Apalodimas <ilias.apalodimas@linaro.org>,
Johan Jonker <jbx6244@gmail.com>,
Massimo Pegorer <massimo.pegorer+oss@gmail.com>
Subject: [PATCH v2 3/5] arm: rockchip: Move SPL_BSS_MAX_SIZE default value defintion
Date: Mon, 23 Nov 2026 19:00:06 +0100 [thread overview]
Message-ID: <20261123-config-v2-3-be23de2a81f5@gmail.com> (raw)
In-Reply-To: <20261123-config-v2-0-be23de2a81f5@gmail.com>
All ARCH_ROCKCHIP board configurations using SPL_BSS_MAX_SIZE have
0x8000 as the value for this option, except one, the evb-px5_defconfig,
which has 0x20000 instead. Now that most Rockchip board configurations
have migrated to use the same default, there is no further need for a
second SPL_BSS_MAX_SIZE config statement definition, with different
defaults based on complex conditions. Instead, in the common/spl/Kconfig
file, declare 0x8000 as the default value for SPL_BSS_MAX_SIZE when
ARCH_ROCKCHIP is selected.
Signed-off-by: Massimo Pegorer <massimo.pegorer+oss@gmail.com>
---
New patch in v2:
- split from patch v1 [3/4]
---
arch/arm/mach-rockchip/Kconfig | 5 -----
common/spl/Kconfig | 1 +
2 files changed, 1 insertion(+), 5 deletions(-)
diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig
index c1dbcce1e27..86eb5012192 100644
--- a/arch/arm/mach-rockchip/Kconfig
+++ b/arch/arm/mach-rockchip/Kconfig
@@ -840,11 +840,6 @@ config SPL_BSS_START_ADDR
default 0x43f80000 if SPL_TEXT_BASE = 0x40000000
default 0x03f80000 if SPL_TEXT_BASE = 0x00000000
-config SPL_BSS_MAX_SIZE
- default 0x8000 if SPL_BSS_START_ADDR = 0x63f80000
- default 0x8000 if SPL_BSS_START_ADDR = 0x43f80000
- default 0x8000 if SPL_BSS_START_ADDR = 0x03f80000
-
config SPL_STACK_R
default y if CUSTOM_SYS_INIT_SP_ADDR = 0x63f00000
default y if CUSTOM_SYS_INIT_SP_ADDR = 0x43f00000
diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index 4930ecb0861..216542c0288 100644
--- a/common/spl/Kconfig
+++ b/common/spl/Kconfig
@@ -150,6 +150,7 @@ config SPL_BSS_MAX_SIZE
default 0x100000 if ARCH_MX6 || RISCV
default 0x80000 if ARCH_OMAP2PLUS || ARCH_SUNXI
default 0x10000 if ARCH_SC5XX
+ default 0x8000 if ARCH_ROCKCHIP
help
When non-zero, the linker checks that the actual memory used by SPL
from __bss_start to __bss_end does not exceed it.
--
2.34.1
next prev parent reply other threads:[~2026-11-23 18:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 18:00 [PATCH v2 0/5] arm: rockchip: TPL/SPL config options minor fixes Massimo Pegorer
2026-11-23 18:00 ` [PATCH v2 1/5] arm: rockchip: rv1126: Remove unneeded TPL_LDSCRIPT default Massimo Pegorer
2026-11-23 18:00 ` [PATCH v2 2/5] arm: rockchip: Avoid TPL_LDSCRIPT configuration when unneeded Massimo Pegorer
2026-11-23 18:00 ` Massimo Pegorer [this message]
2026-11-23 18:00 ` [PATCH v2 4/5] arm: rockchip: Avoid SPL_BSS_START_ADDR definition if unneeded Massimo Pegorer
2026-11-23 18:00 ` [PATCH v2 5/5] arm: rockchip: Remove unneeded SPL_SHARES_INIT_SP_ADDR check Massimo Pegorer
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=20261123-config-v2-3-be23de2a81f5@gmail.com \
--to=massimo.pegorer+oss@gmail.com \
--cc=ilias.apalodimas@linaro.org \
--cc=jbx6244@gmail.com \
--cc=jonas@kwiboo.se \
--cc=trini@konsulko.com \
--cc=u-boot@0leil.net \
--cc=u-boot@lists.u-boot-project.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.