| #
3cd0906c |
| 02-Aug-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: sequencer: Zap SEQ_T(INIT|RESET)_CNTR._VAL
This is another macro used to obfuscate the real code. The T(INIT|RESET)_CNTR._VAL is always defined, so this indirection is unnecessary. Get
ddr: altera: sequencer: Zap SEQ_T(INIT|RESET)_CNTR._VAL
This is another macro used to obfuscate the real code. The T(INIT|RESET)_CNTR._VAL is always defined, so this indirection is unnecessary. Get rid of this.
Signed-off-by: Marek Vasut <marex@denx.de> Acked-by: Dinh Nguyen <dinguyen@opensource.altera.com>
show more ...
|
| #
98cfc905 |
| 02-Aug-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: sequencer: Zap VFIFO_SIZE
Just use READ_VALID_FIFO_SIZE directly, no need for this macro obfuscation.
Signed-off-by: Marek Vasut <marex@denx.de> Acked-by: Dinh Nguyen <dinguyen@opensou
ddr: altera: sequencer: Zap VFIFO_SIZE
Just use READ_VALID_FIFO_SIZE directly, no need for this macro obfuscation.
Signed-off-by: Marek Vasut <marex@denx.de> Acked-by: Dinh Nguyen <dinguyen@opensource.altera.com>
show more ...
|
| #
1fa0c8c4 |
| 02-Aug-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: sequencer: Pluck out RW_MGR_* macros from code
Actually convert the sequencer code to use socfpga_sdram_rw_mgr_config instead of the RW_MGR_* macros. This is just an sed exercise here,
ddr: altera: sequencer: Pluck out RW_MGR_* macros from code
Actually convert the sequencer code to use socfpga_sdram_rw_mgr_config instead of the RW_MGR_* macros. This is just an sed exercise here, no manual coding needed.
Signed-off-by: Marek Vasut <marex@denx.de> Acked-by: Dinh Nguyen <dinguyen@opensource.altera.com>
show more ...
|
| #
499b7a7c |
| 02-Aug-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: sequencer: Zap bogus redefinition of RW_MGR_MEM_NUMBER_OF_RANKS
This is defined in the QTS-generated headers, so it must not be re-defined in sequencer.h .
Signed-off-by: Marek Vasut <
ddr: altera: sequencer: Zap bogus redefinition of RW_MGR_MEM_NUMBER_OF_RANKS
This is defined in the QTS-generated headers, so it must not be re-defined in sequencer.h .
Signed-off-by: Marek Vasut <marex@denx.de> Acked-by: Dinh Nguyen <dinguyen@opensource.altera.com>
show more ...
|
| #
f085ac3b |
| 02-Aug-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: sequencer: Zap unused params and macros
These parameters are not used in the code, zap them and the macros which are used by them as well.
Signed-off-by: Marek Vasut <marex@denx.de> Ac
ddr: altera: sequencer: Zap unused params and macros
These parameters are not used in the code, zap them and the macros which are used by them as well.
Signed-off-by: Marek Vasut <marex@denx.de> Acked-by: Dinh Nguyen <dinguyen@opensource.altera.com>
show more ...
|
| #
16502a0b |
| 16-Jul-2015 |
Marek Vasut <marex@denx.de> |
ddr: altera: Clean up mem_config()
Clean mem_config() function. First, reorder the math done in the function such that WLAT and RLAT computation is together. Then, scrap contradictory comments which
ddr: altera: Clean up mem_config()
Clean mem_config() function. First, reorder the math done in the function such that WLAT and RLAT computation is together. Then, scrap contradictory comments which do not match the result of the math at all. Next, extract the mem_precharge_and_activate() call from the end of the function as it is completely unrelated here. Finally, rename the function to mem_init_latency().
Signed-off-by: Marek Vasut <marex@denx.de>
show more ...
|
| #
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 ...
|
| #
3da42859 |
| 03-Jun-2015 |
Dinh Nguyen <dinguyen@opensource.altera.com> |
driver/ddr/altera: Add the sdram calibration portion
This patch adds the DDR calibration portion of the Altera SDRAM driver.
Signed-off-by: Dinh Nguyen <dinguyen@opensource.altera.com>
|