| c4907898 | 12-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Clean up rw_mgr_mem_calibrate_vfifo_center() part 1
Factor out common code from rw_mgr_mem_calibrate_writes_center() and rw_mgr_mem_calibrate_vfifo_center() for searching for the right
ddr: altera: Clean up rw_mgr_mem_calibrate_vfifo_center() part 1
Factor out common code from rw_mgr_mem_calibrate_writes_center() and rw_mgr_mem_calibrate_vfifo_center() for searching for the right 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>
show more ...
|
| db3a6061 | 18-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Clean up rw_mgr_mem_calibrate_writes()
Reorder the content of the function a little and fix the comments so they at least become full sentences. Constify function args. Fix the return v
ddr: altera: Clean up rw_mgr_mem_calibrate_writes()
Reorder the content of the function a little and fix the comments so they at least become full sentences. Constify function args. Fix the return value to match the common convention of 0 meaning success.
Signed-off-by: Marek Vasut <marex@denx.de>
show more ...
|
| 783fcf59 | 19-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Clean up rw_mgr_mem_calibrate_read_test() part 5
Make the function documentation into kerneldoc.
Signed-off-by: Marek Vasut <marex@denx.de> |
| ba522c76 | 19-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Clean up rw_mgr_mem_calibrate_read_test() part 4
Clean up the inner loop a bit. No functional change.
Signed-off-by: Marek Vasut <marex@denx.de> |
| 7ce23bb6 | 19-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Clean up rw_mgr_mem_calibrate_read_test() part 3
The C language has signed types, so make use of them. Fix this obscene loop, which tries to do away with unsigned type, but just makes t
ddr: altera: Clean up rw_mgr_mem_calibrate_read_test() part 3
The C language has signed types, so make use of them. Fix this obscene loop, which tries to do away with unsigned type, but just makes the code more cryptic.
Signed-off-by: Marek Vasut <marex@denx.de>
show more ...
|
| 3cb8bf3f | 19-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Clean up rw_mgr_mem_calibrate_read_test() part 2
Clean up data types and constify where applicable. No function change.
Signed-off-by: Marek Vasut <marex@denx.de> |
| 3853d65e | 19-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Clean up rw_mgr_mem_calibrate_read_test() part 1
Clean up the debug output handling at the end of the function and factor out common function call from the condition.
Signed-off-by: Ma
ddr: altera: Clean up rw_mgr_mem_calibrate_read_test() part 1
Clean up the debug output handling at the end of the function and factor out common function call from the condition.
Signed-off-by: Marek Vasut <marex@denx.de>
show more ...
|
| 96df6036 | 19-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Clean up rw_mgr_mem_calibrate_read_test_all_ranks()
Signed-off-by: Marek Vasut <marex@denx.de> |
| 33756893 | 20-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Clean up rw_mgr_mem_calibrate_vfifo_find_dqs_en_phase() part 7
Add kerneldoc, no functional change.
Signed-off-by: Marek Vasut <marex@denx.de> |
| 914546e7 | 20-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Clean up rw_mgr_mem_calibrate_vfifo_find_dqs_en_phase() part 6
Fix the return value to match common conventions and propagate this change through the code.
Signed-off-by: Marek Vasut <
ddr: altera: Clean up rw_mgr_mem_calibrate_vfifo_find_dqs_en_phase() part 6
Fix the return value to match common conventions and propagate this change through the code.
Signed-off-by: Marek Vasut <marex@denx.de>
show more ...
|
| 5735540f | 20-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Clean up rw_mgr_mem_calibrate_vfifo_find_dqs_en_phase() part 5
Fix the data types, constify where applicable.
Signed-off-by: Marek Vasut <marex@denx.de> |
| 52e8f217 | 19-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Clean up rw_mgr_mem_calibrate_vfifo_find_dqs_en_phase() part 4
Implement common sdr_find_phase_delay() function and convert all places which use such code to this unified function. No f
ddr: altera: Clean up rw_mgr_mem_calibrate_vfifo_find_dqs_en_phase() part 4
Implement common sdr_find_phase_delay() function and convert all places which use such code to this unified function. No functional change to the code.
Signed-off-by: Marek Vasut <marex@denx.de>
show more ...
|
| 37b7b13d | 19-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Clean up rw_mgr_mem_calibrate_vfifo_find_dqs_en_phase() part 3
Clean up odd multiline loop, no functional change.
Signed-off-by: Marek Vasut <marex@denx.de> |
| 23e8ea90 | 19-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Clean up rw_mgr_mem_calibrate_vfifo_find_dqs_en_phase() part 2
If d != 0 after sdr_working_phase() finishes, the else branch of the condition has no impact on anything at all, since wor
ddr: altera: Clean up rw_mgr_mem_calibrate_vfifo_find_dqs_en_phase() part 2
If d != 0 after sdr_working_phase() finishes, the else branch of the condition has no impact on anything at all, since work_end was already set independently of the value of "d" . Zap this useless code.
Signed-off-by: Marek Vasut <marex@denx.de>
show more ...
|
| 2f3589ca | 18-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Clean up rw_mgr_mem_calibrate_vfifo_find_dqs_en_phase() part 1
Fix broken multiline debug strings, fix comments. No functional change.
Signed-off-by: Marek Vasut <marex@denx.de> |
| d145ca9f | 18-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Clean up find_vfifo_read()
Fix data types, constify where applicable, fix comments and debug strings. In case enough failing reads are detected, just return right away instead of breaki
ddr: altera: Clean up find_vfifo_read()
Fix data types, constify where applicable, fix comments and debug strings. In case enough failing reads are detected, just return right away instead of breaking from the loop. This lets us make the error handling at the end much simpler.
Signed-off-by: Marek Vasut <marex@denx.de>
show more ...
|
| 8c887b6e | 18-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Clean up rw_mgr_*_vfifo() part 2
Pluck out all this VFIFO value counting, which turns out to be completely unused. Thus, remove it to simplify the code.
Signed-off-by: Marek Vasut <mar
ddr: altera: Clean up rw_mgr_*_vfifo() part 2
Pluck out all this VFIFO value counting, which turns out to be completely unused. Thus, remove it to simplify the code.
Signed-off-by: Marek Vasut <marex@denx.de>
show more ...
|
| 60bb8a8a | 18-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Clean up rw_mgr_*_vfifo() part 1
Perform minor cleanup, fix data types and constify where applicable. Add kerneldoc.
Signed-off-by: Marek Vasut <marex@denx.de> |
| 4c5e584b | 18-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Clean up sdr_*_phase() part 10
Clean up data types, constify where applicable and document the functions with kerneldoc.
Signed-off-by: Marek Vasut <marex@denx.de> |
| 49891df6 | 18-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Clean up sdr_*_phase() part 9
The "d" variable is set to 0 in sdr_backup_phase() and is not used at all in sdr_nonworking_phase(). Make it local and zap it respectively.
Signed-off-by:
ddr: altera: Clean up sdr_*_phase() part 9
The "d" variable is set to 0 in sdr_backup_phase() and is not used at all in sdr_nonworking_phase(). Make it local and zap it respectively.
Signed-off-by: Marek Vasut <marex@denx.de>
show more ...
|
| a80f4534 | 18-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Clean up sdr_*_phase() part 8
The work_bgn parameter of sdr_nonworking_phase() is unused, zap it.
Signed-off-by: Marek Vasut <marex@denx.de> |
| 35ee867f | 18-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Clean up sdr_*_phase() part 7
Wrap dtaps_per_ptap into the sdr_working_phase() function to trim down the number of params. It's a constant too.
Signed-off-by: Marek Vasut <marex@denx.d
ddr: altera: Clean up sdr_*_phase() part 7
Wrap dtaps_per_ptap into the sdr_working_phase() function to trim down the number of params. It's a constant too.
Signed-off-by: Marek Vasut <marex@denx.de>
show more ...
|
| 86a39dc7 | 18-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Clean up sdr_*_phase() part 6
It is now clear that the max_working_cnt variable is totally unused. Zap the variable and zap other variables which became unused due to this change too.
ddr: altera: Clean up sdr_*_phase() part 6
It is now clear that the max_working_cnt variable is totally unused. Zap the variable and zap other variables which became unused due to this change too.
Signed-off-by: Marek Vasut <marex@denx.de>
show more ...
|
| 192d6f9f | 18-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Clean up sdr_*_phase() part 5
Pull out the loop for eaching working/non-working DQS enable phase into a separate function, as this is mostly common code between. Clean up sdr_working_ph
ddr: altera: Clean up sdr_*_phase() part 5
Pull out the loop for eaching working/non-working DQS enable phase into a separate function, as this is mostly common code between. Clean up sdr_working_phase() and sdr_nonworking_phase() while switching these two functions to the common sdr_find_phase().
Signed-off-by: Marek Vasut <marex@denx.de>
show more ...
|
| 38ed6922 | 18-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Clean up sdr_*_phase() part 4
Get rid of found_{begin,end} variables. Instead of breaking out through all of the loops, just return when the begin/end of the window is found and be done
ddr: altera: Clean up sdr_*_phase() part 4
Get rid of found_{begin,end} variables. Instead of breaking out through all of the loops, just return when the begin/end of the window is found and be done with it. Also clean up the trailing conditional expression, which is now much easier.
Signed-off-by: Marek Vasut <marex@denx.de>
show more ...
|