Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
something in this method is needed
  • Loading branch information
jad13041 committed Feb 6, 2020
1 parent 03aee1c commit 155901a
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions drivers/ddr/fsl/main.c
Expand Up @@ -698,7 +698,8 @@ phys_size_t __fsl_ddr_sdram(fsl_ddr_info_t *pinfo)
#ifdef CONFIG_FSL_DDR_SYNC_REFRESH
fsl_ddr_sync_memctl_refresh(first_ctrl, last_ctrl);
#endif

printf("debug point 1\n");
mdelay(2000);
#ifdef CONFIG_PPC
/* program LAWs */
for (i = first_ctrl; i <= last_ctrl; i++) {
Expand Down Expand Up @@ -726,6 +727,8 @@ phys_size_t __fsl_ddr_sdram(fsl_ddr_info_t *pinfo)
}
#endif
break;
printf("debug point 2\n");
mdelay(2000);
case FSL_DDR_3WAY_1KB_INTERLEAVING:
case FSL_DDR_3WAY_4KB_INTERLEAVING:
case FSL_DDR_3WAY_8KB_INTERLEAVING:
Expand All @@ -736,6 +739,8 @@ phys_size_t __fsl_ddr_sdram(fsl_ddr_info_t *pinfo)
law_memctl, i);
}
break;
printf("debug point 3\n");
mdelay(2000);
case FSL_DDR_4WAY_1KB_INTERLEAVING:
case FSL_DDR_4WAY_4KB_INTERLEAVING:
case FSL_DDR_4WAY_8KB_INTERLEAVING:
Expand All @@ -749,6 +754,8 @@ phys_size_t __fsl_ddr_sdram(fsl_ddr_info_t *pinfo)
default:
break;
}
printf("debug point 4\n");
mdelay(2000);
} else {
switch (i) {
case 0:
Expand All @@ -766,6 +773,8 @@ phys_size_t __fsl_ddr_sdram(fsl_ddr_info_t *pinfo)
default:
break;
}
printf("debug point 5\n");
mdelay(2000);
fsl_ddr_set_lawbar(&pinfo->common_timing_params[i],
law_memctl, i);
}
Expand Down Expand Up @@ -814,7 +823,7 @@ phys_size_t fsl_ddr_sdram(void)
info.board_mem_de_reset = board_deassert_mem_reset;
remove_unused_controllers(&info);

return 8589934592;//__fsl_ddr_sdram(&info);
return __fsl_ddr_sdram(&info);
}

#ifdef CONFIG_SYS_FSL_OTHER_DDR_NUM_CTRLS
Expand Down

0 comments on commit 155901a

Please sign in to comment.