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/mpc8641hpcn/ddr.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'board/freescale/mpc8641hpcn') diff --git a/board/freescale/mpc8641hpcn/ddr.c b/board/freescale/mpc8641hpcn/ddr.c index bd0b299d0b..4f2e853cd1 100644 --- a/board/freescale/mpc8641hpcn/ddr.c +++ b/board/freescale/mpc8641hpcn/ddr.c @@ -127,6 +127,11 @@ void fsl_ddr_board_options(memctl_options_t *popts, } } + if (i == num_params) { + printf("Warning: board specific timing not found " + "for data rate %lu MT/s!\n", ddr_freq); + } + /* 2T timing enable */ popts->twoT_en = 1; } -- cgit v1.2.1