summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDetlev Zundel <dzu@denx.de>2009-03-30 00:31:34 +0200
committerWolfgang Denk <wd@denx.de>2009-03-30 09:41:28 +0200
commit7b5611cdd12ca0cc33f994f0d4a4454788fc3124 (patch)
treef951d46d186cc14fda061abe41d91b5855d65388 /include
parent04e11cf383ff6231535fd981023bb1306b2133d4 (diff)
downloadu-boot-imx-7b5611cdd12ca0cc33f994f0d4a4454788fc3124.zip
u-boot-imx-7b5611cdd12ca0cc33f994f0d4a4454788fc3124.tar.gz
u-boot-imx-7b5611cdd12ca0cc33f994f0d4a4454788fc3124.tar.bz2
inka4x0: Add hardware diagnosis functions for inka4x0
This patch adds advanced diagnosis functions for the inka4x0 board. Signed-off-by: Andreas Pfefferle <ap@denx.de> Signed-off-by: Detlev Zundel <dzu@denx.de>
Diffstat (limited to 'include')
-rw-r--r--include/configs/inka4x0.h1
-rw-r--r--include/ns16550.h11
2 files changed, 12 insertions, 0 deletions
diff --git a/include/configs/inka4x0.h b/include/configs/inka4x0.h
index e42fa6d..b80796d 100644
--- a/include/configs/inka4x0.h
+++ b/include/configs/inka4x0.h
@@ -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 */
diff --git a/include/ns16550.h b/include/ns16550.h
index e6ade61..edfbc53 100644
--- a/include/ns16550.h
+++ b/include/ns16550.h
@@ -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