summaryrefslogtreecommitdiff
path: root/cpu/mpc8xxx/ddr/util.c
diff options
context:
space:
mode:
authorPaul Gortmaker <paul.gortmaker@windriver.com>2009-10-07 16:34:28 -0400
committerKumar Gala <galak@kernel.crashing.org>2009-10-16 10:21:39 -0500
commitd11823ca3cb551814ffcd926402c8bcf3a7eff35 (patch)
treeae7b3b8855d117698e901623921fdeccf33e4c9e /cpu/mpc8xxx/ddr/util.c
parenta9946e3fc7089ddc6b7711a44e07a6b0827b79a7 (diff)
downloadu-boot-imx-d11823ca3cb551814ffcd926402c8bcf3a7eff35.zip
u-boot-imx-d11823ca3cb551814ffcd926402c8bcf3a7eff35.tar.gz
u-boot-imx-d11823ca3cb551814ffcd926402c8bcf3a7eff35.tar.bz2
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>
Diffstat (limited to 'cpu/mpc8xxx/ddr/util.c')
-rw-r--r--cpu/mpc8xxx/ddr/util.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/cpu/mpc8xxx/ddr/util.c b/cpu/mpc8xxx/ddr/util.c
index 4451989..1e2d921 100644
--- a/cpu/mpc8xxx/ddr/util.c
+++ b/cpu/mpc8xxx/ddr/util.c
@@ -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;
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 ;
}
} else if (ctrl_num == 1) {
if (set_ddr_laws(base, size, LAW_TRGT_IF_DDR_2) < 0) {
- printf("ERROR\n");
+ printf("%s: ERROR (ctrl #1)\n", __func__);
return ;
}
} else {
- printf("unexpected controller number %u in %s\n",
- ctrl_num, __FUNCTION__);
+ printf("%s: unexpected DDR controller number (%u)\n", __func__,
+ ctrl_num);
}
}