Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
mmp2.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/io.h>
#include <linux/platform_device.h>
#include <asm/hardware/cache-tauros2.h>
#include <asm/mach/time.h>
#include <mach/addr-map.h>
#include <mach/regs-apbc.h>
#include <mach/cputype.h>
#include <mach/irqs.h>
#include <mach/dma.h>
#include <mach/mfp.h>
#include <mach/devices.h>
#include <mach/mmp2.h>
#include "common.h"

Go to the source code of this file.

Macros

#define MFPR_VIRT_BASE   (APB_VIRT_BASE + 0x1e000)
 
#define APBC_TIMERS   APBC_REG(0x024)
 

Functions

void mmp2_clear_pmic_int (void)
 
void __init mmp2_init_irq (void)
 
 postcore_initcall (mmp2_init)
 
 MMP2_DEVICE (uart1,"pxa2xx-uart", 0, UART1, 0xd4030000, 0x30, 4, 5)
 
 MMP2_DEVICE (uart2,"pxa2xx-uart", 1, UART2, 0xd4017000, 0x30, 20, 21)
 
 MMP2_DEVICE (uart3,"pxa2xx-uart", 2, UART3, 0xd4018000, 0x30, 22, 23)
 
 MMP2_DEVICE (uart4,"pxa2xx-uart", 3, UART4, 0xd4016000, 0x30, 18, 19)
 
 MMP2_DEVICE (twsi1,"pxa2xx-i2c", 0, TWSI1, 0xd4011000, 0x70)
 
 MMP2_DEVICE (twsi2,"pxa2xx-i2c", 1, TWSI2, 0xd4031000, 0x70)
 
 MMP2_DEVICE (twsi3,"pxa2xx-i2c", 2, TWSI3, 0xd4032000, 0x70)
 
 MMP2_DEVICE (twsi4,"pxa2xx-i2c", 3, TWSI4, 0xd4033000, 0x70)
 
 MMP2_DEVICE (twsi5,"pxa2xx-i2c", 4, TWSI5, 0xd4033800, 0x70)
 
 MMP2_DEVICE (twsi6,"pxa2xx-i2c", 5, TWSI6, 0xd4034000, 0x70)
 
 MMP2_DEVICE (nand,"pxa3xx-nand",-1, NAND, 0xd4283000, 0x100, 28, 29)
 
 MMP2_DEVICE (sdh0,"sdhci-pxav3", 0, MMC, 0xd4280000, 0x120)
 
 MMP2_DEVICE (sdh1,"sdhci-pxav3", 1, MMC2, 0xd4280800, 0x120)
 
 MMP2_DEVICE (sdh2,"sdhci-pxav3", 2, MMC3, 0xd4281000, 0x120)
 
 MMP2_DEVICE (sdh3,"sdhci-pxav3", 3, MMC4, 0xd4281800, 0x120)
 
 MMP2_DEVICE (asram,"asram",-1, NONE, 0xe0000000, 0x4000)
 
 MMP2_DEVICE (isram,"isram",-1, NONE, 0xd1020000, 0x18000)
 

Variables

struct sys_timer mmp2_timer
 
struct resource mmp2_resource_gpio []
 
struct platform_device mmp2_device_gpio
 

Macro Definition Documentation

#define APBC_TIMERS   APBC_REG(0x024)

Definition at line 115 of file mmp2.c.

#define MFPR_VIRT_BASE   (APB_VIRT_BASE + 0x1e000)

Definition at line 32 of file mmp2.c.

Function Documentation

void mmp2_clear_pmic_int ( void  )

Definition at line 83 of file mmp2.c.

MMP2_DEVICE ( uart1  ,
"pxa2xx-uart ,
,
UART1  ,
0xd4030000  ,
0x30  ,
,
 
)
MMP2_DEVICE ( uart2  ,
"pxa2xx-uart ,
,
UART2  ,
0xd4017000  ,
0x30  ,
20  ,
21   
)
MMP2_DEVICE ( uart3  ,
"pxa2xx-uart ,
,
UART3  ,
0xd4018000  ,
0x30  ,
22  ,
23   
)
MMP2_DEVICE ( uart4  ,
"pxa2xx-uart ,
,
UART4  ,
0xd4016000  ,
0x30  ,
18  ,
19   
)
MMP2_DEVICE ( twsi1  ,
"pxa2xx-i2c"  ,
,
TWSI1  ,
0xd4011000  ,
0x70   
)
MMP2_DEVICE ( twsi2  ,
"pxa2xx-i2c"  ,
,
TWSI2  ,
0xd4031000  ,
0x70   
)
MMP2_DEVICE ( twsi3  ,
"pxa2xx-i2c"  ,
,
TWSI3  ,
0xd4032000  ,
0x70   
)
MMP2_DEVICE ( twsi4  ,
"pxa2xx-i2c"  ,
,
TWSI4  ,
0xd4033000  ,
0x70   
)
MMP2_DEVICE ( twsi5  ,
"pxa2xx-i2c"  ,
,
TWSI5  ,
0xd4033800  ,
0x70   
)
MMP2_DEVICE ( twsi6  ,
"pxa2xx-i2c"  ,
,
TWSI6  ,
0xd4034000  ,
0x70   
)
MMP2_DEVICE ( nand  ,
"pxa3xx-nand"  ,
1,
NAND  ,
0xd4283000  ,
0x100  ,
28  ,
29   
)
MMP2_DEVICE ( sdh0  ,
"sdhci-pxav3"  ,
,
MMC  ,
0xd4280000  ,
0x120   
)
MMP2_DEVICE ( sdh1  ,
"sdhci-pxav3"  ,
,
MMC2  ,
0xd4280800  ,
0x120   
)
MMP2_DEVICE ( sdh2  ,
"sdhci-pxav3"  ,
,
MMC3  ,
0xd4281000  ,
0x120   
)
MMP2_DEVICE ( sdh3  ,
"sdhci-pxav3"  ,
,
MMC4  ,
0xd4281800  ,
0x120   
)
MMP2_DEVICE ( asram  ,
"asram"  ,
1,
NONE  ,
0xe0000000  ,
0x4000   
)
MMP2_DEVICE ( isram  ,
"isram"  ,
1,
NONE  ,
0xd1020000  ,
0x18000   
)
void __init mmp2_init_irq ( void  )

Definition at line 94 of file mmp2.c.

postcore_initcall ( mmp2_init  )

Variable Documentation

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

Definition at line 170 of file mmp2.c.

struct resource mmp2_resource_gpio[]
Initial value:
= {
{
.start = 0xd4019000,
.end = 0xd4019fff,
.flags = IORESOURCE_MEM,
}, {
.start = IRQ_MMP2_GPIO,
.end = IRQ_MMP2_GPIO,
.name = "gpio_mux",
.flags = IORESOURCE_IRQ,
},
}

Definition at line 157 of file mmp2.c.

struct sys_timer mmp2_timer
Initial value:
= {
.init = mmp2_timer_init,
}

Definition at line 133 of file mmp2.c.