]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
ddr: altera: Replace float multiplication with integer one
authorMarek Vasut <marex@denx.de>
Mon, 10 Aug 2015 20:50:11 +0000 (22:50 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 08:30:34 +0000 (10:30 +0200)
commite69cf0222be85cd7cb8f2050ac6a69ab6d6063b5
tree3efa3e40f9ef201473f4fa4f41d2d4407ce9068e
parentc2f89939c77f970509e6a36832681a78ebadfa19
ddr: altera: Replace float multiplication with integer one

This gem is really really rare, there was an actual float used in
the Altera DDR init code, which pulled in floating point ops from
the libgcc, just wow.

Since we don't support floating point operations the same way Linux
does not support them, replace this with an integer multiplication
and division combo. This removes some 2kiB of size from the SPL as
the floating point ops are no longer pulled in from libgcc.

This was detected by enabling CONFIG_USE_PRIVATE_LIBGCC=y , which
does not contain the floating point bits.

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