summaryrefslogtreecommitdiffstats
path: root/bsps/arm/gumstix/include/ffuart.h
diff options
context:
space:
mode:
Diffstat (limited to 'bsps/arm/gumstix/include/ffuart.h')
-rw-r--r--bsps/arm/gumstix/include/ffuart.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/bsps/arm/gumstix/include/ffuart.h b/bsps/arm/gumstix/include/ffuart.h
new file mode 100644
index 0000000000..68df822183
--- /dev/null
+++ b/bsps/arm/gumstix/include/ffuart.h
@@ -0,0 +1,48 @@
+/*
+ * FFUART for PXA250 CPU by Yang Xi<hiyangxi@gmail.com>
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.org/license/LICENSE.
+ */
+
+#ifndef __FFUART_H__
+#define __FFUART_H__
+
+typedef struct {
+ /*
+ *Receive buffer(DLAB=0).Transmit buffer(DLAB=0).
+ *Divisor Latch Low(DLAB=1)
+ */
+ volatile unsigned int rbr;
+ /*Interrupt enable(DLAB=0). Divisor Latch High(DLAB=1)*/
+ volatile unsigned int ier;
+ /*Interrupt identification.FIFO control*/
+ volatile unsigned int iir;
+ /*Line Control*/
+ volatile unsigned int lcr;
+ /*Modem control*/
+ volatile unsigned int mcr;
+ /*Line Status*/
+ volatile unsigned int lsr;
+ /*Modem status*/
+ volatile unsigned int msr;
+ /*Scratch Pad*/
+ volatile unsigned int spr;
+ /*Infrared Selection*/
+ volatile unsigned int isr;
+} ffuart_reg_t;
+
+
+#define EIGHT_BITS_NOPARITY_1STOPBIT 0x3
+#define DLAB 0x80
+
+
+/*Divisor = frequency_uart/(16 * BaudRate*)*/
+#define FREQUENCY_UART (14745600)
+
+#define SEND_EMPTY 0x20
+#define FULL_RECEIVE 0x01
+
+#endif
+