summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2019-10-29 07:32:48 +0100
committerNico Huber <nico.h@gmx.de>2019-11-10 11:46:29 +0000
commitc4c5d85c220b6bd594c1c32f0aa74117c3b68a09 (patch)
treeb6907ab9edeb8262459e5b09f01233439d7cb058 /src/lib
parent55069d15d8a6dcd7f8eaaf36e85e5d7a53fdaae6 (diff)
downloadcoreboot-c4c5d85c220b6bd594c1c32f0aa74117c3b68a09.tar.xz
lib/Kconfig: Remove RAMSTAGE_CBMEM_TOP_ARG
All targets now have the _cbmem_top_ptr symbol populated via calling arguments or in the nvidia/tegra210 case worked around by populating it with cbmem_top_chipset explicitly at the start of ramstage, so the Kconfig guarding this behavior can be removed. Change-Id: Ie7467629e58700e4d29f6e735840c22ed687f880 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/36422 Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Michael Niewöhner Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Kconfig6
-rw-r--r--src/lib/imd_cbmem.c6
2 files changed, 2 insertions, 10 deletions
diff --git a/src/lib/Kconfig b/src/lib/Kconfig
index b94ac495b7..cb1e4a5cc8 100644
--- a/src/lib/Kconfig
+++ b/src/lib/Kconfig
@@ -24,12 +24,6 @@ config RAMSTAGE_LIBHWBASE
help
Selected by features that require `libhwbase` in ramstage.
-config RAMSTAGE_CBMEM_TOP_ARG
- bool
- help
- Select this if stages run after romstage get the cbmem_top
- pointer as the function arguments when called from romstage.
-
config FLATTENED_DEVICE_TREE
bool
help
diff --git a/src/lib/imd_cbmem.c b/src/lib/imd_cbmem.c
index cbd4b8f887..38620d2d06 100644
--- a/src/lib/imd_cbmem.c
+++ b/src/lib/imd_cbmem.c
@@ -51,16 +51,14 @@ uintptr_t _cbmem_top_ptr;
void *cbmem_top(void)
{
- if (ENV_ROMSTAGE
- || ((ENV_POSTCAR || ENV_RAMSTAGE)
- && !CONFIG(RAMSTAGE_CBMEM_TOP_ARG))) {
+ if (ENV_ROMSTAGE) {
MAYBE_STATIC_BSS void *top = NULL;
if (top)
return top;
top = cbmem_top_chipset();
return top;
}
- if ((ENV_POSTCAR || ENV_RAMSTAGE) && CONFIG(RAMSTAGE_CBMEM_TOP_ARG))
+ if (ENV_POSTCAR || ENV_RAMSTAGE)
return (void *)_cbmem_top_ptr;
dead_code();