summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMiles Bader <miles@lsi.nec.co.jp>2002-11-26 05:20:05 -0800
committerLinus Torvalds <torvalds@home.transmeta.com>2002-11-26 05:20:05 -0800
commit98960e9e1a974a4ddacddfc5681ad34cc44a0dbd (patch)
treeb4ded46a3ef74afafd26ab38fcdc52d6a88831d2 /include
parent53b17bee4c6d75ecd50d269ffde9f0a20c071715 (diff)
[PATCH] Random minor fixes for v850 `anna' platform
Random minor fixes for v850 `anna' platform
Diffstat (limited to 'include')
-rw-r--r--include/asm-v850/anna.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/asm-v850/anna.h b/include/asm-v850/anna.h
index d5c0cd5ef5de..df5caefdc157 100644
--- a/include/asm-v850/anna.h
+++ b/include/asm-v850/anna.h
@@ -127,6 +127,22 @@ extern void anna_uart_pre_configure (unsigned chan,
unsigned cflags, unsigned baud);
#endif
+/* This board supports RTS/CTS for the on-chip UART, but only for channel 1. */
+
+/* CTS for UART channel 1 is pin P37 (bit 7 of port 3). */
+#define NB85E_UART_CTS(chan) ((chan) == 1 ? !(ANNA_PORT_IO(3) & 0x80) : 1)
+/* RTS for UART channel 1 is pin P07 (bit 7 of port 0). */
+#define NB85E_UART_SET_RTS(chan, val) \
+ do { \
+ if (chan == 1) { \
+ unsigned old = ANNA_PORT_IO(0); \
+ if (val) \
+ ANNA_PORT_IO(0) = old & ~0x80; \
+ else \
+ ANNA_PORT_IO(0) = old | 0x80; \
+ } \
+ } while (0)
+
/* Timer C details. */
#define NB85E_TIMER_C_BASE_ADDR 0xFFFFF600