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

Go to the source code of this file.

Data Structures

struct  atmel_uart_data
 
struct  ide_platform_data
 
struct  cf_platform_data
 

Macros

#define GPIO_PIN_NONE   (-1)
 
#define ATMEL_MAX_UART   4
 
#define ATMEL_USART_RTS   0x01
 
#define ATMEL_USART_CTS   0x02
 
#define ATMEL_USART_CLK   0x04
 
#define ATMEL_SSC_TK   0x01
 
#define ATMEL_SSC_TF   0x02
 
#define ATMEL_SSC_TD   0x04
 
#define ATMEL_SSC_TX   (ATMEL_SSC_TK | ATMEL_SSC_TF | ATMEL_SSC_TD)
 
#define ATMEL_SSC_RK   0x10
 
#define ATMEL_SSC_RF   0x20
 
#define ATMEL_SSC_RD   0x40
 
#define ATMEL_SSC_RX   (ATMEL_SSC_RK | ATMEL_SSC_RF | ATMEL_SSC_RD)
 

Functions

void at32_map_usart (unsigned int hw_id, unsigned int line, int flags)
 
struct platform_deviceat32_add_device_usart (unsigned int id)
 
struct platform_deviceat32_add_device_eth (unsigned int id, struct macb_platform_data *data)
 
struct platform_deviceat32_add_device_spi (unsigned int id, struct spi_board_info *b, unsigned int n)
 
void at32_spi_setup_slaves (unsigned int bus_num, struct spi_board_info *b, unsigned int n)
 
struct platform_deviceat32_add_device_lcdc (unsigned int id, struct atmel_lcdfb_info *data, unsigned long fbmem_start, unsigned long fbmem_len, u64 pin_mask)
 
struct platform_deviceat32_add_device_usba (unsigned int id, struct usba_platform_data *data)
 
struct platform_deviceat32_add_device_ide (unsigned int id, unsigned int extint, struct ide_platform_data *data)
 
struct platform_deviceat32_add_device_pwm (u32 mask)
 
struct platform_deviceat32_add_device_ssc (unsigned int id, unsigned int flags)
 
struct platform_deviceat32_add_device_twi (unsigned int id, struct i2c_board_info *b, unsigned int n)
 
struct platform_deviceat32_add_device_mci (unsigned int id, struct mci_platform_data *data)
 
struct platform_deviceat32_add_device_ac97c (unsigned int id, struct ac97c_platform_data *data, unsigned int flags)
 
struct platform_deviceat32_add_device_abdac (unsigned int id, struct atmel_abdac_pdata *data)
 
struct platform_deviceat32_add_device_psif (unsigned int id)
 
struct platform_deviceat32_add_device_cf (unsigned int id, unsigned int extint, struct cf_platform_data *data)
 
struct platform_deviceat32_add_device_nand (unsigned int id, struct atmel_nand_data *data)
 

Variables

unsigned long at32_board_osc_rates []
 
struct platform_deviceatmel_default_console_device
 

Macro Definition Documentation

#define ATMEL_MAX_UART   4

Definition at line 29 of file board.h.

#define ATMEL_SSC_RD   0x40

Definition at line 83 of file board.h.

#define ATMEL_SSC_RF   0x20

Definition at line 82 of file board.h.

#define ATMEL_SSC_RK   0x10

Definition at line 81 of file board.h.

#define ATMEL_SSC_RX   (ATMEL_SSC_RK | ATMEL_SSC_RF | ATMEL_SSC_RD)

Definition at line 84 of file board.h.

#define ATMEL_SSC_TD   0x04

Definition at line 78 of file board.h.

#define ATMEL_SSC_TF   0x02

Definition at line 77 of file board.h.

#define ATMEL_SSC_TK   0x01

Definition at line 76 of file board.h.

#define ATMEL_SSC_TX   (ATMEL_SSC_TK | ATMEL_SSC_TF | ATMEL_SSC_TD)

Definition at line 79 of file board.h.

#define ATMEL_USART_CLK   0x04

Definition at line 35 of file board.h.

#define ATMEL_USART_CTS   0x02

Definition at line 34 of file board.h.

#define ATMEL_USART_RTS   0x01

Definition at line 33 of file board.h.

#define GPIO_PIN_NONE   (-1)

Definition at line 12 of file board.h.

Function Documentation

struct platform_device* at32_add_device_abdac ( unsigned int  id,
struct atmel_abdac_pdata data 
)
read

Definition at line 2113 of file at32ap700x.c.

struct platform_device* at32_add_device_ac97c ( unsigned int  id,
struct ac97c_platform_data data,
unsigned int  flags 
)
read

Definition at line 2019 of file at32ap700x.c.

struct platform_device* at32_add_device_cf ( unsigned int  id,
unsigned int  extint,
struct cf_platform_data data 
)
read
struct platform_device* at32_add_device_eth ( unsigned int  id,
struct macb_platform_data data 
)
read
struct platform_device* at32_add_device_ide ( unsigned int  id,
unsigned int  extint,
struct ide_platform_data data 
)
read
struct platform_device* at32_add_device_lcdc ( unsigned int  id,
struct atmel_lcdfb_info data,
unsigned long  fbmem_start,
unsigned long  fbmem_len,
u64  pin_mask 
)
read
struct platform_device* at32_add_device_mci ( unsigned int  id,
struct mci_platform_data data 
)
read

Definition at line 1330 of file at32ap700x.c.

struct platform_device* at32_add_device_nand ( unsigned int  id,
struct atmel_nand_data data 
)
read

Definition at line 1967 of file at32ap700x.c.

struct platform_device* at32_add_device_psif ( unsigned int  id)
read

Definition at line 884 of file at32ap700x.c.

struct platform_device* at32_add_device_pwm ( u32  mask)
read

Definition at line 1559 of file at32ap700x.c.

struct platform_device* at32_add_device_spi ( unsigned int  id,
struct spi_board_info b,
unsigned int  n 
)
read

Definition at line 1227 of file at32ap700x.c.

struct platform_device* at32_add_device_ssc ( unsigned int  id,
unsigned int  flags 
)
read

Definition at line 1630 of file at32ap700x.c.

struct platform_device* at32_add_device_twi ( unsigned int  id,
struct i2c_board_info b,
unsigned int  n 
)
read

Definition at line 1279 of file at32ap700x.c.

struct platform_device* at32_add_device_usart ( unsigned int  id)
read

Definition at line 1055 of file at32ap700x.c.

struct platform_device* at32_add_device_usba ( unsigned int  id,
struct usba_platform_data data 
)
read

Definition at line 1754 of file at32ap700x.c.

void at32_map_usart ( unsigned int  hw_id,
unsigned int  line,
int  flags 
)

Definition at line 1017 of file at32ap700x.c.

void at32_spi_setup_slaves ( unsigned int  bus_num,
struct spi_board_info b,
unsigned int  n 
)

Definition at line 1192 of file at32ap700x.c.

Variable Documentation

unsigned long at32_board_osc_rates[]

Definition at line 34 of file setup.c.

struct platform_device* atmel_default_console_device

Definition at line 1533 of file atmel_serial.c.