]> git.sur5r.net Git - u-boot/commit
ddr: altera: Rework initialize_tracking()
authorMarek Vasut <marex@denx.de>
Thu, 16 Jul 2015 22:45:11 +0000 (00:45 +0200)
committerMarek Vasut <marex@denx.de>
Sat, 8 Aug 2015 12:14:14 +0000 (14:14 +0200)
commit880e46f2d33c382a1acb449e277cf4f535b5c62a
treec24bbf8504ba886e8b5ac6b8cf816ede2851a0fb
parentd32badbd80e7089e4d240501d0a6bc36a4f03ed3
ddr: altera: Rework initialize_tracking()

Clean the function up by getting rid of all the insane XOR-leftshift
combos when assembling register values. While at it, remove all the
ad-hoc variables necessary for this XOR-leftshift voodoo. Finally,
get rid of the iterative division implementation of two constants
and replace it with a DIV_ROUND_UP() macro :-)

Signed-off-by: Marek Vasut <marex@denx.de>
drivers/ddr/altera/sequencer.c