]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
ddr: altera: Rework initialize_tracking()
authorMarek Vasut <marex@denx.de>
Thu, 16 Jul 2015 22:45:11 +0000 (00:45 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 06:17:26 +0000 (08:17 +0200)
commitcf8b6bee230796a6e8a6d9ea3de2812e9b712f04
treed98d55be2dfd2b97a6c6bd5660bf92c6816567f9
parent49e25793e1e8bd79b29fc5de87e9ae2be6358027
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