[PATCH] uart-output-char.h: extra offset definition.

Ben Gras beng at shrike-systems.com
Sat Jul 12 22:04:19 UTC 2014


All,

This patch is submitted as its values are used in my to-be-submitted
beagle bsp.

---
 c/src/lib/libbsp/shared/include/uart-output-char.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/c/src/lib/libbsp/shared/include/uart-output-char.h b/c/src/lib/libbsp/shared/include/uart-output-char.h
index b009350..4242901 100644
--- a/c/src/lib/libbsp/shared/include/uart-output-char.h
+++ b/c/src/lib/libbsp/shared/include/uart-output-char.h
@@ -34,6 +34,7 @@
 #define CONSOLE_IIR (*(volatile uint32_t *) (BSP_CONSOLE_UART_BASE + 0x08))
 #define CONSOLE_FCR (*(volatile uint32_t *) (BSP_CONSOLE_UART_BASE + 0x08))
 #define CONSOLE_LCR (*(volatile uint32_t *) (BSP_CONSOLE_UART_BASE + 0x0C))
+#define CONSOLE_MCR (*(volatile uint32_t *) (BSP_CONSOLE_UART_BASE + 0x10))
 #define CONSOLE_LSR (*(volatile uint32_t *) (BSP_CONSOLE_UART_BASE + 0x14))
 #define CONSOLE_SCR (*(volatile uint32_t *) (BSP_CONSOLE_UART_BASE + 0x1C))
 #define CONSOLE_ACR (*(volatile uint32_t *) (BSP_CONSOLE_UART_BASE + 0x20))
@@ -43,6 +44,7 @@
 
 #define CONSOLE_LSR_RDR 0x1
 #define CONSOLE_LSR_THRE 0x20
+#define CONSOLE_LSR_TEMT 0x40
 
 #define BSP_CONSOLE_UART_INIT(dll) \
   do { \
-- 
1.8.3.4



More information about the devel mailing list