Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
try commenting out another function
  • Loading branch information
jad13041 committed Feb 6, 2020
1 parent 7d34bd3 commit e33475a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
1 change: 1 addition & 0 deletions arch/powerpc/cpu/mpc8xxx/law.c
Expand Up @@ -182,6 +182,7 @@ void print_laws(void)
/* use up to 2 LAWs for DDR, used the last available LAWs */
int set_ddr_laws(u64 start, u64 sz, enum law_trgt_if id)
{
printf("ddr laws\n");
u64 start_align, law_sz;
int law_sz_enc;

Expand Down
6 changes: 2 additions & 4 deletions drivers/ddr/fsl/main.c
Expand Up @@ -766,8 +766,8 @@ phys_size_t __fsl_ddr_sdram(fsl_ddr_info_t *pinfo)
break;
}
//here still no change
//fsl_ddr_set_lawbar(&pinfo->common_timing_params[i],
// law_memctl, i);
fsl_ddr_set_lawbar(&pinfo->common_timing_params[i],
law_memctl, i);
}
}
#endif
Expand All @@ -787,8 +787,6 @@ phys_size_t __fsl_ddr_sdram(fsl_ddr_info_t *pinfo)
total_memory = CONFIG_MAX_MEM_MAPPED;
}
#endif
printf("debug point 7\n");
mdelay(2000);
return total_memory;
}

Expand Down
10 changes: 8 additions & 2 deletions drivers/ddr/fsl/util.c
Expand Up @@ -119,9 +119,12 @@ __fsl_ddr_set_lawbar(const common_timing_params_t *memctl_common_params,
unsigned int law_memctl,
unsigned int ctrl_num)
{
printf("lawbar 1\n");
mdelay(2000);
unsigned long long base = memctl_common_params->base_address;
unsigned long long size = memctl_common_params->total_mem;

printf("lawbar 2\n");
mdelay(2000);
/*
* If no DIMMs on this controller, do not proceed any further.
*/
Expand All @@ -134,13 +137,16 @@ __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");
mdelay(2000);
#endif
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 ;
}
debug("setup ddr law base = 0x%llx, size 0x%llx, TRGT_ID 0x%x\n",
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 e33475a

Please sign in to comment.