Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
devices.c File Reference
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/dma-mapping.h>
#include <linux/io.h>
#include <mach/hardware.h>
#include <linux/platform_data/i2c-davinci.h>
#include <mach/irqs.h>
#include <mach/cputype.h>
#include <mach/mux.h>
#include <mach/edma.h>
#include <linux/platform_data/mmc-davinci.h>
#include <mach/time.h>
#include "davinci.h"
#include "clock.h"

Go to the source code of this file.

Macros

#define DAVINCI_I2C_BASE   0x01C21000
 
#define DAVINCI_ATA_BASE   0x01C66000
 
#define DAVINCI_MMCSD0_BASE   0x01E10000
 
#define DM355_MMCSD0_BASE   0x01E11000
 
#define DM355_MMCSD1_BASE   0x01E00000
 
#define DM365_MMCSD0_BASE   0x01D11000
 
#define DM365_MMCSD1_BASE   0x01D00000
 

Functions

void davinci_map_sysmod (void)
 
void __init davinci_init_i2c (struct davinci_i2c_platform_data *pdata)
 
void __init davinci_init_ide (void)
 
void __init davinci_setup_mmc (int module, struct davinci_mmc_config *config)
 
void davinci_restart (char mode, const char *cmd)
 
 arch_initcall (davinci_init_devices)
 

Variables

void __iomemdavinci_sysmod_base
 
struct platform_device davinci_wdt_device
 
struct davinci_timer_instance davinci_timer_instance [2]
 

Macro Definition Documentation

#define DAVINCI_ATA_BASE   0x01C66000

Definition at line 30 of file devices.c.

#define DAVINCI_I2C_BASE   0x01C21000

Definition at line 29 of file devices.c.

#define DAVINCI_MMCSD0_BASE   0x01E10000

Definition at line 31 of file devices.c.

#define DM355_MMCSD0_BASE   0x01E11000

Definition at line 32 of file devices.c.

#define DM355_MMCSD1_BASE   0x01E00000

Definition at line 33 of file devices.c.

#define DM365_MMCSD0_BASE   0x01D11000

Definition at line 34 of file devices.c.

#define DM365_MMCSD1_BASE   0x01D00000

Definition at line 35 of file devices.c.

Function Documentation

arch_initcall ( davinci_init_devices  )
void __init davinci_init_i2c ( struct davinci_i2c_platform_data pdata)

Definition at line 70 of file devices.c.

void __init davinci_init_ide ( void  )

Definition at line 105 of file devices.c.

void davinci_map_sysmod ( void  )

Definition at line 39 of file devices.c.

void davinci_restart ( char  mode,
const char cmd 
)

Definition at line 304 of file devices.c.

void __init davinci_setup_mmc ( int  module,
struct davinci_mmc_config config 
)

Definition at line 281 of file devices.c.

Variable Documentation

void __iomem* davinci_sysmod_base

Definition at line 37 of file devices.c.

Initial value:
= {
{
.bottom_irq = IRQ_TINT0_TINT12,
.top_irq = IRQ_TINT0_TINT34,
},
{
.bottom_irq = IRQ_TINT1_TINT12,
.top_irq = IRQ_TINT1_TINT34,
},
}

Definition at line 318 of file devices.c.

struct platform_device davinci_wdt_device
Initial value:
= {
.name = "watchdog",
.id = -1,
.num_resources = ARRAY_SIZE(wdt_resources),
.resource = wdt_resources,
}

Definition at line 297 of file devices.c.