diff mbox

[U-Boot] omap3_overo: Reduce SPL size

Message ID 1489246476-18498-1-git-send-email-trini@konsulko.com
State Accepted
Commit a46e590d94e232b65b6956c0a0c34baff2e52e1b
Delegated to: Tom Rini
Headers show

Commit Message

Tom Rini March 11, 2017, 3:34 p.m. UTC
Borrowing from omap3_logic, switch to SPL_SYS_MALLOC_SIMPLE and moving
the stack to DDR as soon as we're able.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
 configs/omap3_overo_defconfig | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Peter Robinson March 11, 2017, 4:08 p.m. UTC | #1
On Sat, Mar 11, 2017 at 3:34 PM, Tom Rini <trini@konsulko.com> wrote:
> Borrowing from omap3_logic, switch to SPL_SYS_MALLOC_SIMPLE and moving
> the stack to DDR as soon as we're able.

Should we do that for all the omap3 devices?

> Signed-off-by: Tom Rini <trini@konsulko.com>
> ---
>  configs/omap3_overo_defconfig | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/configs/omap3_overo_defconfig b/configs/omap3_overo_defconfig
> index e841948ae6fb..0fa05cb0fa8a 100644
> --- a/configs/omap3_overo_defconfig
> +++ b/configs/omap3_overo_defconfig
> @@ -4,6 +4,10 @@ CONFIG_TARGET_OMAP3_OVERO=y
>  CONFIG_SYS_CONSOLE_INFO_QUIET=y
>  CONFIG_VERSION_VARIABLE=y
>  CONFIG_SPL=y
> +CONFIG_SPL_SYS_MALLOC_SIMPLE=y
> +CONFIG_SPL_STACK_R_ADDR=0x82000000
> +CONFIG_SPL_STACK_R=y
> +CONFIG_SYS_MALLOC_F_LEN=0x2000
>  CONFIG_SPL_MTD_SUPPORT=y
>  CONFIG_SPL_OS_BOOT=y
>  CONFIG_HUSH_PARSER=y
> --
> 1.9.1
>
> _______________________________________________
> U-Boot mailing list
> U-Boot@lists.denx.de
> https://lists.denx.de/listinfo/u-boot
Tom Rini March 12, 2017, 3:30 a.m. UTC | #2
On Sat, Mar 11, 2017 at 04:08:47PM +0000, Peter Robinson wrote:
> On Sat, Mar 11, 2017 at 3:34 PM, Tom Rini <trini@konsulko.com> wrote:
> > Borrowing from omap3_logic, switch to SPL_SYS_MALLOC_SIMPLE and moving
> > the stack to DDR as soon as we're able.
> 
> Should we do that for all the omap3 devices?

Yes.  I'm probably doing this one first on its own so that we can bring
in the thumb errata patch (which grows this one into non-linking in
travis).  But I think I should hold off on the errata patch until after
the release, just to be safe.
diff mbox

Patch

diff --git a/configs/omap3_overo_defconfig b/configs/omap3_overo_defconfig
index e841948ae6fb..0fa05cb0fa8a 100644
--- a/configs/omap3_overo_defconfig
+++ b/configs/omap3_overo_defconfig
@@ -4,6 +4,10 @@  CONFIG_TARGET_OMAP3_OVERO=y
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
 CONFIG_VERSION_VARIABLE=y
 CONFIG_SPL=y
+CONFIG_SPL_SYS_MALLOC_SIMPLE=y
+CONFIG_SPL_STACK_R_ADDR=0x82000000
+CONFIG_SPL_STACK_R=y
+CONFIG_SYS_MALLOC_F_LEN=0x2000
 CONFIG_SPL_MTD_SUPPORT=y
 CONFIG_SPL_OS_BOOT=y
 CONFIG_HUSH_PARSER=y