Commit 7b5611cd authored by Detlev Zundel's avatar Detlev Zundel Committed by Wolfgang Denk

inka4x0: Add hardware diagnosis functions for inka4x0

This patch adds advanced diagnosis functions for the inka4x0 board.
Signed-off-by: default avatarAndreas Pfefferle <ap@denx.de>
Signed-off-by: default avatarDetlev Zundel <dzu@denx.de>
parent 04e11cf3
#
# (C) Copyright 2003-2006
# (C) Copyright 2003-2009
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
#
# See file CREDITS for list of people who contributed to this
......@@ -25,7 +25,7 @@ include $(TOPDIR)/config.mk
LIB = $(obj)lib$(BOARD).a
COBJS := $(BOARD).o
COBJS := $(BOARD).o inkadiag.o
SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
OBJS := $(addprefix $(obj),$(COBJS))
......
/*
* (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];
......
This diff is collapsed.
......@@ -39,6 +39,7 @@
#define BOOTFLAG_WARM 0x02 /* Software reboot */
#define CONFIG_MISC_INIT_F 1 /* Use misc_init_f() */
#define CONFIG_MISC_INIT_R 1 /* Use misc_init_r() */
#define CONFIG_HIGH_BATS 1 /* High BATs supported */
......
......@@ -123,6 +123,7 @@ typedef volatile struct NS16550 *NS16550_t;
#define MCR_RTS 0x02
#define MCR_DMA_EN 0x04
#define MCR_TX_DFR 0x08
#define MCR_LOOP 0x10 /* Enable loopback test mode */
#define LCR_WLS_MSK 0x03 /* character length select mask */
#define LCR_WLS_5 0x00 /* 5 bit character length */
......@@ -135,6 +136,7 @@ typedef volatile struct NS16550 *NS16550_t;
#define LCR_STKP 0x20 /* Stick Parity */
#define LCR_SBRK 0x40 /* Set Break */
#define LCR_BKSE 0x80 /* Bank select enable */
#define LCR_DLAB 0x80 /* Divisor latch access bit */
#define LSR_DR 0x01 /* Data ready */
#define LSR_OE 0x02 /* Overrun */
......@@ -145,6 +147,15 @@ typedef volatile struct NS16550 *NS16550_t;
#define LSR_TEMT 0x40 /* Xmitter empty */
#define LSR_ERR 0x80 /* Error */
#define MSR_DCD 0x80 /* Data Carrier Detect */
#define MSR_RI 0x40 /* Ring Indicator */
#define MSR_DSR 0x20 /* Data Set Ready */
#define MSR_CTS 0x10 /* Clear to Send */
#define MSR_DDCD 0x08 /* Delta DCD */
#define MSR_TERI 0x04 /* Trailing edge ring indicator */
#define MSR_DDSR 0x02 /* Delta DSR */
#define MSR_DCTS 0x01 /* Delta CTS */
#ifdef CONFIG_OMAP1510
#define OSC_12M_SEL 0x01 /* selects 6.5 * current clk div */
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment