]> git.dujemihanovic.xyz Git - u-boot.git/commit
ddr: altera: Clean up mem_config()
authorMarek Vasut <marex@denx.de>
Thu, 16 Jul 2015 23:57:41 +0000 (01:57 +0200)
committerMarek Vasut <marex@denx.de>
Sat, 8 Aug 2015 12:14:14 +0000 (14:14 +0200)
commit16502a0b2bcea3e2aa8736871f350196cab262fe
treee51aa5775dfdcb9c1bc678286a77304e7ffdff21
parent7c89c2d9cef93d035ee68da128e285eaa89cee2f
ddr: altera: Clean up mem_config()

Clean mem_config() function. First, reorder the math done in the
function such that WLAT and RLAT computation is together. Then,
scrap contradictory comments which do not match the result of the
math at all. Next, extract the mem_precharge_and_activate() call
from the end of the function as it is completely unrelated here.
Finally, rename the function to mem_init_latency().

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