From 7b5611cdd12ca0cc33f994f0d4a4454788fc3124 Mon Sep 17 00:00:00 2001 From: Detlev Zundel Date: Mon, 30 Mar 2009 00:31:34 +0200 Subject: inka4x0: Add hardware diagnosis functions for inka4x0 This patch adds advanced diagnosis functions for the inka4x0 board. Signed-off-by: Andreas Pfefferle Signed-off-by: Detlev Zundel --- board/inka4x0/inka4x0.c | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'board/inka4x0/inka4x0.c') diff --git a/board/inka4x0/inka4x0.c b/board/inka4x0/inka4x0.c index 507196b..bb5c25d 100644 --- a/board/inka4x0/inka4x0.c +++ b/board/inka4x0/inka4x0.c @@ -1,6 +1,9 @@ /* - * (C) Copyright 2003-2004 - * Wolfgang Denk, DENX Software Engineering, wd@denx.de. + * (C) Copyright 2008-2009 + * Andreas Pfefferle, DENX Software Engineering, ap@denx.de. + * + * (C) Copyright 2009 + * Detlev Zundel, DENX Software Engineering, dzu@denx.de. * * (C) Copyright 2004 * Mark Jonas, Freescale Semiconductor, mark.jonas@motorola.com. @@ -8,6 +11,9 @@ * (C) Copyright 2004 * Martin Krause, TQ-Systems GmbH, martin.krause@tqs.de * + * (C) Copyright 2003-2004 + * Wolfgang Denk, DENX Software Engineering, wd@denx.de. + * * See file CREDITS for list of people who contributed to this * project. * @@ -171,6 +177,16 @@ void flash_preinit(void) *(vu_long *)MPC5XXX_BOOTCS_CFG &= ~0x1; /* clear RO */ } +int misc_init_r (void) { + extern int inkadiag_init_r (void); + + /* + * The command table used for the subcommands of inkadiag + * needs to be relocated manually. + */ + return inkadiag_init_r(); +} + int misc_init_f (void) { char tmp[10]; -- cgit v1.1