Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
devices-tnetv107x.c File Reference
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/dma-mapping.h>
#include <linux/clk.h>
#include <linux/slab.h>
#include <mach/common.h>
#include <mach/irqs.h>
#include <mach/edma.h>
#include <mach/tnetv107x.h>
#include "clock.h"

Go to the source code of this file.

Macros

#define TNETV107X_TPCC_BASE   0x01c00000
 
#define TNETV107X_TPTC0_BASE   0x01c10000
 
#define TNETV107X_TPTC1_BASE   0x01c10400
 
#define TNETV107X_WDOG_BASE   0x08086700
 
#define TNETV107X_TSC_BASE   0x08088500
 
#define TNETV107X_SDIO0_BASE   0x08088700
 
#define TNETV107X_SDIO1_BASE   0x08088800
 
#define TNETV107X_KEYPAD_BASE   0x08088a00
 
#define TNETV107X_SSP_BASE   0x08088c00
 
#define TNETV107X_ASYNC_EMIF_CNTRL_BASE   0x08200000
 
#define TNETV107X_ASYNC_EMIF_DATA_CE0_BASE   0x30000000
 
#define TNETV107X_ASYNC_EMIF_DATA_CE1_BASE   0x40000000
 
#define TNETV107X_ASYNC_EMIF_DATA_CE2_BASE   0x44000000
 
#define TNETV107X_ASYNC_EMIF_DATA_CE3_BASE   0x48000000
 
#define EDMA_TNETV107X_NUM_DMACH   64
 
#define EDMA_TNETV107X_NUM_TCC   64
 
#define EDMA_TNETV107X_NUM_PARAMENTRY   128
 
#define EDMA_TNETV107X_NUM_EVQUE   2
 
#define EDMA_TNETV107X_NUM_TC   2
 
#define EDMA_TNETV107X_CHMAP_EXIST   0
 
#define EDMA_TNETV107X_NUM_REGIONS   4
 
#define TNETV107X_DMACH2EVENT_MAP0   0x3C0CE000u
 
#define TNETV107X_DMACH2EVENT_MAP1   0x000FFFFFu
 
#define TNETV107X_DMACH_SDIO0_RX   26
 
#define TNETV107X_DMACH_SDIO0_TX   27
 
#define TNETV107X_DMACH_SDIO1_RX   28
 
#define TNETV107X_DMACH_SDIO1_TX   29
 

Functions

void __init tnetv107x_devices_init (struct tnetv107x_device_info *info)
 

Variables

struct platform_device tnetv107x_serial_device
 
struct platform_device tnetv107x_wdt_device
 

Macro Definition Documentation

#define EDMA_TNETV107X_CHMAP_EXIST   0

Definition at line 51 of file devices-tnetv107x.c.

#define EDMA_TNETV107X_NUM_DMACH   64

Definition at line 46 of file devices-tnetv107x.c.

#define EDMA_TNETV107X_NUM_EVQUE   2

Definition at line 49 of file devices-tnetv107x.c.

#define EDMA_TNETV107X_NUM_PARAMENTRY   128

Definition at line 48 of file devices-tnetv107x.c.

#define EDMA_TNETV107X_NUM_REGIONS   4

Definition at line 52 of file devices-tnetv107x.c.

#define EDMA_TNETV107X_NUM_TC   2

Definition at line 50 of file devices-tnetv107x.c.

#define EDMA_TNETV107X_NUM_TCC   64

Definition at line 47 of file devices-tnetv107x.c.

#define TNETV107X_ASYNC_EMIF_CNTRL_BASE   0x08200000

Definition at line 39 of file devices-tnetv107x.c.

#define TNETV107X_ASYNC_EMIF_DATA_CE0_BASE   0x30000000

Definition at line 40 of file devices-tnetv107x.c.

#define TNETV107X_ASYNC_EMIF_DATA_CE1_BASE   0x40000000

Definition at line 41 of file devices-tnetv107x.c.

#define TNETV107X_ASYNC_EMIF_DATA_CE2_BASE   0x44000000

Definition at line 42 of file devices-tnetv107x.c.

#define TNETV107X_ASYNC_EMIF_DATA_CE3_BASE   0x48000000

Definition at line 43 of file devices-tnetv107x.c.

#define TNETV107X_DMACH2EVENT_MAP0   0x3C0CE000u

Definition at line 53 of file devices-tnetv107x.c.

#define TNETV107X_DMACH2EVENT_MAP1   0x000FFFFFu

Definition at line 54 of file devices-tnetv107x.c.

#define TNETV107X_DMACH_SDIO0_RX   26

Definition at line 56 of file devices-tnetv107x.c.

#define TNETV107X_DMACH_SDIO0_TX   27

Definition at line 57 of file devices-tnetv107x.c.

#define TNETV107X_DMACH_SDIO1_RX   28

Definition at line 58 of file devices-tnetv107x.c.

#define TNETV107X_DMACH_SDIO1_TX   29

Definition at line 59 of file devices-tnetv107x.c.

#define TNETV107X_KEYPAD_BASE   0x08088a00

Definition at line 37 of file devices-tnetv107x.c.

#define TNETV107X_SDIO0_BASE   0x08088700

Definition at line 35 of file devices-tnetv107x.c.

#define TNETV107X_SDIO1_BASE   0x08088800

Definition at line 36 of file devices-tnetv107x.c.

#define TNETV107X_SSP_BASE   0x08088c00

Definition at line 38 of file devices-tnetv107x.c.

#define TNETV107X_TPCC_BASE   0x01c00000

Definition at line 30 of file devices-tnetv107x.c.

#define TNETV107X_TPTC0_BASE   0x01c10000

Definition at line 31 of file devices-tnetv107x.c.

#define TNETV107X_TPTC1_BASE   0x01c10400

Definition at line 32 of file devices-tnetv107x.c.

#define TNETV107X_TSC_BASE   0x08088500

Definition at line 34 of file devices-tnetv107x.c.

#define TNETV107X_WDOG_BASE   0x08086700

Definition at line 33 of file devices-tnetv107x.c.

Function Documentation

void __init tnetv107x_devices_init ( struct tnetv107x_device_info info)

Definition at line 366 of file devices-tnetv107x.c.

Variable Documentation

struct platform_device tnetv107x_serial_device
Initial value:
= {
.name = "serial8250",
.dev.platform_data = serial_data,
}

Definition at line 162 of file devices-tnetv107x.c.

struct platform_device tnetv107x_wdt_device
Initial value:
= {
.name = "tnetv107x_wdt",
.id = 0,
.num_resources = ARRAY_SIZE(wdt_resources),
.resource = wdt_resources,
}

Definition at line 257 of file devices-tnetv107x.c.