Linux Kernel
3.7.1
|
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/io.h>
#include <linux/platform_device.h>
#include <linux/console.h>
#include <linux/sysrq.h>
#include <linux/serial_core.h>
#include <linux/tty_flip.h>
#include <linux/slab.h>
#include <linux/clk.h>
#include <linux/of.h>
#include <linux/of_device.h>
#include <linux/platform_data/efm32-uart.h>
Go to the source code of this file.
Data Structures | |
struct | efm32_uart_port |
Functions | |
MODULE_DEVICE_TABLE (of, efm32_uart_dt_ids) | |
module_init (efm32_uart_init) | |
MODULE_AUTHOR ("Uwe Kleine-Koenig <[email protected]>") | |
MODULE_DESCRIPTION ("EFM32 UART/USART driver") | |
MODULE_LICENSE ("GPL v2") | |
MODULE_ALIAS ("platform:"DRIVER_NAME) | |
#define DEV_NAME "ttyefm" |
Definition at line 21 of file efm32-uart.c.
#define DRIVER_NAME "efm32-uart" |
Definition at line 20 of file efm32-uart.c.
Definition at line 662 of file efm32-uart.c.
Definition at line 86 of file efm32-uart.c.
#define SW_UARTn_RXDATAX_BERR 0x2000 |
Definition at line 60 of file efm32-uart.c.
#define to_efm_port | ( | _port | ) | container_of(_port, struct efm32_uart_port, port) |
Definition at line 85 of file efm32-uart.c.
#define UARTn_CLKDIV 0x14 |
Definition at line 49 of file efm32-uart.c.
#define UARTn_CMD 0x0c |
Definition at line 37 of file efm32-uart.c.
#define UARTn_CMD_RXDIS 0x0002 |
Definition at line 39 of file efm32-uart.c.
#define UARTn_CMD_RXEN 0x0001 |
Definition at line 38 of file efm32-uart.c.
#define UARTn_CMD_TXDIS 0x0008 |
Definition at line 41 of file efm32-uart.c.
#define UARTn_CMD_TXEN 0x0004 |
Definition at line 40 of file efm32-uart.c.
#define UARTn_CTRL 0x00 |
Definition at line 23 of file efm32-uart.c.
#define UARTn_CTRL_SYNC 0x0001 |
Definition at line 24 of file efm32-uart.c.
#define UARTn_CTRL_TXBIL 0x1000 |
Definition at line 25 of file efm32-uart.c.
#define UARTn_FRAME 0x04 |
Definition at line 27 of file efm32-uart.c.
Definition at line 29 of file efm32-uart.c.
#define UARTn_FRAME_DATABITS__MASK 0x000f |
Definition at line 28 of file efm32-uart.c.
#define UARTn_FRAME_PARITY_EVEN 0x0200 |
Definition at line 31 of file efm32-uart.c.
#define UARTn_FRAME_PARITY_NONE 0x0000 |
Definition at line 30 of file efm32-uart.c.
#define UARTn_FRAME_PARITY_ODD 0x0300 |
Definition at line 32 of file efm32-uart.c.
#define UARTn_FRAME_STOPBITS_HALF 0x0000 |
Definition at line 33 of file efm32-uart.c.
#define UARTn_FRAME_STOPBITS_ONE 0x1000 |
Definition at line 34 of file efm32-uart.c.
#define UARTn_FRAME_STOPBITS_TWO 0x3000 |
Definition at line 35 of file efm32-uart.c.
#define UARTn_IEN 0x4c |
Definition at line 72 of file efm32-uart.c.
#define UARTn_IF 0x40 |
Definition at line 64 of file efm32-uart.c.
#define UARTn_IF_RXDATAV 0x0004 |
Definition at line 67 of file efm32-uart.c.
#define UARTn_IF_RXOF 0x0010 |
Definition at line 68 of file efm32-uart.c.
#define UARTn_IF_TXBL 0x0002 |
Definition at line 66 of file efm32-uart.c.
#define UARTn_IF_TXC 0x0001 |
Definition at line 65 of file efm32-uart.c.
#define UARTn_IFC 0x48 |
Definition at line 71 of file efm32-uart.c.
#define UARTn_IFS 0x44 |
Definition at line 70 of file efm32-uart.c.
#define UARTn_ROUTE 0x54 |
Definition at line 74 of file efm32-uart.c.
#define UARTn_ROUTE_LOCATION | ( | n | ) | (((n) << 8) & UARTn_ROUTE_LOCATION__MASK) |
Definition at line 76 of file efm32-uart.c.
#define UARTn_ROUTE_LOCATION__MASK 0x0700 |
Definition at line 75 of file efm32-uart.c.
#define UARTn_ROUTE_RXPEN 0x0001 |
Definition at line 77 of file efm32-uart.c.
#define UARTn_ROUTE_TXPEN 0x0002 |
Definition at line 78 of file efm32-uart.c.
#define UARTn_RXDATAX 0x18 |
Definition at line 51 of file efm32-uart.c.
#define UARTn_RXDATAX_FERR 0x8000 |
Definition at line 54 of file efm32-uart.c.
#define UARTn_RXDATAX_PERR 0x4000 |
Definition at line 53 of file efm32-uart.c.
#define UARTn_RXDATAX_RXDATA__MASK 0x01ff |
Definition at line 52 of file efm32-uart.c.
#define UARTn_STATUS 0x10 |
Definition at line 43 of file efm32-uart.c.
#define UARTn_STATUS_RXDATAV 0x0080 |
Definition at line 47 of file efm32-uart.c.
#define UARTn_STATUS_TXBL 0x0040 |
Definition at line 46 of file efm32-uart.c.
#define UARTn_STATUS_TXC 0x0020 |
Definition at line 45 of file efm32-uart.c.
#define UARTn_STATUS_TXENS 0x0002 |
Definition at line 44 of file efm32-uart.c.
#define UARTn_TXDATA 0x34 |
Definition at line 62 of file efm32-uart.c.
MODULE_ALIAS | ( | "platform:" | DRIVER_NAME | ) |
MODULE_AUTHOR | ( | "Uwe Kleine-Koenig <[email protected]>" | ) |
MODULE_DEVICE_TABLE | ( | of | , |
efm32_uart_dt_ids | |||
) |
module_init | ( | efm32_uart_init | ) |
MODULE_LICENSE | ( | "GPL v2" | ) |