Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
devices.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/dma-mapping.h>
#include <linux/spi/pxa2xx_spi.h>
#include <linux/i2c/pxa-i2c.h>
#include <mach/udc.h>
#include <linux/platform_data/usb-pxa3xx-ulpi.h>
#include <linux/platform_data/video-pxafb.h>
#include <linux/platform_data/mmc-pxamci.h>
#include <linux/platform_data/irda-pxaficp.h>
#include <mach/irqs.h>
#include <linux/platform_data/usb-ohci-pxa27x.h>
#include <linux/platform_data/keypad-pxa27x.h>
#include <linux/platform_data/camera-pxa.h>
#include <mach/audio.h>
#include <mach/hardware.h>
#include <linux/platform_data/mtd-nand-pxa3xx.h>
#include "devices.h"
#include "generic.h"

Go to the source code of this file.

Functions

void __init pxa_register_device (struct platform_device *dev, void *data)
 
void __init pxa_set_mci_info (struct pxamci_platform_data *info)
 
void __init pxa_set_udc_info (struct pxa2xx_udc_mach_info *info)
 
void __init pxa_set_fb_info (struct device *parent, struct pxafb_mach_info *info)
 
void __init pxa_set_ffuart_info (void *info)
 
void __init pxa_set_btuart_info (void *info)
 
void __init pxa_set_stuart_info (void *info)
 
void __init pxa_set_hwuart_info (void *info)
 
void __init pxa_set_i2c_info (struct i2c_pxa_platform_data *info)
 
void __init pxa_set_ficp_info (struct pxaficp_platform_data *info)
 
void __init pxa_set_ac97_info (pxa2xx_audio_ops_t *ops)
 
void __init pxa2xx_set_spi_info (unsigned id, struct pxa2xx_spi_master *info)
 

Variables

struct platform_device pxa_device_pmu
 
struct platform_device pxa_device_mci
 
struct platform_device pxa25x_device_udc
 
struct platform_device pxa27x_device_udc
 
struct platform_device pxa_device_fb
 
struct platform_device pxa_device_ffuart
 
struct platform_device pxa_device_btuart
 
struct platform_device pxa_device_stuart
 
struct platform_device pxa_device_hwuart
 
struct platform_device pxa_device_i2c
 
struct platform_device pxa_device_i2s
 
struct platform_device pxa_device_asoc_ssp1
 
struct platform_device pxa_device_asoc_ssp2
 
struct platform_device pxa_device_asoc_ssp3
 
struct platform_device pxa_device_asoc_ssp4
 
struct platform_device pxa_device_asoc_platform
 
struct platform_device pxa_device_ficp
 
struct platform_device pxa_device_rtc
 
struct platform_device sa1100_device_rtc
 
struct platform_device pxa_device_ac97
 
struct resource pxa_resource_gpio []
 
struct platform_device pxa_device_gpio
 

Function Documentation

void __init pxa2xx_set_spi_info ( unsigned  id,
struct pxa2xx_spi_master info 
)

Definition at line 1119 of file devices.c.

void __init pxa_register_device ( struct platform_device dev,
void data 
)

Definition at line 25 of file devices.c.

void __init pxa_set_ac97_info ( pxa2xx_audio_ops_t ops)

Definition at line 489 of file devices.c.

void __init pxa_set_btuart_info ( void info)

Definition at line 239 of file devices.c.

void __init pxa_set_fb_info ( struct device parent,
struct pxafb_mach_info info 
)

Definition at line 190 of file devices.c.

void __init pxa_set_ffuart_info ( void info)

Definition at line 215 of file devices.c.

void __init pxa_set_ficp_info ( struct pxaficp_platform_data info)

Definition at line 410 of file devices.c.

void __init pxa_set_hwuart_info ( void info)

Definition at line 287 of file devices.c.

void __init pxa_set_i2c_info ( struct i2c_pxa_platform_data info)

Definition at line 314 of file devices.c.

void __init pxa_set_mci_info ( struct pxamci_platform_data info)

Definition at line 85 of file devices.c.

void __init pxa_set_stuart_info ( void info)

Definition at line 263 of file devices.c.

void __init pxa_set_udc_info ( struct pxa2xx_udc_mach_info info)

Definition at line 95 of file devices.c.

Variable Documentation

struct platform_device pxa25x_device_udc
Initial value:
= {
.name = "pxa25x-udc",
.id = -1,
.resource = pxa2xx_udc_resources,
.num_resources = ARRAY_SIZE(pxa2xx_udc_resources),
.dev = {
.platform_data = &pxa_udc_info,
.dma_mask = &udc_dma_mask,
}
}

Definition at line 115 of file devices.c.

struct platform_device pxa27x_device_udc
Initial value:
= {
.name = "pxa27x-udc",
.id = -1,
.resource = pxa2xx_udc_resources,
.num_resources = ARRAY_SIZE(pxa2xx_udc_resources),
.dev = {
.platform_data = &pxa_udc_info,
.dma_mask = &udc_dma_mask,
}
}

Definition at line 126 of file devices.c.

struct platform_device pxa_device_ac97
Initial value:
= {
.name = "pxa2xx-ac97",
.id = -1,
.dev = {
.dma_mask = &pxa_ac97_dmamask,
.coherent_dma_mask = 0xffffffff,
},
.num_resources = ARRAY_SIZE(pxa_ac97_resources),
.resource = pxa_ac97_resources,
}

Definition at line 478 of file devices.c.

