From 939e5bf9b3e04389b0262bc5634599dd0ab9c8e2 Mon Sep 17 00:00:00 2001 From: York Sun Date: Mon, 27 Jun 2011 13:30:55 -0700 Subject: powerpc/mpc85xx: Display a warning for unsupported DDR data rates If DDR initialziation uses a speed table and the speed is not matched, print a warning message instead of silently ignoring. Signed-off-by: York Sun Signed-off-by: Kumar Gala --- board/freescale/corenet_ds/ddr.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'board/freescale/corenet_ds/ddr.c') diff --git a/board/freescale/corenet_ds/ddr.c b/board/freescale/corenet_ds/ddr.c index f2b716d4ae..a184592e57 100644 --- a/board/freescale/corenet_ds/ddr.c +++ b/board/freescale/corenet_ds/ddr.c @@ -192,10 +192,16 @@ void fsl_ddr_board_options(memctl_options_t *popts, popts->clk_adjust = pbsp->clk_adjust; popts->wrlvl_start = pbsp->wrlvl_start; popts->twoT_en = pbsp->force_2T; + break; } pbsp++; } + if (i == num_params) { + printf("Warning: board specific timing not found " + "for data rate %lu MT/s!\n", ddr_freq); + } + /* * Factors to consider for half-strength driver enable: * - number of DIMMs installed -- cgit v1.2.1