]> git.dujemihanovic.xyz Git - u-boot.git/commit
mx25: Clean up lowlevel_init
authorBenoît Thébaudeau <benoit.thebaudeau@advansee.com>
Mon, 20 Aug 2012 09:00:57 +0000 (09:00 +0000)
committerTom Rini <trini@ti.com>
Mon, 15 Oct 2012 18:54:14 +0000 (11:54 -0700)
commit85d993cef9b8e16431800dfc23e90e23bb144357
tree010a17f5423b84c8b12f857f104ec6a6f5340ba7
parent9e0081d573442e7234355f0a043218d15df03933
mx25: Clean up lowlevel_init

Clean up mx25 lowlevel_init:
 - Add comments.
 - Do not use write32 repeatedly with the same value in order not to increase
   code size.
 - Make register values configurable.
 - Use macro parameters with default values instead of literal constants.
 - Use defined macros instead of duplicating code.

Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: John Rigby <jcrigby@gmail.com>
Cc: Matthias Weisser <weisserm@arcor.de>
arch/arm/include/asm/arch-mx25/macro.h
board/karo/tx25/lowlevel_init.S