On Mon, 10 May 2010 15:23:20 -0700
Ron Madrid <ron_mad...@sbcglobal.net> wrote:

> This patch removes the checkboard function from the build of the 4k bootstrap
> section for the SIMPC8313 as it is not needed in the spl build.  This will
> allow > 100 bytes of extra room for other uses.
> 
> Signed-off-by: Ron Madrid <ron_mad...@sbcglobal.net>
> ---

Hi Ron,

while this patch looks great, the 8315 nand build remains broken.  I
cooked up the following patch to fix both the simpc8313 and the
8315erdb.  Let me know if you want me to still apply yours in addition
to this, or any other concerns you may have.

Thanks,

Kim

>From 4cb5f50929688d90b68366116713ec735ec51a5f Mon Sep 17 00:00:00 2001
From: Kim Phillips <kim.phill...@freescale.com>
Date: Fri, 14 May 2010 13:18:54 -0500
Subject: [PATCH] mpc83xx: fix NAND bootstrap too big error

commit 167cdad1372917bc11c636c359aad02625291fa9 "SERIAL: Enable
port-mapped access" inadvertently broke 83xx nand boards by
converting NS16550_init to use io accessors, which expanded
the size of the generated code.

this patch fixes the problem by removing icache functions from
the nand builds, which somewhat follows the icache implementation
commit 1a2e203b31d33fb720f2cf1033b241ad36ab405a "mpc83xx: turn on
icache in core initialization to improve u-boot boot time" took.

Signed-off-by: Kim Phillips <kim.phill...@freescale.com>
---
 arch/powerpc/cpu/mpc83xx/start.S |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/powerpc/cpu/mpc83xx/start.S b/arch/powerpc/cpu/mpc83xx/start.S
index a7c8079..1b3d618 100644
--- a/arch/powerpc/cpu/mpc83xx/start.S
+++ b/arch/powerpc/cpu/mpc83xx/start.S
@@ -739,6 +739,7 @@ setup_bats:
  * Note: requires that all cache bits in
  * HID0 are in the low half word.
  */
+#ifndef CONFIG_NAND_SPL
        .globl  icache_enable
 icache_enable:
        mfspr   r3, HID0
@@ -767,6 +768,7 @@ icache_status:
        mfspr   r3, HID0
        rlwinm  r3, r3, (31 - HID0_ICE_SHIFT + 1), 31, 31
        blr
+#endif /* !CONFIG_NAND_SPL */
 
        .globl  dcache_enable
 dcache_enable:
-- 
1.7.1

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to