From: Jason Liu Date: Fri, 22 Oct 2010 19:25:45 +0800 Subject: [U-Boot] [PATCH 2/2] MX5: board version not printed corretly on MX51EVK In-Reply-To: <1287746745-16068-1-git-send-email-r64343@freescale.com> References: <1287746745-16068-1-git-send-email-r64343@freescale.com> Message-ID: <1287746745-16068-2-git-send-email-r64343@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Fix the board version printing issue on MX51EVK. Need to read the board version via get_cpu_rev and not rely on system_rev due to the system_rev not initialized at boardchecking time. Signed-off-by: Jason Liu --- board/freescale/mx51evk/mx51evk.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/board/freescale/mx51evk/mx51evk.c b/board/freescale/mx51evk/mx51evk.c index d6bb71c..c532603 100644 --- a/board/freescale/mx51evk/mx51evk.c +++ b/board/freescale/mx51evk/mx51evk.c @@ -438,6 +438,8 @@ int board_late_init(void) int checkboard(void) { + u32 system_rev = get_cpu_rev(); + puts("Board: MX51EVK "); switch (system_rev & 0xff) { -- 1.7.0.4