#include <linux/module.h>
#include <linux/device.h>
#include <linux/console.h>
#include <linux/serial_core.h>
#include <linux/serial.h>
#include <linux/io.h>
#include <linux/tty.h>
#include <linux/tty_flip.h>
#include <linux/platform_device.h>
#include <linux/platform_data/sccnxp.h>
Go to the source code of this file.
#define ACR_BAUD0 (0 << 7) |
#define ACR_BAUD1 (1 << 7) |
#define ACR_TIMER_MODE (6 << 4) |
#define CR_CMD_BREAK_RESET (0x05 << 4) |
#define CR_CMD_MRPTR0 (0x0b << 4) |
#define CR_CMD_MRPTR1 (0x01 << 4) |
#define CR_CMD_RX_RESET (0x02 << 4) |
#define CR_CMD_START_BREAK (0x06 << 4) |
#define CR_CMD_STATUS_RESET (0x04 << 4) |
#define CR_CMD_STOP_BREAK (0x07 << 4) |
#define CR_CMD_TX_RESET (0x03 << 4) |
#define CR_RX_DISABLE (1 << 1) |
#define CR_RX_ENABLE (1 << 0) |
#define CR_TX_DISABLE (1 << 3) |
#define CR_TX_ENABLE (1 << 2) |
#define IMR_RXRDY (1 << 1) |
#define IMR_TXRDY (1 << 0) |
#define ISR_RXRDY |
( |
|
x | ) |
(1 << ((x * 4) + 1)) |
#define ISR_TXRDY |
( |
|
x | ) |
(1 << ((x * 4) + 0)) |
#define MCTRL_IBIT |
( |
|
cfg, |
|
|
|
sig |
|
) |
| ((((cfg) >> (sig)) & 0xf) - LINE_IP0) |
#define MCTRL_MASK |
( |
|
sig | ) |
(0xf << (sig)) |
#define MCTRL_OBIT |
( |
|
cfg, |
|
|
|
sig |
|
) |
| ((((cfg) >> (sig)) & 0xf) - LINE_OP0) |
#define MR0_BAUD_EXT1 (1 << 0) |
#define MR0_BAUD_EXT2 (5 << 0) |
#define MR0_BAUD_NORMAL (0 << 0) |
#define MR0_FIFO (1 << 3) |
#define MR0_TXLVL (1 << 4) |
#define MR1_BITS_5 (0 << 0) |
#define MR1_BITS_6 (1 << 0) |
#define MR1_BITS_7 (2 << 0) |
#define MR1_BITS_8 (3 << 0) |
#define MR1_PAR_EVN (0 << 2) |
#define MR1_PAR_NO (4 << 2) |
#define MR1_PAR_ODD (1 << 2) |
#define MR2_STOP1 (7 << 0) |
#define MR2_STOP2 (0xf << 0) |
#define SCCNXP_CR_REG (0x02) |
#define SCCNXP_HAVE_IO 0x00000001 |
#define SCCNXP_HAVE_MR0 0x00000002 |
#define SCCNXP_IPCR_REG (0x04) |
#define SCCNXP_IPR_REG (0x0d) |
#define SCCNXP_ISR_REG (0x05) |
#define SCCNXP_MR_REG (0x00) |
#define SCCNXP_NAME "uart-sccnxp" |
#define SCCNXP_RHR_REG (0x03) |
#define SCCNXP_ROP_REG (0x0f) |
#define SCCNXP_SOP_REG (0x0e) |
#define SCCNXP_SR_REG (0x01) |
#define SR_RXRDY (1 << 0) |
#define SR_TXEMT (1 << 3) |
#define SR_TXRDY (1 << 2) |
- Enumerator:
SCCNXP_TYPE_SC2681 |
|
SCCNXP_TYPE_SC2691 |
|
SCCNXP_TYPE_SC2692 |
|
SCCNXP_TYPE_SC2891 |
|
SCCNXP_TYPE_SC2892 |
|
SCCNXP_TYPE_SC28202 |
|
SCCNXP_TYPE_SC68681 |
|
SCCNXP_TYPE_SC68692 |
|
Definition at line 95 of file sccnxp.c.
MODULE_DEVICE_TABLE |
( |
platform |
, |
|
|
sccnxp_id_table |
|
|
) |
| |
MODULE_LICENSE |
( |
"GPL v2" |
| ) |
|
module_platform_driver |
( |
sccnxp_uart_driver |
| ) |
|