From 7752a71efcb48edcdc8fa7e1fb8244b4bed9660b Mon Sep 17 00:00:00 2001 From: Holger Schurig Date: Fri, 20 Feb 2004 16:52:31 +0000 Subject: [ARM PATCH] 1670/1: PXA serial driver Patch from Holger Schurig PXA Serial port (FFUART, BTUART, STUART) and console support This patch works perfectly here with "console=ttyS0,115200" in the kernel command line. It contains Jean-frederic Clere fix to detect STUART and BTUART. Nico said that I should post it to your patch tracker. It replaces patch 1662/1 --- include/linux/serial_core.h | 1 + include/linux/serial_reg.h | 15 +++++++++++++++ 2 files changed, 16 insertions(+) (limited to 'include/linux') diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h index 8e09c20be413..da998dc9389d 100644 --- a/include/linux/serial_core.h +++ b/include/linux/serial_core.h @@ -46,6 +46,7 @@ * separate so any additions to the old serial.c that occur before * we are merged can be easily merged here. */ +#define PORT_PXA 31 #define PORT_AMBA 32 #define PORT_CLPS711X 33 #define PORT_SA1100 34 diff --git a/include/linux/serial_reg.h b/include/linux/serial_reg.h index 947da230a189..f2fee651085f 100644 --- a/include/linux/serial_reg.h +++ b/include/linux/serial_reg.h @@ -140,6 +140,21 @@ #define UART_MSR_DCTS 0x01 /* Delta CTS */ #define UART_MSR_ANY_DELTA 0x0F /* Any of the delta bits! */ +/* + * The Intel PXA2xx chip defines those bits + */ +#define UART_IER_DMAE 0x80 /* DMA Requests Enable */ +#define UART_IER_UUE 0x40 /* UART Unit Enable */ +#define UART_IER_NRZE 0x20 /* NRZ coding Enable */ +#define UART_IER_RTOIE 0x10 /* Receiver Time Out Interrupt Enable */ + +#define UART_IIR_TOD 0x08 /* Character Timeout Indication Detected */ + +#define UART_FCR_PXAR1 0x00 /* receive FIFO treshold = 1 */ +#define UART_FCR_PXAR8 0x40 /* receive FIFO treshold = 8 */ +#define UART_FCR_PXAR16 0x80 /* receive FIFO treshold = 16 */ +#define UART_FCR_PXAR32 0xc0 /* receive FIFO treshold = 32 */ + /* * These are the definitions for the Extended Features Register * (StarTech 16C660 only, when DLAB=1) -- cgit v1.2.3