summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2015-07-13 01:05:27 +0200
committerMarek Vasut <marex@denx.de>2015-08-08 14:14:10 +0200
commit23f62b36da884c058e684eed055487451de8ff1f (patch)
tree7d12b5c2e1a8705e0dfa0904b3283a2694871990
parent963bca63b6c13f72bc164690b0f5de08c9787384 (diff)
downloadu-boot-imx-23f62b36da884c058e684eed055487451de8ff1f.zip
u-boot-imx-23f62b36da884c058e684eed055487451de8ff1f.tar.gz
u-boot-imx-23f62b36da884c058e684eed055487451de8ff1f.tar.bz2
ddr: altera: Clean up ugly casts in sdram_calibration_full()
Use the correct formating string in those debug_cond() invocations and zap those unnecessary ugly casts. Signed-off-by: Marek Vasut <marex@denx.de>
-rw-r--r--drivers/ddr/altera/sequencer.c50
1 files changed, 21 insertions, 29 deletions
diff --git a/drivers/ddr/altera/sequencer.c b/drivers/ddr/altera/sequencer.c
index 746c97a..9471ed5 100644
--- a/drivers/ddr/altera/sequencer.c
+++ b/drivers/ddr/altera/sequencer.c
@@ -3994,35 +3994,27 @@ int sdram_calibration_full(void)
printf("%s: Preparing to start memory calibration\n", __FILE__);
debug("%s:%d\n", __func__, __LINE__);
- debug_cond(DLEVEL == 1, "DDR3 FULL_RATE ranks=%lu cs/dimm=%lu dq/dqs=%lu,%lu vg/dqs=%lu,%lu ",
- (long unsigned int)RW_MGR_MEM_NUMBER_OF_RANKS,
- (long unsigned int)RW_MGR_MEM_NUMBER_OF_CS_PER_DIMM,
- (long unsigned int)RW_MGR_MEM_DQ_PER_READ_DQS,
- (long unsigned int)RW_MGR_MEM_DQ_PER_WRITE_DQS,
- (long unsigned int)RW_MGR_MEM_VIRTUAL_GROUPS_PER_READ_DQS,
- (long unsigned int)RW_MGR_MEM_VIRTUAL_GROUPS_PER_WRITE_DQS);
- debug_cond(DLEVEL == 1, "dqs=%lu,%lu dq=%lu dm=%lu ptap_delay=%lu dtap_delay=%lu ",
- (long unsigned int)RW_MGR_MEM_IF_READ_DQS_WIDTH,
- (long unsigned int)RW_MGR_MEM_IF_WRITE_DQS_WIDTH,
- (long unsigned int)RW_MGR_MEM_DATA_WIDTH,
- (long unsigned int)RW_MGR_MEM_DATA_MASK_WIDTH,
- (long unsigned int)IO_DELAY_PER_OPA_TAP,
- (long unsigned int)IO_DELAY_PER_DCHAIN_TAP);
- debug_cond(DLEVEL == 1, "dtap_dqsen_delay=%lu, dll=%lu",
- (long unsigned int)IO_DELAY_PER_DQS_EN_DCHAIN_TAP,
- (long unsigned int)IO_DLL_CHAIN_LENGTH);
- debug_cond(DLEVEL == 1, "max values: en_p=%lu dqdqs_p=%lu en_d=%lu dqs_in_d=%lu ",
- (long unsigned int)IO_DQS_EN_PHASE_MAX,
- (long unsigned int)IO_DQDQS_OUT_PHASE_MAX,
- (long unsigned int)IO_DQS_EN_DELAY_MAX,
- (long unsigned int)IO_DQS_IN_DELAY_MAX);
- debug_cond(DLEVEL == 1, "io_in_d=%lu io_out1_d=%lu io_out2_d=%lu ",
- (long unsigned int)IO_IO_IN_DELAY_MAX,
- (long unsigned int)IO_IO_OUT1_DELAY_MAX,
- (long unsigned int)IO_IO_OUT2_DELAY_MAX);
- debug_cond(DLEVEL == 1, "dqs_in_reserve=%lu dqs_out_reserve=%lu\n",
- (long unsigned int)IO_DQS_IN_RESERVE,
- (long unsigned int)IO_DQS_OUT_RESERVE);
+ debug_cond(DLEVEL == 1,
+ "DDR3 FULL_RATE ranks=%u cs/dimm=%u dq/dqs=%u,%u vg/dqs=%u,%u ",
+ RW_MGR_MEM_NUMBER_OF_RANKS, RW_MGR_MEM_NUMBER_OF_CS_PER_DIMM,
+ RW_MGR_MEM_DQ_PER_READ_DQS, RW_MGR_MEM_DQ_PER_WRITE_DQS,
+ RW_MGR_MEM_VIRTUAL_GROUPS_PER_READ_DQS,
+ RW_MGR_MEM_VIRTUAL_GROUPS_PER_WRITE_DQS);
+ debug_cond(DLEVEL == 1,
+ "dqs=%u,%u dq=%u dm=%u ptap_delay=%u dtap_delay=%u ",
+ RW_MGR_MEM_IF_READ_DQS_WIDTH, RW_MGR_MEM_IF_WRITE_DQS_WIDTH,
+ RW_MGR_MEM_DATA_WIDTH, RW_MGR_MEM_DATA_MASK_WIDTH,
+ IO_DELAY_PER_OPA_TAP, IO_DELAY_PER_DCHAIN_TAP);
+ debug_cond(DLEVEL == 1, "dtap_dqsen_delay=%u, dll=%u",
+ IO_DELAY_PER_DQS_EN_DCHAIN_TAP, IO_DLL_CHAIN_LENGTH);
+ debug_cond(DLEVEL == 1, "max values: en_p=%u dqdqs_p=%u en_d=%u dqs_in_d=%u ",
+ IO_DQS_EN_PHASE_MAX, IO_DQDQS_OUT_PHASE_MAX,
+ IO_DQS_EN_DELAY_MAX, IO_DQS_IN_DELAY_MAX);
+ debug_cond(DLEVEL == 1, "io_in_d=%u io_out1_d=%u io_out2_d=%u ",
+ IO_IO_IN_DELAY_MAX, IO_IO_OUT1_DELAY_MAX,
+ IO_IO_OUT2_DELAY_MAX);
+ debug_cond(DLEVEL == 1, "dqs_in_reserve=%u dqs_out_reserve=%u\n",
+ IO_DQS_IN_RESERVE, IO_DQS_OUT_RESERVE);
hc_initialize_rom_data();