ddr: altera: Clean up rw_mgr_mem_calibrate_vfifo_center() part 2
authorMarek Vasut <marex@denx.de>
Mon, 13 Jul 2015 00:38:15 +0000 (02:38 +0200)
committerMarek Vasut <marex@denx.de>
Sat, 8 Aug 2015 12:14:21 +0000 (14:14 +0200)
commit71120773bf1206434f35b4933b16afb4166054e7
treec468646eba5be77218037007ae4699e2b1d3fbe0
parentc4907898a1281be6cf02fecc10331a5b0f501953
ddr: altera: Clean up rw_mgr_mem_calibrate_vfifo_center() part 2

Factor out common code from rw_mgr_mem_calibrate_writes_center()
and rw_mgr_mem_calibrate_vfifo_center() for searching for the
left edge of the window. The code is almost identical, so pull
it into separate function and cater for the minor differences.

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