mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 14:41:31 +00:00
mpc8xxx: improve LAW error messages when setting up DDR
When setting up the LAWs for the DDR, if there was an error, you got the not-so-helpful error text "ERROR" and nothing else. Not only is it non-informative, but it is also pretty frustrating trying to grep for "ERROR" in the source. Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
This commit is contained in:
parent
a9946e3fc7
commit
d11823ca3c
1 changed files with 5 additions and 4 deletions
|
@ -89,17 +89,18 @@ __fsl_ddr_set_lawbar(const common_timing_params_t *memctl_common_params,
|
||||||
? LAW_TRGT_IF_DDR_INTRLV : LAW_TRGT_IF_DDR_1;
|
? LAW_TRGT_IF_DDR_INTRLV : LAW_TRGT_IF_DDR_1;
|
||||||
|
|
||||||
if (set_ddr_laws(base, size, lawbar1_target_id) < 0) {
|
if (set_ddr_laws(base, size, lawbar1_target_id) < 0) {
|
||||||
printf("ERROR\n");
|
printf("%s: ERROR (ctrl #0, intrlv=%d)\n", __func__,
|
||||||
|
memctl_interleaved);
|
||||||
return ;
|
return ;
|
||||||
}
|
}
|
||||||
} else if (ctrl_num == 1) {
|
} else if (ctrl_num == 1) {
|
||||||
if (set_ddr_laws(base, size, LAW_TRGT_IF_DDR_2) < 0) {
|
if (set_ddr_laws(base, size, LAW_TRGT_IF_DDR_2) < 0) {
|
||||||
printf("ERROR\n");
|
printf("%s: ERROR (ctrl #1)\n", __func__);
|
||||||
return ;
|
return ;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
printf("unexpected controller number %u in %s\n",
|
printf("%s: unexpected DDR controller number (%u)\n", __func__,
|
||||||
ctrl_num, __FUNCTION__);
|
ctrl_num);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue