]> git.sur5r.net Git - u-boot/commit
mx5: Optimize lowlevel_init code size
authorBenoît Thébaudeau <benoit.thebaudeau@advansee.com>
Tue, 14 Aug 2012 05:19:12 +0000 (05:19 +0000)
committerTom Rini <trini@ti.com>
Mon, 15 Oct 2012 18:54:13 +0000 (11:54 -0700)
commitdd227b6ea018e9cefc1a5a3b367e6cdec4bfb45e
tree93da73432cfe998d7db2de5e3f95eccdc798102b
parent51535d9f6f701aac88873986edfeb5c5e49ea6a0
mx5: Optimize lowlevel_init code size

Optimize mx5 lowlevel_init.S code size:
 - Compute values at compile time rather than at runtime where possible.
 - Assign r4 to hold the zero value rather than setting registers to 0 again and
   again.
 - Associate a function to setup_pll rather than expanding its large macro code
   multiple times.
 - Allocate constant values in section only if used.

Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
Cc: Stefano Babic <sbabic@denx.de>
Tested-by: Stefano Babic <sbabic@denx.de>
Acked-by: Stefano Babic <sbabic@denx.de>
arch/arm/cpu/armv7/mx5/lowlevel_init.S