]> git.dujemihanovic.xyz Git - u-boot.git/commit
mpc8569mds: fix consuming long time while relocating code.
authorHaiying Wang <Haiying.Wang@freescale.com>
Wed, 29 Sep 2010 17:31:35 +0000 (13:31 -0400)
committerKumar Gala <galak@kernel.crashing.org>
Thu, 7 Oct 2010 14:49:47 +0000 (09:49 -0500)
commit3aed55074211b4e886d97f16773f186a019d508d
treed2190f2ebb454371f411328097a44ddb0ddb58e2
parent1b8e4fa1a093c818b53c8b6d959bcfde41fbe065
mpc8569mds: fix consuming long time while relocating code.

The original code maps boot flash as non-cacheable region. When calling
relocate_code in flash to copy u-boot from flash to ddr, every loop copy command
is read from flash. The flash read speed will be the bottleneck, which consuming
long time to do this operation. To resovle this, map the boot flash as
write-through cache via tlb. And set tlb to remap the flash after code
executing in ddr, to confirm flash erase operation properly done.

Signed-off-by: Kai.Jiang <Kai.Jiang@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
board/freescale/mpc8569mds/mpc8569mds.c
board/freescale/mpc8569mds/tlb.c
include/configs/MPC8569MDS.h