| f42af35b | 19-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 | 16-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 | 16-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 | 16-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 | 18-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> |
| 9c1ab2ca | 18-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Clean up initialize_reg_file()
Add brief kerneldoc.
Signed-off-by: Marek Vasut <marex@denx.de> |
| bb06434b | 18-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Clean up hc_initialize_rom_data()
Clean the function up, fix data types, add kerneldoc.
Signed-off-by: Marek Vasut <marex@denx.de> |
| 1273dd9e | 12-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Massage addr into I/O accessors
Get rid of invocations of this sort: addr = (u32)&base->reg; writel(val, addr);
Signed-off-by: Marek Vasut <marex@denx.de> |
| 6cb9f167 | 12-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Stop using SDR_CTRLGRP_ADDRESS directly
Use the proper structure which describes these registers, especially since this is already in place.
Signed-off-by: Marek Vasut <marex@denx.de> |
| 17fdc916 | 12-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Wrap SOCFPGA_SDR_ADDRESS into SDR_PHYGRP.*ADDRESS
Just trim down the constant SOCFPGA_SDR_ADDRESS + SDR_PHYGRP.*ADDRESS in the code.
Signed-off-by: Marek Vasut <marex@denx.de> |
| c4815f76 | 12-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Pluck out remaining sdr_get_addr() calls
Remove the remaining invocations of sdr_get_addr() and the function itself. This makes the code a bit less cryptic.
Signed-off-by: Marek Vasut
ddr: altera: Pluck out remaining sdr_get_addr() calls
Remove the remaining invocations of sdr_get_addr() and the function itself. This makes the code a bit less cryptic.
Signed-off-by: Marek Vasut <marex@denx.de>
show more ...
|
| 1bc6f14a | 12-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Dissolve invocation of sdr_get_addr(&sdr_mgr_.*->.*)
Instead of this indirection, just adjust the register pointer and directly use the register base address.
Signed-off-by: Marek Vasu
ddr: altera: Dissolve invocation of sdr_get_addr(&sdr_mgr_.*->.*)
Instead of this indirection, just adjust the register pointer and directly use the register base address.
Signed-off-by: Marek Vasut <marex@denx.de>
show more ...
|
| 6afb4fe2 | 12-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Dissolve invocation of sdr_get_addr(&sdr_rw_load.*->.*)
Instead of this indirection, just adjust the register pointer and directly use the register base address.
Signed-off-by: Marek V
ddr: altera: Dissolve invocation of sdr_get_addr(&sdr_rw_load.*->.*)
Instead of this indirection, just adjust the register pointer and directly use the register base address.
Signed-off-by: Marek Vasut <marex@denx.de>
show more ...
|
| e79025a7 | 12-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Dissolve invocation of sdr_get_addr(&sdr_scc_mgr->.*)
Instead of this indirection, just adjust the register pointer and directly use the register base address.
Signed-off-by: Marek Vas
ddr: altera: Dissolve invocation of sdr_get_addr(&sdr_scc_mgr->.*)
Instead of this indirection, just adjust the register pointer and directly use the register base address.
Signed-off-by: Marek Vasut <marex@denx.de>
show more ...
|