public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Andreas Dannenberg <dannenberg@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 06/12] armv7R: K3: am654: Use full malloc implementation in SPL
Date: Tue, 4 Jun 2019 17:55:49 -0500	[thread overview]
Message-ID: <20190604225555.12186-7-dannenberg@ti.com> (raw)
In-Reply-To: <20190604225555.12186-1-dannenberg@ti.com>

Switch to using the full malloc scheme in post-relocation SPL to allow
better utilization of available memory for example by allowing memory
to get freed. Initially allocate a 16MB-sized region in DDR starting
at address 0x84000000 for this purpose.

Signed-off-by: Andreas Dannenberg <dannenberg@ti.com>
---
 configs/am65x_evm_r5_defconfig    | 1 -
 configs/am65x_hs_evm_r5_defconfig | 1 -
 include/configs/am65x_evm.h       | 3 +++
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/configs/am65x_evm_r5_defconfig b/configs/am65x_evm_r5_defconfig
index 6a261c20ac..5abd686931 100644
--- a/configs/am65x_evm_r5_defconfig
+++ b/configs/am65x_evm_r5_defconfig
@@ -18,7 +18,6 @@ CONFIG_SPL_LOAD_FIT=y
 CONFIG_USE_BOOTCOMMAND=y
 # CONFIG_DISPLAY_CPUINFO is not set
 CONFIG_SPL_TEXT_BASE=0x41c00000
-CONFIG_SPL_SYS_MALLOC_SIMPLE=y
 CONFIG_SPL_STACK_R=y
 CONFIG_SPL_SEPARATE_BSS=y
 CONFIG_SPL_I2C_SUPPORT=y
diff --git a/configs/am65x_hs_evm_r5_defconfig b/configs/am65x_hs_evm_r5_defconfig
index 0b12f15782..49eca7de64 100644
--- a/configs/am65x_hs_evm_r5_defconfig
+++ b/configs/am65x_hs_evm_r5_defconfig
@@ -20,7 +20,6 @@ CONFIG_SPL_FIT_IMAGE_POST_PROCESS=y
 CONFIG_USE_BOOTCOMMAND=y
 # CONFIG_DISPLAY_CPUINFO is not set
 CONFIG_SPL_TEXT_BASE=0x41c00000
-CONFIG_SPL_SYS_MALLOC_SIMPLE=y
 CONFIG_SPL_STACK_R=y
 CONFIG_SPL_SEPARATE_BSS=y
 CONFIG_SPL_I2C_SUPPORT=y
diff --git a/include/configs/am65x_evm.h b/include/configs/am65x_evm.h
index 1319745963..ea365b979b 100644
--- a/include/configs/am65x_evm.h
+++ b/include/configs/am65x_evm.h
@@ -41,6 +41,9 @@
 					 CONFIG_SPL_BSS_MAX_SIZE)
 /* Set the stack right below the SPL BSS section */
 #define CONFIG_SYS_INIT_SP_ADDR         CONFIG_SPL_BSS_START_ADDR
+/* Configure R5 SPL post-relocation malloc pool in DDR */
+#define CONFIG_SYS_SPL_MALLOC_START	0x84000000
+#define CONFIG_SYS_SPL_MALLOC_SIZE	SZ_16M
 #endif
 
 #ifdef CONFIG_SYS_K3_SPL_ATF
-- 
2.17.1

  parent reply	other threads:[~2019-06-04 22:55 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-04 22:55 [U-Boot] [PATCH v2 00/12] System Firmware Loader for TI K3 family SoCs Andreas Dannenberg
2019-06-04 22:55 ` [U-Boot] [PATCH v2 01/12] mmc: am654_sdhci: Allow driver to probe without PDs specified Andreas Dannenberg
2019-07-19  0:00   ` Tom Rini
2019-06-04 22:55 ` [U-Boot] [PATCH v2 02/12] spl: Allow performing BSS init early before board_init_f() Andreas Dannenberg
2019-07-19  0:00   ` Tom Rini
2019-06-04 22:55 ` [U-Boot] [PATCH v2 03/12] spl: Make image loader infrastructure more universal Andreas Dannenberg
2019-07-19  0:00   ` Tom Rini
2019-06-04 22:55 ` [U-Boot] [PATCH v2 04/12] arm: K3: Introduce System Firmware loader framework Andreas Dannenberg
2019-07-19  0:00   ` Tom Rini
2019-06-04 22:55 ` [U-Boot] [PATCH v2 05/12] armV7R: K3: am654: Allow using SPL BSS pre-relocation Andreas Dannenberg
2019-07-19  0:00   ` Tom Rini
2019-07-19  5:29     ` Simon Goldschmidt
2019-07-20 15:51       ` Tom Rini
2019-07-25  4:35         ` Lokesh Vutla
2019-07-25  7:01           ` Simon Goldschmidt
2019-07-25  8:22             ` Lokesh Vutla
2019-07-25  9:52               ` Simon Goldschmidt
2019-08-07 21:23                 ` Andreas Dannenberg
2019-08-08  7:29                   ` Simon Goldschmidt
2019-08-08 18:29                     ` Andreas Dannenberg
2019-08-08 19:01                       ` Simon Goldschmidt
2019-08-08 19:43                         ` Andreas Dannenberg
2019-08-08 20:01                           ` Simon Goldschmidt
2019-08-13 20:38                   ` Simon Goldschmidt
2019-08-13 21:06                     ` Andreas Dannenberg
2019-06-04 22:55 ` Andreas Dannenberg [this message]
2019-07-19  0:00   ` [U-Boot] [PATCH v2 06/12] armv7R: K3: am654: Use full malloc implementation in SPL Tom Rini
2019-06-04 22:55 ` [U-Boot] [PATCH v2 07/12] armV7R: K3: am654: Load SYSFW binary and config from boot media Andreas Dannenberg
2019-07-19  0:00   ` Tom Rini
2019-06-04 22:55 ` [U-Boot] [PATCH v2 08/12] configs: am65x_evm_r5: All sysfw to be loaded via MMC Andreas Dannenberg
2019-07-19  0:01   ` Tom Rini
2019-06-04 22:55 ` [U-Boot] [PATCH v2 09/12] configs: am65x_hs_evm_r5: " Andreas Dannenberg
2019-07-19  0:01   ` Tom Rini
2019-06-04 22:55 ` [U-Boot] [PATCH v2 10/12] configs: am65x_evm: Add Support for eMMC boot Andreas Dannenberg
2019-07-19  0:01   ` Tom Rini
2019-06-04 22:55 ` [U-Boot] [PATCH v2 11/12] configs: am65x_hs_evm: " Andreas Dannenberg
2019-07-19  0:01   ` Tom Rini
2019-06-04 22:55 ` [U-Boot] [PATCH v2 12/12] am65x: README: Add eMMC layout and flash instructions Andreas Dannenberg
2019-07-19  0:01   ` Tom Rini
2019-06-05  6:22 ` [U-Boot] [PATCH v2 00/12] System Firmware Loader for TI K3 family SoCs Lokesh Vutla
2019-06-05 15:15   ` Andreas Dannenberg

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=20190604225555.12186-7-dannenberg@ti.com \
    --to=dannenberg@ti.com \
    --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