summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2010-05-05 12:35:22 +0400
committerGreg Kroah-Hartman <gregkh@suse.de>2010-05-21 20:34:30 +0400
commit5bcd601049c6b2ad52733d4cd2794bfbaf1b9314 (patch)
tree17be8d880b26e513a1239a7c26b6ba87d8aa7640 /include
parent24cd73a3942f3df214d7953f0cfd65d5085fa583 (diff)
downloadlinux-5bcd601049c6b2ad52733d4cd2794bfbaf1b9314.tar.xz
serial: Add driver for the Altera JTAG UART
Add an UART driver for the JTAG UART component available as a SOPC (System on Programmable Chip) component for Altera FPGAs. Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include')
-rw-r--r--include/linux/altera_jtaguart.h16
-rw-r--r--include/linux/serial_core.h3
2 files changed, 19 insertions, 0 deletions
diff --git a/include/linux/altera_jtaguart.h b/include/linux/altera_jtaguart.h
new file mode 100644
index 000000000000..953b178a1650
--- /dev/null
+++ b/include/linux/altera_jtaguart.h
@@ -0,0 +1,16 @@
+/*
+ * altera_jtaguart.h -- Altera JTAG UART driver defines.
+ */
+
+#ifndef __ALTJUART_H
+#define __ALTJUART_H
+
+#define ALTERA_JTAGUART_MAJOR 204
+#define ALTERA_JTAGUART_MINOR 186
+
+struct altera_jtaguart_platform_uart {
+ unsigned long mapbase; /* Physical address base */
+ unsigned int irq; /* Interrupt vector */
+};
+
+#endif /* __ALTJUART_H */
diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h
index 78dd1e7120a9..ade1536e1a48 100644
--- a/include/linux/serial_core.h
+++ b/include/linux/serial_core.h
@@ -182,6 +182,9 @@
/* Aeroflex Gaisler GRLIB APBUART */
#define PORT_APBUART 90
+/* Altera UARTs */
+#define PORT_ALTERA_JTAGUART 91
+
#ifdef __KERNEL__
#include <linux/compiler.h>