Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
more debugging
  • Loading branch information
jad13041 committed Feb 6, 2020
1 parent e33475a commit f6ad6a6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions arch/powerpc/cpu/mpc8xxx/law.c
Expand Up @@ -183,6 +183,7 @@ void print_laws(void)
int set_ddr_laws(u64 start, u64 sz, enum law_trgt_if id)
{
printf("ddr laws\n");
mdelay(2000);
u64 start_align, law_sz;
int law_sz_enc;

Expand All @@ -201,6 +202,8 @@ int set_ddr_laws(u64 start, u64 sz, enum law_trgt_if id)

/* do we still have anything to map */
sz = sz - law_sz;
printf("ddr laws end1\n");
mdelay(2000);
if (sz) {
start += law_sz;

Expand All @@ -216,6 +219,8 @@ int set_ddr_laws(u64 start, u64 sz, enum law_trgt_if id)

/* do we still have anything to map */
sz = sz - law_sz;
printf("ddr laws end2\n");
mdelay(2000);
if (sz)
return 1;

Expand Down
6 changes: 5 additions & 1 deletion drivers/ddr/fsl/util.c
Expand Up @@ -137,15 +137,19 @@ __fsl_ddr_set_lawbar(const common_timing_params_t *memctl_common_params,
return;
if ((base + size) >= CONFIG_MAX_MEM_MAPPED)
size = CONFIG_MAX_MEM_MAPPED - base;
printf("lawbar 1\n");
printf("lawbar 3\n");
mdelay(2000);
#endif
printf("lawbar 4\n");
mdelay(2000);
if (set_ddr_laws(base, size, law_memctl) < 0) {
printf("%s: ERROR (ctrl #%d, TRGT ID=%x)\n", __func__, ctrl_num,
law_memctl);
mdelay("2000\n");
return ;
}
printf("lawbar 5\n");
mdelay(2000);
printf("setup ddr law base = 0x%llx, size 0x%llx, TRGT_ID 0x%x\n",
base, size, law_memctl);
}
Expand Down

0 comments on commit f6ad6a6

Please sign in to comment.