Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
devs.c File Reference
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/interrupt.h>
#include <linux/list.h>
#include <linux/timer.h>
#include <linux/init.h>
#include <linux/serial_core.h>
#include <linux/platform_device.h>
#include <linux/io.h>
#include <linux/slab.h>
#include <linux/string.h>
#include <linux/dma-mapping.h>
#include <linux/fb.h>
#include <linux/gfp.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/onenand.h>
#include <linux/mtd/partitions.h>
#include <linux/mmc/host.h>
#include <linux/ioport.h>
#include <linux/platform_data/s3c-hsudc.h>
#include <linux/platform_data/s3c-hsotg.h>
#include <media/s5p_hdmi.h>
#include <asm/irq.h>
#include <asm/mach/arch.h>
#include <asm/mach/map.h>
#include <asm/mach/irq.h>
#include <mach/hardware.h>
#include <mach/dma.h>
#include <mach/irqs.h>
#include <mach/map.h>
#include <plat/cpu.h>
#include <plat/devs.h>
#include <plat/adc.h>
#include <linux/platform_data/ata-samsung_cf.h>
#include <linux/platform_data/usb-ehci-s5p.h>
#include <plat/fb.h>
#include <plat/fb-s3c2410.h>
#include <plat/hdmi.h>
#include <linux/platform_data/hwmon-s3c.h>
#include <linux/platform_data/i2c-s3c2410.h>
#include <plat/keypad.h>
#include <linux/platform_data/mmc-s3cmci.h>
#include <linux/platform_data/mtd-nand-s3c2410.h>
#include <plat/sdhci.h>
#include <linux/platform_data/touchscreen-s3c2410.h>
#include <linux/platform_data/usb-s3c2410_udc.h>
#include <linux/platform_data/usb-ohci-s3c2410.h>
#include <plat/usb-phy.h>
#include <plat/regs-iic.h>
#include <plat/regs-serial.h>
#include <plat/regs-spi.h>
#include <linux/platform_data/spi-s3c64xx.h>

Go to the source code of this file.

Functions

void __init s3c_i2c0_set_platdata (struct s3c2410_platform_i2c *pd)
 

Variables

struct platform_device samsung_asoc_dma
 
struct platform_device samsung_asoc_idma
 
struct platform_device s3c_device_i2c0
 
struct s3c2410_platform_i2c
default_i2c_data 
__initdata
 

Function Documentation

void __init s3c_i2c0_set_platdata ( struct s3c2410_platform_i2c i2c)

s3c_i2c0_set_platdata - set platform data for i2c0 device : The platform data to set, or NULL for default data.

Register the given platform data for use with the i2c0 device. This call copies the platform data, so the caller can use __initdata for their copy.

This call will set cfg_gpio if is null to the default platform implementation.

Any user of s3c_device_i2c0 should call this, even if it is with NULL to ensure that the device is given the default platform data as the driver will no longer carry defaults.

Definition at line 505 of file devs.c.

Variable Documentation

Initial value:
= {
.flags = 0,
.slave_addr = 0x10,
.frequency = 100*1000,
.sda_delay = 100,
}

Definition at line 498 of file devs.c.

struct platform_device s3c_device_i2c0
Initial value:
= {
.name = "s3c2410-i2c",
.id = -1,
.num_resources = ARRAY_SIZE(s3c_i2c0_resource),
.resource = s3c_i2c0_resource,
}

Definition at line 487 of file devs.c.

struct platform_device samsung_asoc_dma
Initial value:
= {
.name = "samsung-audio",
.id = -1,
.dev = {
.dma_mask = &samsung_device_dma_mask,
.coherent_dma_mask = DMA_BIT_MASK(32),
}
}

Definition at line 149 of file devs.c.

struct platform_device samsung_asoc_idma
Initial value:
= {
.name = "samsung-idma",
.id = -1,
.dev = {
.dma_mask = &samsung_device_dma_mask,
.coherent_dma_mask = DMA_BIT_MASK(32),
}
}

Definition at line 158 of file devs.c.