Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
serial.h File Reference
#include <linux/init.h>

Go to the source code of this file.

Macros

#define OMAP_UART_INFO_OFS   0x3ffc
 
#define OMAP1_UART1_BASE   0xfffb0000
 
#define OMAP1_UART2_BASE   0xfffb0800
 
#define OMAP1_UART3_BASE   0xfffb9800
 
#define OMAP2_UART1_BASE   0x4806a000
 
#define OMAP2_UART2_BASE   0x4806c000
 
#define OMAP2_UART3_BASE   0x4806e000
 
#define OMAP3_UART1_BASE   OMAP2_UART1_BASE
 
#define OMAP3_UART2_BASE   OMAP2_UART2_BASE
 
#define OMAP3_UART3_BASE   0x49020000
 
#define OMAP3_UART4_BASE   0x49042000 /* Only on 36xx */
 
#define OMAP3_UART4_AM35XX_BASE   0x4809E000 /* Only on AM35xx */
 
#define OMAP4_UART1_BASE   OMAP2_UART1_BASE
 
#define OMAP4_UART2_BASE   OMAP2_UART2_BASE
 
#define OMAP4_UART3_BASE   0x48020000
 
#define OMAP4_UART4_BASE   0x4806e000
 
#define TI81XX_UART1_BASE   0x48020000
 
#define TI81XX_UART2_BASE   0x48022000
 
#define TI81XX_UART3_BASE   0x48024000
 
#define AM35XX_UART4_BASE   0x4809E000 /* Only on AM3505/3517 */
 
#define AM33XX_UART1_BASE   0x44E09000
 
#define OMAP5_UART1_BASE   OMAP2_UART1_BASE
 
#define OMAP5_UART2_BASE   OMAP2_UART2_BASE
 
#define OMAP5_UART3_BASE   OMAP4_UART3_BASE
 
#define OMAP5_UART4_BASE   OMAP4_UART4_BASE
 
#define OMAP5_UART5_BASE   0x48066000
 
#define OMAP5_UART6_BASE   0x48068000
 
#define ZOOM_UART_BASE   0x10000000
 
#define ZOOM_UART_VIRT   0xfa400000
 
#define OMAP_PORT_SHIFT   2
 
#define OMAP7XX_PORT_SHIFT   0
 
#define ZOOM_PORT_SHIFT   1
 
#define OMAP1510_BASE_BAUD   (12000000/16)
 
#define OMAP16XX_BASE_BAUD   (48000000/16)
 
#define OMAP24XX_BASE_BAUD   (48000000/16)
 
#define OMAP1UART1   11
 
#define OMAP1UART2   12
 
#define OMAP1UART3   13
 
#define OMAP2UART1   21
 
#define OMAP2UART2   22
 
#define OMAP2UART3   23
 
#define OMAP3UART1   OMAP2UART1
 
#define OMAP3UART2   OMAP2UART2
 
#define OMAP3UART3   33
 
#define OMAP3UART4   34 /* Only on 36xx */
 
#define OMAP4UART1   OMAP2UART1
 
#define OMAP4UART2   OMAP2UART2
 
#define OMAP4UART3   43
 
#define OMAP4UART4   44
 
#define TI81XXUART1   81
 
#define TI81XXUART2   82
 
#define TI81XXUART3   83
 
#define AM33XXUART1   84
 
#define OMAP5UART3   OMAP4UART3
 
#define OMAP5UART4   OMAP4UART4
 
#define ZOOM_UART   95 /* Only on zoom2/3 */
 
#define is_omap_port(pt)
 

Functions

void omap_serial_init (void)
 
void omap_serial_board_init (struct omap_uart_port_info *platform_data)
 
void omap_serial_init_port (struct omap_board_data *bdata, struct omap_uart_port_info *platform_data)
 

Macro Definition Documentation

#define AM33XX_UART1_BASE   0x44E09000

Definition at line 64 of file serial.h.

#define AM33XXUART1   84

Definition at line 107 of file serial.h.

#define AM35XX_UART4_BASE   0x4809E000 /* Only on AM3505/3517 */

Definition at line 61 of file serial.h.

#define is_omap_port (   pt)
Value:
({int __ret = 0; \
if ((pt)->port.mapbase == OMAP1_UART1_BASE || \
(pt)->port.mapbase == OMAP1_UART2_BASE || \
(pt)->port.mapbase == OMAP1_UART3_BASE) \
__ret = 1; \
__ret; \
})

Definition at line 113 of file serial.h.

#define OMAP1510_BASE_BAUD   (12000000/16)

Definition at line 82 of file serial.h.

#define OMAP16XX_BASE_BAUD   (48000000/16)

Definition at line 83 of file serial.h.

#define OMAP1_UART1_BASE   0xfffb0000

Definition at line 33 of file serial.h.

#define OMAP1_UART2_BASE   0xfffb0800

Definition at line 34 of file serial.h.