struct platform_device pxa_device_asoc_platform
Initial value:
= {
.name = "pxa-pcm-audio",
.id = -1,
}

Definition at line 379 of file devices.c.

struct platform_device pxa_device_asoc_ssp1
Initial value:
= {
.name = "pxa-ssp-dai",
.id = 0,
}

Definition at line 359 of file devices.c.

struct platform_device pxa_device_asoc_ssp2
Initial value:
= {
.name = "pxa-ssp-dai",
.id = 1,
}

Definition at line 364 of file devices.c.

struct platform_device pxa_device_asoc_ssp3
Initial value:
= {
.name = "pxa-ssp-dai",
.id = 2,
}

Definition at line 369 of file devices.c.

struct platform_device pxa_device_asoc_ssp4
Initial value:
= {
.name = "pxa-ssp-dai",
.id = 3,
}

Definition at line 374 of file devices.c.

struct platform_device pxa_device_btuart
Initial value:
= {
.name = "pxa2xx-uart",
.id = 1,
.resource = pxa_resource_btuart,
.num_resources = ARRAY_SIZE(pxa_resource_btuart),
}

Definition at line 232 of file devices.c.

struct platform_device pxa_device_fb
Initial value:
= {
.name = "pxa2xx-fb",
.id = -1,
.dev = {
.dma_mask = &fb_dma_mask,
.coherent_dma_mask = 0xffffffff,
},
.num_resources = ARRAY_SIZE(pxafb_resources),
.resource = pxafb_resources,
}

Definition at line 179 of file devices.c.

struct platform_device pxa_device_ffuart
Initial value:
= {
.name = "pxa2xx-uart",
.id = 0,
.resource = pxa_resource_ffuart,
.num_resources = ARRAY_SIZE(pxa_resource_ffuart),
}

Definition at line 208 of file devices.c.

struct platform_device pxa_device_ficp
Initial value:
= {
.name = "pxa2xx-ir",
.id = -1,
.num_resources = ARRAY_SIZE(pxa_ir_resources),
.resource = pxa_ir_resources,
.dev = {
.dma_mask = &pxaficp_dmamask,
.coherent_dma_mask = 0xffffffff,
},
}

Definition at line 399 of file devices.c.

struct platform_device pxa_device_gpio
Initial value:
= {
.name = "pxa-gpio",
.id = -1,
.num_resources = ARRAY_SIZE(pxa_resource_gpio),
.resource = pxa_resource_gpio,
}

Definition at line 1110 of file devices.c.

struct platform_device pxa_device_hwuart
Initial value:
= {
.name = "pxa2xx-uart",
.id = 3,
.resource = pxa_resource_hwuart,
.num_resources = ARRAY_SIZE(pxa_resource_hwuart),
}

Definition at line 280 of file devices.c.

struct platform_device pxa_device_i2c
Initial value:
= {
.name = "pxa2xx-i2c",
.id = 0,
.resource = pxai2c_resources,
.num_resources = ARRAY_SIZE(pxai2c_resources),
}

Definition at line 307 of file devices.c.

struct platform_device pxa_device_i2s
Initial value:
= {
.name = "pxa2xx-i2s",
.id = -1,
.resource = pxai2s_resources,
.num_resources = ARRAY_SIZE(pxai2s_resources),
}

Definition at line 352 of file devices.c.

struct platform_device pxa_device_mci
Initial value:
= {
.name = "pxa2xx-mci",
.id = 0,
.dev = {
.dma_mask = &pxamci_dmamask,
.coherent_dma_mask = 0xffffffff,
},
.num_resources = ARRAY_SIZE(pxamci_resources),
.resource = pxamci_resources,
}

Definition at line 74 of file devices.c.

struct platform_device pxa_device_pmu
Initial value:
= {
.name = "arm-pmu",
.id = -1,
.resource = &pxa_resource_pmu,
.num_resources = 1,
}

Definition at line 42 of file devices.c.

struct platform_device pxa_device_rtc
Initial value:
= {
.name = "pxa-rtc",
.id = -1,
.num_resources = ARRAY_SIZE(pxa_rtc_resources),
.resource = pxa_rtc_resources,
}

Definition at line 435 of file devices.c.

struct platform_device pxa_device_stuart
Initial value:
= {
.name = "pxa2xx-uart",
.id = 2,
.resource = pxa_resource_stuart,
.num_resources = ARRAY_SIZE(pxa_resource_stuart),
}

Definition at line 256 of file devices.c.

struct resource pxa_resource_gpio[]
Initial value:
= {
{
.start = 0x40e00000,
.end = 0x40e0ffff,
.flags = IORESOURCE_MEM,
}, {
.start = IRQ_GPIO0,
.end = IRQ_GPIO0,
.name = "gpio0",
.flags = IORESOURCE_IRQ,
}, {
.start = IRQ_GPIO1,
.end = IRQ_GPIO1,
.name = "gpio1",
.flags = IORESOURCE_IRQ,
}, {
.start = IRQ_GPIO_2_x,
.end = IRQ_GPIO_2_x,
.name = "gpio_mux",
.flags = IORESOURCE_IRQ,
},
}

Definition at line 1087 of file devices.c.

struct platform_device sa1100_device_rtc
Initial value:
= {
.name = "sa1100-rtc",
.id = -1,
.num_resources = ARRAY_SIZE(sa1100_rtc_resources),
.resource = sa1100_rtc_resources,
}

Definition at line 456 of file devices.c.