Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
platform.c File Reference
#include <linux/device.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/platform_device.h>
#include <linux/resource.h>
#include <linux/dma-mapping.h>
#include <asm/mach-jz4740/platform.h>
#include <asm/mach-jz4740/base.h>
#include <asm/mach-jz4740/irq.h>
#include <linux/serial_core.h>
#include <linux/serial_8250.h>
#include "serial.h"
#include "clock.h"

Go to the source code of this file.

Macros

#define JZ4740_UART_DATA(_id)
 

Functions

void jz4740_serial_device_register (void)
 

Variables

struct platform_device jz4740_usb_ohci_device
 
struct platform_device jz4740_udc_device
 
struct platform_device jz4740_mmc_device
 
struct platform_device jz4740_rtc_device
 
struct platform_device jz4740_i2c_device
 
struct platform_device jz4740_nand_device
 
struct platform_device jz4740_framebuffer_device
 
struct platform_device jz4740_i2s_device
 
struct platform_device jz4740_pcm_device
 
struct platform_device jz4740_codec_device
 
struct platform_device jz4740_adc_device
 
struct platform_device jz4740_wdt_device
 
struct platform_device jz4740_pwm_device
 

Macro Definition Documentation

#define JZ4740_UART_DATA (   _id)
Value:
{ \
.iotype = UPIO_MEM, \
.regshift = 2, \
.serial_out = jz4740_serial_out, \
.type = PORT_16550, \
.mapbase = JZ4740_UART ## _id ## _BASE_ADDR, \
.irq = JZ4740_IRQ_UART ## _id, \
}

Definition at line 276 of file platform.c.

Function Documentation

void jz4740_serial_device_register ( void  )

Definition at line 301 of file platform.c.

Variable Documentation

struct platform_device jz4740_adc_device
Initial value:
= {
.name = "jz4740-adc",
.id = -1,
.num_resources = ARRAY_SIZE(jz4740_adc_resources),
.resource = jz4740_adc_resources,
}

Definition at line 268 of file platform.c.

struct platform_device jz4740_codec_device
Initial value:
= {
.name = "jz4740-codec",
.id = -1,
.num_resources = ARRAY_SIZE(jz4740_codec_resources),
.resource = jz4740_codec_resources,
}

Definition at line 242 of file platform.c.

struct platform_device jz4740_framebuffer_device
Initial value:
= {
.name = "jz4740-fb",
.id = -1,
.num_resources = ARRAY_SIZE(jz4740_framebuffer_resources),
.resource = jz4740_framebuffer_resources,
.dev = {
.dma_mask = &jz4740_framebuffer_device.dev.coherent_dma_mask,
.coherent_dma_mask = DMA_BIT_MASK(32),
},
}

Definition at line 200 of file platform.c.

struct platform_device jz4740_i2c_device
Initial value:
= {
.name = "jz4740-i2c",
.id = 0,
.num_resources = ARRAY_SIZE(jz4740_i2c_resources),
.resource = jz4740_i2c_resources,
}

Definition at line 144 of file platform.c.

struct platform_device jz4740_i2s_device
Initial value:
= {
.name = "jz4740-i2s",
.id = -1,
.num_resources = ARRAY_SIZE(jz4740_i2s_resources),
.resource = jz4740_i2s_resources,
}

Definition at line 220 of file platform.c.

struct platform_device jz4740_mmc_device
Initial value:
= {
.name = "jz4740-mmc",
.id = 0,
.dev = {
.dma_mask = &jz4740_mmc_device.dev.coherent_dma_mask,
.coherent_dma_mask = DMA_BIT_MASK(32),
},
.num_resources = ARRAY_SIZE(jz4740_mmc_resources),
.resource = jz4740_mmc_resources,
}

Definition at line 98 of file platform.c.

struct platform_device jz4740_nand_device
Initial value:
= {
.name = "jz4740-nand",
.num_resources = ARRAY_SIZE(jz4740_nand_resources),
.resource = jz4740_nand_resources,
}

Definition at line 185 of file platform.c.

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

Definition at line 228 of file platform.c.

struct platform_device jz4740_pwm_device
Initial value:
= {
.name = "jz4740-pwm",
.id = -1,
}

Definition at line 328 of file platform.c.

struct platform_device jz4740_rtc_device
Initial value:
= {
.name = "jz4740-rtc",
.id = -1,
.num_resources = ARRAY_SIZE(jz4740_rtc_resources),
.resource = jz4740_rtc_resources,
}

Definition at line 123 of file platform.c.

struct platform_device jz4740_udc_device
Initial value:
= {
.name = "jz-udc",
.id = -1,
.dev = {
.dma_mask = &jz4740_udc_device.dev.coherent_dma_mask,
.coherent_dma_mask = DMA_BIT_MASK(32),
},
.num_resources = ARRAY_SIZE(jz4740_usb_gdt_resources),
.resource = jz4740_usb_gdt_resources,
}

Definition at line 73 of file platform.c.

struct platform_device jz4740_usb_ohci_device
Initial value:
= {
.name = "jz4740-ohci",
.id = -1,
.dev = {
.dma_mask = &jz4740_usb_ohci_device.dev.coherent_dma_mask,
.coherent_dma_mask = DMA_BIT_MASK(32),
},
.num_resources = ARRAY_SIZE(jz4740_usb_ohci_resources),
.resource = jz4740_usb_ohci_resources,
}

Definition at line 48 of file platform.c.

struct platform_device jz4740_wdt_device
Initial value:
= {
.name = "jz4740-wdt",
.id = -1,
.num_resources = ARRAY_SIZE(jz4740_wdt_resources),
.resource = jz4740_wdt_resources,
}

Definition at line 320 of file platform.c.