#define OMAP1_UART3_BASE   0xfffb9800

Definition at line 35 of file serial.h.

#define OMAP1UART1   11

Definition at line 90 of file serial.h.

#define OMAP1UART2   12

Definition at line 91 of file serial.h.

#define OMAP1UART3   13

Definition at line 92 of file serial.h.

#define OMAP24XX_BASE_BAUD   (48000000/16)

Definition at line 84 of file serial.h.

#define OMAP2_UART1_BASE   0x4806a000

Definition at line 38 of file serial.h.

#define OMAP2_UART2_BASE   0x4806c000

Definition at line 39 of file serial.h.

#define OMAP2_UART3_BASE   0x4806e000

Definition at line 40 of file serial.h.

#define OMAP2UART1   21

Definition at line 93 of file serial.h.

#define OMAP2UART2   22

Definition at line 94 of file serial.h.

#define OMAP2UART3   23

Definition at line 95 of file serial.h.

#define OMAP3_UART1_BASE   OMAP2_UART1_BASE

Definition at line 43 of file serial.h.

#define OMAP3_UART2_BASE   OMAP2_UART2_BASE

Definition at line 44 of file serial.h.

#define OMAP3_UART3_BASE   0x49020000

Definition at line 45 of file serial.h.

#define OMAP3_UART4_AM35XX_BASE   0x4809E000 /* Only on AM35xx */

Definition at line 47 of file serial.h.

#define OMAP3_UART4_BASE   0x49042000 /* Only on 36xx */

Definition at line 46 of file serial.h.

#define OMAP3UART1   OMAP2UART1

Definition at line 96 of file serial.h.

#define OMAP3UART2   OMAP2UART2

Definition at line 97 of file serial.h.

#define OMAP3UART3   33

Definition at line 98 of file serial.h.

#define OMAP3UART4   34 /* Only on 36xx */

Definition at line 99 of file serial.h.

#define OMAP4_UART1_BASE   OMAP2_UART1_BASE

Definition at line 50 of file serial.h.

#define OMAP4_UART2_BASE   OMAP2_UART2_BASE

Definition at line 51 of file serial.h.

#define OMAP4_UART3_BASE   0x48020000

Definition at line 52 of file serial.h.

#define OMAP4_UART4_BASE   0x4806e000

Definition at line 53 of file serial.h.

#define OMAP4UART1   OMAP2UART1

Definition at line 100 of file serial.h.

#define OMAP4UART2   OMAP2UART2

Definition at line 101 of file serial.h.

#define OMAP4UART3   43

Definition at line 102 of file serial.h.

#define OMAP4UART4   44

Definition at line 103 of file serial.h.

#define OMAP5_UART1_BASE   OMAP2_UART1_BASE

Definition at line 67 of file serial.h.

#define OMAP5_UART2_BASE   OMAP2_UART2_BASE

Definition at line 68 of file serial.h.

#define OMAP5_UART3_BASE   OMAP4_UART3_BASE

Definition at line 69 of file serial.h.

#define OMAP5_UART4_BASE   OMAP4_UART4_BASE

Definition at line 70 of file serial.h.

#define OMAP5_UART5_BASE   0x48066000

Definition at line 71 of file serial.h.

#define OMAP5_UART6_BASE   0x48068000

Definition at line 72 of file serial.h.

#define OMAP5UART3   OMAP4UART3

Definition at line 108 of file serial.h.

#define OMAP5UART4   OMAP4UART4

Definition at line 109 of file serial.h.

#define OMAP7XX_PORT_SHIFT   0

Definition at line 79 of file serial.h.

#define OMAP_PORT_SHIFT   2

Definition at line 78 of file serial.h.

#define OMAP_UART_INFO_OFS   0x3ffc

Definition at line 30 of file serial.h.

#define TI81XX_UART1_BASE   0x48020000

Definition at line 56 of file serial.h.

#define TI81XX_UART2_BASE   0x48022000

Definition at line 57 of file serial.h.

#define TI81XX_UART3_BASE   0x48024000

Definition at line 58 of file serial.h.

#define TI81XXUART1   81

Definition at line 104 of file serial.h.

#define TI81XXUART2   82

Definition at line 105 of file serial.h.

#define TI81XXUART3   83

Definition at line 106 of file serial.h.

#define ZOOM_PORT_SHIFT   1

Definition at line 80 of file serial.h.

#define ZOOM_UART   95 /* Only on zoom2/3 */

Definition at line 110 of file serial.h.

#define ZOOM_UART_BASE   0x10000000

Definition at line 75 of file serial.h.

#define ZOOM_UART_VIRT   0xfa400000

Definition at line 76 of file serial.h.

Function Documentation

void 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).

Definition at line 352 of file serial.c.

void omap_serial_init ( void  )

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).

Definition at line 108 of file serial.c.

void 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.

Definition at line 271 of file serial.c.