| b3bdb220 | 01-Aug-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: sdram: Clean up set_sdr_static_cfg()
Get rid of the constant clrsetbits_le32(), instead prepare the whole content of the register once and write it at the end of the function.
Signed-o
ddr: altera: sdram: Clean up set_sdr_static_cfg()
Get rid of the constant clrsetbits_le32(), instead prepare the whole content of the register once and write it at the end of the function.
Signed-off-by: Marek Vasut <marex@denx.de>
show more ...
|
| 0ef88300 | 01-Aug-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: sdram: Clean up set_sdr_addr_rw()
Get rid of the constant clrsetbits_le32(), instead prepare the whole content of the register once and write it at the end of the function.
Signed-off-
ddr: altera: sdram: Clean up set_sdr_addr_rw()
Get rid of the constant clrsetbits_le32(), instead prepare the whole content of the register once and write it at the end of the function.
Signed-off-by: Marek Vasut <marex@denx.de>
show more ...
|
| 60bd0df0 | 01-Aug-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: sdram: Clean up set_sdr_dram_timing*()
Get rid of the constant clrsetbits_le32(), instead prepare the whole content of the register once and write it at the end of the function. Merge s
ddr: altera: sdram: Clean up set_sdr_dram_timing*()
Get rid of the constant clrsetbits_le32(), instead prepare the whole content of the register once and write it at the end of the function. Merge set_sdr_dram_timing{1,2,3,4,lowpwr}() into single function set_sdr_dram_timing() , since there's no point in keeping all this stuff separate anymore.
Signed-off-by: Marek Vasut <marex@denx.de>
show more ...
|
| 067c853f | 01-Aug-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: sdram: Clean up set_sdr_ctrlcfg()
Get rid of the constant clrsetbits_le32(), instead prepare the whole content of the register once and write it at the end of the function. The big plan
ddr: altera: sdram: Clean up set_sdr_ctrlcfg()
Get rid of the constant clrsetbits_le32(), instead prepare the whole content of the register once and write it at the end of the function. The big plan here is to remove all the CONFIG_HPS_SDR_ macros, hide them in QTS compatibility layer in board implementation and pass only a small structure into the driver.
Signed-off-by: Marek Vasut <marex@denx.de>
show more ...
|
| f3671697 | 01-Aug-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: sdram: Clean up compute_errata_rows() part 2
Remove all parameters of this function, since they are only constants passed in from another function, so make them local. Also, rename the
ddr: altera: sdram: Clean up compute_errata_rows() part 2
Remove all parameters of this function, since they are only constants passed in from another function, so make them local. Also, rename the function to get_errata_rows() as this is closer to what it does.
Signed-off-by: Marek Vasut <marex@denx.de>
show more ...
|
| 791d20e1 | 01-Aug-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: sdram: Clean up compute_errata_rows() part 1
Clean up weird parenthesis and odd type casts from the function. Fix comment style.
Signed-off-by: Marek Vasut <marex@denx.de> |
| 58d86144 | 01-Aug-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: sdram: Switch to generic_hweight32()
Use generic function instead of CPU-specific one.
Signed-off-by: Marek Vasut <marex@denx.de> |
| 3de9622e | 26-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Clean up of delay_for_n_mem_clocks() part 5
Add kerneldoc.
Signed-off-by: Marek Vasut <marex@denx.de> |
| 0c1b81bd | 26-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Clean up of delay_for_n_mem_clocks() part 4
Simplify the loop code, optimizing compiler can deal with this. No functional change.
Signed-off-by: Marek Vasut <marex@denx.de> |
| 6a39be6c | 26-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Clean up of delay_for_n_mem_clocks() part 3
Clean up the computation of c_loop, outer and inner variables.
Signed-off-by: Marek Vasut <marex@denx.de> |
| cbcaf460 | 26-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Clean up of delay_for_n_mem_clocks() part 2
Factor out (afi_clocks - 1) into a single place instead of having it all around the function.
Signed-off-by: Marek Vasut <marex@denx.de> |
| 90a584b7 | 26-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Clean up of delay_for_n_mem_clocks() part 1
Fix data types, clean up comments a bit and fix coding style a bit. No functional change.
Signed-off-by: Marek Vasut <marex@denx.de> |
| f1f22f72 | 26-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Minor clean up of rw_mgr_mem_handoff()
Add kerneldoc and perform a minor comment cleanup.
Signed-off-by: Marek Vasut <marex@denx.de> |
| c984278a | 21-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Clean up rw_mgr_mem_calibrate_lfifo()
Minor coding style cleanup, add kerneldoc. No functional change.
Signed-off-by: Marek Vasut <marex@denx.de> |
| 78cdd7d0 | 18-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Clean up rw_mgr_mem_calibrate_vfifo_end()
This function is implementing the DDR calibration Stage 3 as described in Altera EMI_RM 2015.05.04 . The main body of this function is almost i
ddr: altera: Clean up rw_mgr_mem_calibrate_vfifo_end()
This function is implementing the DDR calibration Stage 3 as described in Altera EMI_RM 2015.05.04 . The main body of this function is almost identical to Stage 1.3 (DQ/DQS centering) for all but two flags -- use_read_test and update_fom. Convert this function to call rw_mgr_mem_calibrate_dq_dqs_centering() with the correct flags set to trim down the code duplication.
Moreover, reorder the remnants in the function a little and convert the function to return either 0 or -EIO in case of success and failure respectively, to match the common return value convention.
Signed-off-by: Marek Vasut <marex@denx.de>
show more ...
|
| 8371c2ee | 21-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Clean up rw_mgr_mem_calibrate_write_test_issue()
Brief clean, add kerneldoc.
Signed-off-by: Marek Vasut <marex@denx.de> |
| 4a82854b | 21-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Clean up rw_mgr_mem_calibrate_write_test() part 3
Add kerneldoc.
Signed-off-by: Marek Vasut <marex@denx.de> |
| b9452ea0 | 21-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Clean up rw_mgr_mem_calibrate_write_test() part 2
Clean up coding style, mostly broken multiline formatting strings in debug output. Also clean up data types and constify where applicab
ddr: altera: Clean up rw_mgr_mem_calibrate_write_test() part 2
Clean up coding style, mostly broken multiline formatting strings in debug output. Also clean up data types and constify where applicable.
Signed-off-by: Marek Vasut <marex@denx.de>
show more ...
|
| ad64769c | 21-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Clean up rw_mgr_mem_calibrate_write_test() part 1
Move code around to get rid of the forward declaration. No change to the actual code.
Signed-off-by: Marek Vasut <marex@denx.de> |
| a386a50e | 21-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Clean up rw_mgr_mem_calibrate_writes_center() part 5
Add kerneldoc.
Signed-off-by: Marek Vasut <marex@denx.de> |
| d043ee5b | 21-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Clean up rw_mgr_mem_calibrate_writes_center() part 4
Fix return values to match the common return value convention.
Signed-off-by: Marek Vasut <marex@denx.de> |
| c6540872 | 21-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Clean up rw_mgr_mem_calibrate_writes_center() part 3
Zap the useless addr variable.
Signed-off-by: Marek Vasut <marex@denx.de> |
| c8570afa | 21-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Clean up rw_mgr_mem_calibrate_writes_center() part 2
Factor out common code for searching best DM/DQS window.
Signed-off-by: Marek Vasut <marex@denx.de> |
| 3b44f55c | 21-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Clean up rw_mgr_mem_calibrate_writes_center() part 1
Fix data types and constify where applicable, fix broken multiline debug strings and fix comments. No functional change.
Signed-off
ddr: altera: Clean up rw_mgr_mem_calibrate_writes_center() part 1
Fix data types and constify where applicable, fix broken multiline debug strings and fix comments. No functional change.
Signed-off-by: Marek Vasut <marex@denx.de>
show more ...
|
| ac63b9ad | 21-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Clean up rw_mgr_mem_calibrate_vfifo_center() part 11
Add kerneldoc, no functional change.
Signed-off-by: Marek Vasut <marex@denx.de> |