uboot-mt623x/cpu/mpc83xx
Peter Korsgaard 3b887ca8ce mpc83xx: boot time regression, move LCRR setup back to cpu_init_f
Commit c7190f02 (retain POR values of non-configured ACR, SPCR, SCCR,
and LCRR bitfields) moved the LCRR assignment to after relocation
to RAM because of the potential problem with changing the local bus
clock while executing from flash.

This change unfortunately adversely affects the boot time, as running
all code up to cpu_init_r can cause significant slowdown.

E.G. on a 8347 board a bootup time increase of ~600ms has been observed:

   0.020 CPU:   e300c1, MPC8347_PBGA_EA, Rev: 3.0 at 400 MHz, CSB: 266.667 MHz
   0.168 RS:    232
   0.172 I2C:   ready
   0.176 DRAM:  64 MB
   1.236 FLASH: 32 MB

Versus:

   0.016 CPU:   e300c1, MPC8347_PBGA_EA, Rev: 3.0 at 400 MHz, CSB: 266.667 MHz
   0.092 RS:    232
   0.092 I2C:   ready
   0.096 DRAM:  64 MB
   0.644 FLASH: 32 MB

So far no boards have needed the late LCRR setup, so simply revert it
for now - If it is needed at a later time, those boards can either do
their own final LCRR setup in board code (E.G. in board_early_init_r),
or we can introduce a CONFIG_SYS_LCRR_LATE config option to only do
the setup in cpu_init_r.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
2009-12-09 11:40:52 -06:00
..
Makefile mpc83xx: CONFIG_83XX_GENERIC_PCI is now synonymous with CONFIG_PCI; remove the former 2009-07-27 10:17:54 -05:00
config.mk 83xx: Replace CONFIG_MPC83XX with CONFIG_MPC83xx 2009-06-12 20:47:17 +02:00
cpu.c 83xx: Add support for fsl_dma driver 2009-07-02 11:15:57 -05:00
cpu_init.c mpc83xx: boot time regression, move LCRR setup back to cpu_init_f 2009-12-09 11:40:52 -06:00
ecc.c Command usage cleanup 2009-01-28 08:49:52 +01:00
fdt.c mpc83xx: mpc8313 - handle erratum IPIC1 (TSEC IRQ number swappage) 2009-10-16 17:08:35 -05:00
interrupts.c rename CFG_ macros to CONFIG_SYS 2008-10-18 21:54:03 +02:00
nand_init.c rename CFG_ macros to CONFIG_SYS 2008-10-18 21:54:03 +02:00
pci.c mpc83xx: PCI: Fix hard-coded first_busno value 2009-02-23 15:52:23 -06:00
pcie.c mpc83xx: PCIe: Fix CONFIG_PCI_SCAN_SHOW reporting bogus values 2009-02-23 15:51:59 -06:00
qe_io.c rename CFG_ macros to CONFIG_SYS 2008-10-18 21:54:03 +02:00
serdes.c mpc83xx/serdes: License cleanup: remove "All Rights Reserved" notice 2009-09-04 23:02:04 +02:00
spd_sdram.c 83xx: Add support for fsl_dma driver 2009-07-02 11:15:57 -05:00
speed.c 83xx: Replace CONFIG_MPC83[0-9]X with MPC83[0-9]x 2009-06-12 20:47:17 +02:00
start.S relocation: Do not relocate NULL pointers. 2009-10-08 09:33:36 +02:00
traps.c rename CFG_ macros to CONFIG_SYS 2008-10-18 21:54:03 +02:00
u-boot.lds ppc: Enable full relocation to RAM 2009-10-03 10:15:45 +02:00