Linux Kernel
3.7.1
|
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/clk.h>
#include <linux/io.h>
#include <linux/delay.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <linux/pm_runtime.h>
#include <linux/console.h>
#include <plat/omap-serial.h>
#include "common.h"
#include <plat/dma.h>
#include <plat/omap_hwmod.h>
#include <plat/omap_device.h>
#include <plat/omap-pm.h>
#include <plat/serial.h>
#include "prm2xxx_3xxx.h"
#include "pm.h"
#include "cm2xxx_3xxx.h"
#include "prm-regbits-34xx.h"
#include "control.h"
#include "mux.h"
Go to the source code of this file.
Data Structures | |
struct | omap_uart_state |
Macros | |
#define | DEFAULT_AUTOSUSPEND_DELAY -1 |
#define | MAX_UART_HWMOD_NAME_LEN 16 |
#define | DEFAULT_RXDMA_POLLRATE 1 /* RX DMA polling rate (us) */ |
#define | DEFAULT_RXDMA_BUFSIZE 4096 /* RX DMA buffer size */ |
#define | DEFAULT_RXDMA_TIMEOUT (3 * HZ)/* RX DMA timeout (jiffies) */ |
Functions | |
core_initcall (omap_serial_early_init) | |
void __init | omap_serial_init_port (struct omap_board_data *bdata, struct omap_uart_port_info *info) |
void __init | omap_serial_board_init (struct omap_uart_port_info *info) |
void __init | omap_serial_init (void) |
core_initcall | ( | omap_serial_early_init | ) |
void __init omap_serial_board_init | ( | struct omap_uart_port_info * | info | ) |
omap_serial_board_init() - initialize all supported serial ports : platform specific data pointer
Initializes all available UARTs as serial ports. Platforms can call this function when they want to have default behaviour for serial ports (e.g initialize them all as serial ports).
omap_serial_init() - initialize all supported serial ports
Initializes all available UARTs. Platforms can call this function when they want to have default behaviour for serial ports (e.g initialize them all as serial ports).
void __init omap_serial_init_port | ( | struct omap_board_data * | bdata, |
struct omap_uart_port_info * | info | ||
) |
omap_serial_init_port() - initialize single serial port : port specific board data pointer : platform specific data pointer
This function initialies serial driver for given port only. Platforms can call this function instead of omap_serial_init() if they don't plan to use all available UARTs as serial ports.
Don't mix calls to omap_serial_init_port() and omap_serial_init(), use only one of the two.