Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
usb.c File Reference
#include <linux/platform_device.h>
#include <linux/usb/musb.h>
#include <linux/dma-mapping.h>
#include <plat/ste_dma40.h>
#include <mach/hardware.h>
#include <linux/platform_data/usb-musb-ux500.h>

Go to the source code of this file.

Macros

#define MUSB_DMA40_RX_CH
 
#define MUSB_DMA40_TX_CH
 

Functions

void ux500_add_usb (struct device *parent, resource_size_t base, int irq, int *dma_rx_cfg, int *dma_tx_cfg)
 

Variables

struct platform_device ux500_musb_device
 

Macro Definition Documentation

#define MUSB_DMA40_RX_CH
Value:
{ \
.dst_dev_type = STEDMA40_DEV_DST_MEMORY, \
.src_info.data_width = STEDMA40_WORD_WIDTH, \
.dst_info.data_width = STEDMA40_WORD_WIDTH, \
.src_info.psize = STEDMA40_PSIZE_LOG_16, \
.dst_info.psize = STEDMA40_PSIZE_LOG_16, \
}

Definition at line 15 of file usb.c.

#define MUSB_DMA40_TX_CH
Value:
{ \
.src_dev_type = STEDMA40_DEV_SRC_MEMORY, \
.src_info.data_width = STEDMA40_WORD_WIDTH, \
.dst_info.data_width = STEDMA40_WORD_WIDTH, \
.src_info.psize = STEDMA40_PSIZE_LOG_16, \
.dst_info.psize = STEDMA40_PSIZE_LOG_16, \
}

Definition at line 25 of file usb.c.

Function Documentation

void ux500_add_usb ( struct device parent,
resource_size_t  base,
int  irq,
int dma_rx_cfg,
int dma_tx_cfg 
)

Definition at line 144 of file usb.c.

Variable Documentation

struct platform_device ux500_musb_device
Initial value:
= {
.name = "musb-ux500",
.id = 0,
.dev = {
.platform_data = &musb_platform_data,
.dma_mask = &ux500_musb_dmamask,
.coherent_dma_mask = DMA_BIT_MASK(32),
},
.num_resources = ARRAY_SIZE(usb_resources),
.resource = usb_resources,
}

Definition at line 116 of file usb.c.