Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
pxa910.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/list.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 "common.h"

Go to the source code of this file.

Macros

#define MFPR_VIRT_BASE   (APB_VIRT_BASE + 0x1e000)
 
#define TIMER_CLK_RST   (APBC_APBCLK | APBC_FNCLK | APBC_FNCLKSEL(3))
 
#define APBC_TIMERS   APBC_REG(0x34)
 

Functions

void __init pxa910_init_irq (void)
 
 postcore_initcall (pxa910_init)
 
 PXA910_DEVICE (uart1,"pxa2xx-uart", 0, UART2, 0xd4017000, 0x30, 21, 22)
 
 PXA910_DEVICE (uart2,"pxa2xx-uart", 1, UART3, 0xd4018000, 0x30, 23, 24)
 
 PXA910_DEVICE (twsi0,"pxa2xx-i2c", 0, TWSI0, 0xd4011000, 0x28)
 
 PXA910_DEVICE (twsi1,"pxa2xx-i2c", 1, TWSI1, 0xd4025000, 0x28)
 
 PXA910_DEVICE (pwm1,"pxa910-pwm", 0, NONE, 0xd401a000, 0x10)
 
 PXA910_DEVICE (pwm2,"pxa910-pwm", 1, NONE, 0xd401a400, 0x10)
 
 PXA910_DEVICE (pwm3,"pxa910-pwm", 2, NONE, 0xd401a800, 0x10)
 
 PXA910_DEVICE (pwm4,"pxa910-pwm", 3, NONE, 0xd401ac00, 0x10)
 
 PXA910_DEVICE (nand,"pxa3xx-nand",-1, NAND, 0xd4283000, 0x80, 97, 99)
 

Variables

struct sys_timer pxa910_timer
 
struct resource pxa910_resource_gpio []
 
struct platform_device pxa910_device_gpio
 
struct platform_device pxa910_device_rtc
 

Macro Definition Documentation

#define APBC_TIMERS   APBC_REG(0x34)

Definition at line 102 of file pxa910.c.

#define MFPR_VIRT_BASE   (APB_VIRT_BASE + 0x1e000)

Definition at line 29 of file pxa910.c.

#define TIMER_CLK_RST   (APBC_APBCLK | APBC_FNCLK | APBC_FNCLKSEL(3))

Definition at line 101 of file pxa910.c.

Function Documentation

postcore_initcall ( pxa910_init  )
PXA910_DEVICE ( uart1  ,
"pxa2xx-uart ,
,
UART2  ,
0xd4017000  ,
0x30  ,
21  ,
22   
)
PXA910_DEVICE ( uart2  ,
"pxa2xx-uart ,
,
UART3  ,
0xd4018000  ,
0x30  ,
23  ,
24   
)
PXA910_DEVICE ( twsi0  ,
"pxa2xx-i2c"  ,
,
TWSI0  ,
0xd4011000  ,
0x28   
)
PXA910_DEVICE ( twsi1  ,
"pxa2xx-i2c"  ,
,
TWSI1  ,
0xd4025000  ,
0x28   
)
PXA910_DEVICE ( pwm1  ,
"pxa910-pwm ,
,
NONE  ,
0xd401a000  ,
0x10   
)
PXA910_DEVICE ( pwm2  ,
"pxa910-pwm ,
,
NONE  ,
0xd401a400  ,
0x10   
)
PXA910_DEVICE ( pwm3  ,
"pxa910-pwm ,
,
NONE  ,
0xd401a800  ,
0x10   
)
PXA910_DEVICE ( pwm4  ,
"pxa910-pwm ,
,
NONE  ,
0xd401ac00  ,
0x10   
)
PXA910_DEVICE ( nand  ,
"pxa3xx-nand"  ,
1,
NAND  ,
0xd4283000  ,
0x80  ,
97  ,
99   
)
void __init pxa910_init_irq ( void  )

Definition at line 79 of file pxa910.c.

Variable Documentation

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

Definition at line 155 of file pxa910.c.

struct platform_device pxa910_device_rtc
Initial value:
= {
.name = "sa1100-rtc",
.id = -1,
.num_resources = ARRAY_SIZE(pxa910_resource_rtc),
.resource = pxa910_resource_rtc,
}

Definition at line 180 of file pxa910.c.

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

Definition at line 142 of file pxa910.c.

struct sys_timer pxa910_timer
Initial value:
= {
.init = pxa910_timer_init,
}

Definition at line 113 of file pxa910.c.