mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-29 08:01:08 +00:00
mpc83xx: fix NAND bootstrap too big error
commit167cdad137
"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 commit1a2e203b31
"mpc83xx: turn on icache in core initialization to improve u-boot boot time" Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
This commit is contained in:
parent
e74244c5a1
commit
a4bfc4cc46
1 changed files with 2 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue