| 880e46f2 | 16-Jul-2015 |
Marek Vasut <marex@denx.de> |
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 ne
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>
show more ...
|
| d32badbd | 17-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Fix ad-hoc iterative division implementation
Contemporary CPUs can perform division just fine, use this functionality and zap another implementation of iterative division :-)
Signed-of
ddr: altera: Fix ad-hoc iterative division implementation
Contemporary CPUs can perform division just fine, use this functionality and zap another implementation of iterative division :-)
Signed-off-by: Marek Vasut <marex@denx.de>
show more ...
|
| f936f94f | 26-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Minor clean up of set_jump_as_return()
Add kerneldoc and do a minor comment cleanup.
Signed-off-by: Marek Vasut <marex@denx.de> |
| ecd2334a | 12-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Factor out common code
Factor out almost common code from rw_mgr_mem_handoff() and rw_mgr_mem_initialize() into separate rw_mgr_mem_load_user(). No functional change.
Signed-off-by: Ma
ddr: altera: Factor out common code
Factor out almost common code from rw_mgr_mem_handoff() and rw_mgr_mem_initialize() into separate rw_mgr_mem_load_user(). No functional change.
Signed-off-by: Marek Vasut <marex@denx.de>
show more ...
|
| 944fe719 | 12-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Factor out instruction loading from rw_mgr_mem_initialize()
Pull the duplicate code out into a separate function.
Signed-off-by: Marek Vasut <marex@denx.de> |
| f51a7d35 | 19-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Clean up scc_mgr_apply_group_all_out_delay_add_all_ranks()
Zap unused group_bgn parameter, fix and constify data types. Document in kerneldoc. No functional change.
Signed-off-by: Mare
ddr: altera: Clean up scc_mgr_apply_group_all_out_delay_add_all_ranks()
Zap unused group_bgn parameter, fix and constify data types. Document in kerneldoc. No functional change.
Signed-off-by: Marek Vasut <marex@denx.de>
show more ...
|
| 5cb1b508 | 17-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Internal scc_mgr_apply_group_all_out_delay_add() cleanup part 2
Clean the DQS and OCT parts of the function, clean up the chopped formatting strings in debug_cond() and slightly improve
ddr: altera: Internal scc_mgr_apply_group_all_out_delay_add() cleanup part 2
Clean the DQS and OCT parts of the function, clean up the chopped formatting strings in debug_cond() and slightly improve the code. Zap group_bgn argument as it is used only in debug messages. Document the function using kerneldoc. No functional change.
Signed-off-by: Marek Vasut <marex@denx.de>
show more ...
|
| 8eccde3e | 17-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Internal scc_mgr_apply_group_all_out_delay_add() cleanup part 1
Apparently, in case of the DQ and DM, the value if the new_delay variable is calculated, but the value is not used. Zap t
ddr: altera: Internal scc_mgr_apply_group_all_out_delay_add() cleanup part 1
Apparently, in case of the DQ and DM, the value if the new_delay variable is calculated, but the value is not used. Zap the entire code which does calculate the value.
It is not clear to me whether or not the code is doing the right thing in the first place. Right now, it calls scc_mgr_load_dq() and scc_mgr_load_dm() respectively, but I suspect it might need to call scc_mgr_apply_group_dq_out1_delay() and scc_mgr_apply_group_dm_out1_delay() instead. This is something Altera must investigate.
Signed-off-by: Marek Vasut <marex@denx.de>
show more ...
|
| d41ea93a | 20-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Clean up scc_mgr_zero_group()
First, zap unused argument of the function. Next, clean up the data types, constify where applicable, clean up comments and add kerneldoc.
Signed-off-by:
ddr: altera: Clean up scc_mgr_zero_group()
First, zap unused argument of the function. Next, clean up the data types, constify where applicable, clean up comments and add kerneldoc.
Signed-off-by: Marek Vasut <marex@denx.de>
show more ...
|
| f42af35b | 20-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Clean up scc_mgr_zero_all()
Add kerneldoc, clean up datatypes and fix minor indentation issue.
Signed-off-by: Marek Vasut <marex@denx.de> |
| fa5d821b | 18-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Extract scc_mgr_set_hhp_extras()
Move scc_mgr_set_hhp_extras() out of scc_set_bypass_mode() as it has nothing to do in there. Instead, invoke it from mem_calibrate() just before invokin
ddr: altera: Extract scc_mgr_set_hhp_extras()
Move scc_mgr_set_hhp_extras() out of scc_set_bypass_mode() as it has nothing to do in there. Instead, invoke it from mem_calibrate() just before invoking scc_set_bypass_mode().
Signed-off-by: Marek Vasut <marex@denx.de>
show more ...
|
| 37a37ca7 | 18-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Clean up scc_mgr_set_hhp_extras()
Minor coding style cleanup for this function. Furthermore, move ad-hoc debug_cond() calls from the only location from where this function is invoked in
ddr: altera: Clean up scc_mgr_set_hhp_extras()
Minor coding style cleanup for this function. Furthermore, move ad-hoc debug_cond() calls from the only location from where this function is invoked into this actual function.
Signed-off-by: Marek Vasut <marex@denx.de>
show more ...
|
| 32675249 | 17-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Clean up scc_mgr_*_delay() args
Zap args which are not used by these functions, in particular the write_group is often passed, but unused.
Signed-off-by: Marek Vasut <marex@denx.de> |
| 300c2e62 | 17-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Clean up scc_mgr_apply_group_dq_out1_delay()
Remove unused write_group and group_bgn argument from this function. Document the function using kerneldoc.
Signed-off-by: Marek Vasut <mar
ddr: altera: Clean up scc_mgr_apply_group_dq_out1_delay()
Remove unused write_group and group_bgn argument from this function. Document the function using kerneldoc.
Signed-off-by: Marek Vasut <marex@denx.de>
show more ...
|
| 5be355c1 | 12-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Clean up scc_mgr_set_oct_out1_delay()
Make this function more readable, no functional change.
Signed-off-by: Marek Vasut <marex@denx.de> |
| c5c5f537 | 17-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Clean up scc_set_bypass_mode()
The mode argument of this function is not used at all, zap it.
Signed-off-by: Marek Vasut <marex@denx.de> |
| 5e837896 | 12-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Clean up scc_mgr_load_dqs_for_write_group()
Make this function more readable, no functional change. Also, zap the forward declaration, which is no longer needed.
Signed-off-by: Marek V
ddr: altera: Clean up scc_mgr_load_dqs_for_write_group()
Make this function more readable, no functional change. Also, zap the forward declaration, which is no longer needed.
Signed-off-by: Marek Vasut <marex@denx.de>
show more ...
|
| 0b69b807 | 12-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Implement universal scc_mgr_set_all_ranks()
Implement universal scc_mgr_set_all_ranks() function and convert various ad-hoc implementations of similar functionality to use this single f
ddr: altera: Implement universal scc_mgr_set_all_ranks()
Implement universal scc_mgr_set_all_ranks() function and convert various ad-hoc implementations of similar functionality to use this single function. Document the function in kerneldoc.
Signed-off-by: Marek Vasut <marex@denx.de>
show more ...
|
| 162d60ef | 12-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Shuffle around scc_mgr_set_*all_ranks()
Shuffle the code around a bit, but without any functional change.
Signed-off-by: Marek Vasut <marex@denx.de> |
| e893f4dc | 20-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Clean up scc_mgr_initialize()
Clean up the comments and add kerneldoc. No functional change.
Signed-off-by: Marek Vasut <marex@denx.de> |
| c76976d9 | 12-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Implement universal scc manager config function
Implement unified scc_mgr_set() function and convert all those 9 scc_mgr_set_*() ad-hoc functions to call this one function.
Signed-off-
ddr: altera: Implement universal scc manager config function
Implement unified scc_mgr_set() function and convert all those 9 scc_mgr_set_*() ad-hoc functions to call this one function.
Signed-off-by: Marek Vasut <marex@denx.de>
show more ...
|
| 5ff825b8 | 12-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Reorder scc manager functions
This patch just puts functions which look similar next to each other, so they can be sorted out. No functional change.
Signed-off-by: Marek Vasut <marex@d
ddr: altera: Reorder scc manager functions
This patch just puts functions which look similar next to each other, so they can be sorted out. No functional change.
Signed-off-by: Marek Vasut <marex@denx.de>
show more ...
|
| 07aee5bd | 12-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Clean up scc manager function args
Clean up the unused args of the functions used to configure the SCC manager.
Signed-off-by: Marek Vasut <marex@denx.de> |
| 2c0d2d9c | 12-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Clean up reg_file_set*()
Turn the insides of these functions into trivial clrsetbits_le32() and fix the data type of their argument to reflect it's actual size.
Signed-off-by: Marek Va
ddr: altera: Clean up reg_file_set*()
Turn the insides of these functions into trivial clrsetbits_le32() and fix the data type of their argument to reflect it's actual size.
Signed-off-by: Marek Vasut <marex@denx.de>
show more ...
|
| 2ca151f8 | 19-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Clean up initialize_hps_phy()
Add brief kerneldoc.
Signed-off-by: Marek Vasut <marex@denx.de> |