aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-03-24 03:16:50 +0000
committerMike Frysinger <vapier@gentoo.org>2011-03-24 03:16:50 +0000
commit2d2bab5b21dda6842a044364fc6082722c2befc1 (patch)
treeadb561e1c2336dba221f36427e2272a07849f30b
parent972dbc8ade00a6818c9520204ef594c8b4dc6a41 (diff)
downloadfsf-binutils-gdb-2d2bab5b21dda6842a044364fc6082722c2befc1.zip
fsf-binutils-gdb-2d2bab5b21dda6842a044364fc6082722c2befc1.tar.gz
fsf-binutils-gdb-2d2bab5b21dda6842a044364fc6082722c2befc1.tar.bz2
sim: bfin: define more UART LSR bits
We'll need these bits in an upcoming patch, so map out the whole LSR MMR now. Fix up indentation style while we're here. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r--sim/bfin/ChangeLog4
-rw-r--r--sim/bfin/dv-bfin_uart.h19
2 files changed, 16 insertions, 7 deletions
diff --git a/sim/bfin/ChangeLog b/sim/bfin/ChangeLog
index d8ffc75..d3445bc 100644
--- a/sim/bfin/ChangeLog
+++ b/sim/bfin/ChangeLog
@@ -1,5 +1,9 @@
2011-03-23 Mike Frysinger <vapier@gentoo.org>
+ * dv-bfin_uart.h (TFI, BI, FE, PE, OE): Define.
+
+2011-03-23 Mike Frysinger <vapier@gentoo.org>
+
* dv-bfin_twi.h (LOSTARB): Rename from LOSTARG.
2011-03-23 Robin Getz <robin.getz@analog.com>
diff --git a/sim/bfin/dv-bfin_uart.h b/sim/bfin/dv-bfin_uart.h
index 1d144d4..ccb7af4 100644
--- a/sim/bfin/dv-bfin_uart.h
+++ b/sim/bfin/dv-bfin_uart.h
@@ -34,16 +34,21 @@ unsigned bfin_uart_read_buffer (struct hw *, unsigned char *, unsigned);
void bfin_uart_reschedule (struct hw *);
/* UART_LCR */
-#define DLAB (1 << 7)
+#define DLAB (1 << 7)
/* UART_LSR */
-#define TEMT (1 << 6)
-#define THRE (1 << 5)
-#define DR (1 << 0)
+#define TFI (1 << 7)
+#define TEMT (1 << 6)
+#define THRE (1 << 5)
+#define BI (1 << 4)
+#define FE (1 << 3)
+#define PE (1 << 2)
+#define OE (1 << 1)
+#define DR (1 << 0)
/* UART_IER */
-#define ERBFI (1 << 0)
-#define ETBEI (1 << 1)
-#define ELSI (1 << 2)
+#define ERBFI (1 << 0)
+#define ETBEI (1 << 1)
+#define ELSI (1 << 2)
#endif