diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2017-02-08 11:09:08 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-02-10 09:13:26 -0500 |
commit | 7e12357ed64afdc8e60d64b8f8f17d711acf950a (patch) | |
tree | b6f86447f9c991328754fddbbfca27fe3fb4c15c | |
parent | 0d560a1d549379e46139fb9eeae0b43328c76dea (diff) |
serial: exar: Move register defines from uapi header to consumer site
None of these registers is relevant for the userspace API.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/tty/serial/8250/8250_exar.c | 13 | ||||
-rw-r--r-- | drivers/tty/serial/8250/8250_port.c | 6 | ||||
-rw-r--r-- | include/uapi/linux/serial_reg.h | 18 |
3 files changed, 19 insertions, 18 deletions
diff --git a/drivers/tty/serial/8250/8250_exar.c b/drivers/tty/serial/8250/8250_exar.c index 9af4266eff96..f612da326e82 100644 --- a/drivers/tty/serial/8250/8250_exar.c +++ b/drivers/tty/serial/8250/8250_exar.c | |||
@@ -34,6 +34,19 @@ | |||
34 | #define PCI_DEVICE_ID_EXAR_XR17V4358 0x4358 | 34 | #define PCI_DEVICE_ID_EXAR_XR17V4358 0x4358 |
35 | #define PCI_DEVICE_ID_EXAR_XR17V8358 0x8358 | 35 | #define PCI_DEVICE_ID_EXAR_XR17V8358 0x8358 |
36 | 36 | ||
37 | #define UART_EXAR_8XMODE 0x88 /* 8X sampling rate select */ | ||
38 | |||
39 | #define UART_EXAR_FCTR 0x08 /* Feature Control Register */ | ||
40 | #define UART_FCTR_EXAR_IRDA 0x10 /* IrDa data encode select */ | ||
41 | #define UART_FCTR_EXAR_485 0x20 /* Auto 485 half duplex dir ctl */ | ||
42 | #define UART_FCTR_EXAR_TRGA 0x00 /* FIFO trigger table A */ | ||
43 | #define UART_FCTR_EXAR_TRGB 0x60 /* FIFO trigger table B */ | ||
44 | #define UART_FCTR_EXAR_TRGC 0x80 /* FIFO trigger table C */ | ||
45 | #define UART_FCTR_EXAR_TRGD 0xc0 /* FIFO trigger table D programmable */ | ||
46 | |||
47 | #define UART_EXAR_TXTRG 0x0a /* Tx FIFO trigger level write-only */ | ||
48 | #define UART_EXAR_RXTRG 0x0b /* Rx FIFO trigger level write-only */ | ||
49 | |||
37 | #define UART_EXAR_MPIOINT_7_0 0x8f /* MPIOINT[7:0] */ | 50 | #define UART_EXAR_MPIOINT_7_0 0x8f /* MPIOINT[7:0] */ |
38 | #define UART_EXAR_MPIOLVL_7_0 0x90 /* MPIOLVL[7:0] */ | 51 | #define UART_EXAR_MPIOLVL_7_0 0x90 /* MPIOLVL[7:0] */ |
39 | #define UART_EXAR_MPIO3T_7_0 0x91 /* MPIO3T[7:0] */ | 52 | #define UART_EXAR_MPIO3T_7_0 0x91 /* MPIO3T[7:0] */ |
diff --git a/drivers/tty/serial/8250/8250_port.c b/drivers/tty/serial/8250/8250_port.c index ec6b5e3dcaaa..6119516ef5fc 100644 --- a/drivers/tty/serial/8250/8250_port.c +++ b/drivers/tty/serial/8250/8250_port.c | |||
@@ -45,6 +45,12 @@ | |||
45 | #include "8250.h" | 45 | #include "8250.h" |
46 | 46 | ||
47 | /* | 47 | /* |
48 | * These are definitions for the Exar XR17V35X and XR17(C|D)15X | ||
49 | */ | ||
50 | #define UART_EXAR_SLEEP 0x8b /* Sleep mode */ | ||
51 | #define UART_EXAR_DVID 0x8d /* Device identification */ | ||
52 | |||
53 | /* | ||
48 | * Debugging. | 54 | * Debugging. |
49 | */ | 55 | */ |
50 | #if 0 | 56 | #if 0 |
diff --git a/include/uapi/linux/serial_reg.h b/include/uapi/linux/serial_reg.h index 25b93a764a1a..5db76880b4ad 100644 --- a/include/uapi/linux/serial_reg.h +++ b/include/uapi/linux/serial_reg.h | |||
@@ -367,24 +367,6 @@ | |||
367 | #define UART_OMAP_MDR1_DISABLE 0x07 /* Disable (default state) */ | 367 | #define UART_OMAP_MDR1_DISABLE 0x07 /* Disable (default state) */ |
368 | 368 | ||
369 | /* | 369 | /* |
370 | * These are definitions for the Exar XR17V35X and XR17(C|D)15X | ||
371 | */ | ||
372 | #define UART_EXAR_8XMODE 0x88 /* 8X sampling rate select */ | ||
373 | #define UART_EXAR_SLEEP 0x8b /* Sleep mode */ | ||
374 | #define UART_EXAR_DVID 0x8d /* Device identification */ | ||
375 | |||
376 | #define UART_EXAR_FCTR 0x08 /* Feature Control Register */ | ||
377 | #define UART_FCTR_EXAR_IRDA 0x10 /* IrDa data encode select */ | ||
378 | #define UART_FCTR_EXAR_485 0x20 /* Auto 485 half duplex dir ctl */ | ||
379 | #define UART_FCTR_EXAR_TRGA 0x00 /* FIFO trigger table A */ | ||
380 | #define UART_FCTR_EXAR_TRGB 0x60 /* FIFO trigger table B */ | ||
381 | #define UART_FCTR_EXAR_TRGC 0x80 /* FIFO trigger table C */ | ||
382 | #define UART_FCTR_EXAR_TRGD 0xc0 /* FIFO trigger table D programmable */ | ||
383 | |||
384 | #define UART_EXAR_TXTRG 0x0a /* Tx FIFO trigger level write-only */ | ||
385 | #define UART_EXAR_RXTRG 0x0b /* Rx FIFO trigger level write-only */ | ||
386 | |||
387 | /* | ||
388 | * These are definitions for the Altera ALTR_16550_F32/F64/F128 | 370 | * These are definitions for the Altera ALTR_16550_F32/F64/F128 |
389 | * Normalized from 0x100 to 0x40 because of shift by 2 (32 bit regs). | 371 | * Normalized from 0x100 to 0x40 because of shift by 2 (32 bit regs). |
390 | */ | 372 | */ |