Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
pxa168.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/clk.h>
#include <linux/platform_device.h>
#include <linux/platform_data/mv_usb.h>
#include <asm/mach/time.h>
#include <asm/system_misc.h>
#include <mach/cputype.h>
#include <mach/addr-map.h>
#include <mach/regs-apbc.h>
#include <mach/regs-apmu.h>
#include <mach/irqs.h>
#include <mach/dma.h>
#include <mach/devices.h>
#include <mach/mfp.h>
#include <linux/dma-mapping.h>
#include <mach/pxa168.h>
#include <mach/regs-usb.h>
#include "common.h"
#include "clock.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 pxa168_init_irq (void)
 
 postcore_initcall (pxa168_init)
 
void pxa168_clear_keypad_wakeup (void)
 
 PXA168_DEVICE (uart1,"pxa2xx-uart", 0, UART1, 0xd4017000, 0x30, 21, 22)
 
 PXA168_DEVICE (uart2,"pxa2xx-uart", 1, UART2, 0xd4018000, 0x30, 23, 24)
 
 PXA168_DEVICE (uart3,"pxa2xx-uart", 2, UART3, 0xd4026000, 0x30, 23, 24)
 
 PXA168_DEVICE (twsi0,"pxa2xx-i2c", 0, TWSI0, 0xd4011000, 0x28)
 
 PXA168_DEVICE (twsi1,"pxa2xx-i2c", 1, TWSI1, 0xd4025000, 0x28)
 
 PXA168_DEVICE (pwm1,"pxa168-pwm", 0, NONE, 0xd401a000, 0x10)
 
 PXA168_DEVICE (pwm2,"pxa168-pwm", 1, NONE, 0xd401a400, 0x10)
 
 PXA168_DEVICE (pwm3,"pxa168-pwm", 2, NONE, 0xd401a800, 0x10)
 
 PXA168_DEVICE (pwm4,"pxa168-pwm", 3, NONE, 0xd401ac00, 0x10)
 
 PXA168_DEVICE (nand,"pxa3xx-nand",-1, NAND, 0xd4283000, 0x80, 97, 99)
 
 PXA168_DEVICE (ssp1,"pxa168-ssp", 0, SSP1, 0xd401b000, 0x40, 52, 53)
 
 PXA168_DEVICE (ssp2,"pxa168-ssp", 1, SSP2, 0xd401c000, 0x40, 54, 55)
 
 PXA168_DEVICE (ssp3,"pxa168-ssp", 2, SSP3, 0xd401f000, 0x40, 56, 57)
 
 PXA168_DEVICE (ssp4,"pxa168-ssp", 3, SSP4, 0xd4020000, 0x40, 58, 59)
 
 PXA168_DEVICE (ssp5,"pxa168-ssp", 4, SSP5, 0xd4021000, 0x40, 60, 61)
 
 PXA168_DEVICE (fb,"pxa168-fb",-1, LCD, 0xd420b000, 0x1c8)
 
 PXA168_DEVICE (keypad,"pxa27x-keypad",-1, KEYPAD, 0xd4012000, 0x4c)
 
 PXA168_DEVICE (eth,"pxa168-eth",-1, MFU, 0xc0800000, 0x0fff)
 
int __init pxa168_add_usb_host (struct mv_usb_platform_data *pdata)
 
void pxa168_restart (char mode, const char *cmd)
 

Variables

struct sys_timer pxa168_timer
 
struct resource pxa168_resource_gpio []
 
struct platform_device pxa168_device_gpio
 
struct resource pxa168_usb_host_resources []
 
struct platform_device pxa168_device_usb_host
 

Macro Definition Documentation

#define APBC_TIMERS   APBC_REG(0x34)

Definition at line 68 of file pxa168.c.

#define MFPR_VIRT_BASE   (APB_VIRT_BASE + 0x1e000)

Definition at line 36 of file pxa168.c.

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

Definition at line 67 of file pxa168.c.

Function Documentation

postcore_initcall ( pxa168_init  )
int __init pxa168_add_usb_host ( struct mv_usb_platform_data pdata)

Definition at line 173 of file pxa168.c.

void pxa168_clear_keypad_wakeup ( void  )

Definition at line 88 of file pxa168.c.

PXA168_DEVICE ( uart1  ,
"pxa2xx-uart ,
,
UART1  ,
0xd4017000  ,
0x30  ,
21  ,
22   
)
PXA168_DEVICE ( uart2  ,
"pxa2xx-uart ,
,
UART2  ,
0xd4018000  ,
0x30  ,
23  ,
24   
)
PXA168_DEVICE ( uart3  ,
"pxa2xx-uart ,
,
UART3  ,
0xd4026000  ,
0x30  ,
23  ,
24   
)
PXA168_DEVICE ( twsi0  ,
"pxa2xx-i2c"  ,
,
TWSI0  ,
0xd4011000  ,
0x28   
)
PXA168_DEVICE ( twsi1  ,
"pxa2xx-i2c"  ,
,
TWSI1  ,
0xd4025000  ,
0x28   
)
PXA168_DEVICE ( pwm1  ,
"pxa168-pwm ,
,
NONE  ,
0xd401a000  ,
0x10   
)
PXA168_DEVICE ( pwm2  ,
"pxa168-pwm ,
,
NONE  ,
0xd401a400  ,
0x10   
)
PXA168_DEVICE ( pwm3  ,
"pxa168-pwm ,
,
NONE  ,
0xd401a800  ,
0x10   
)
PXA168_DEVICE ( pwm4  ,
"pxa168-pwm ,
,
NONE  ,
0xd401ac00  ,
0x10   
)
PXA168_DEVICE ( nand  ,
"pxa3xx-nand"  ,
1,
NAND  ,
0xd4283000  ,
0x80  ,
97  ,
99   
)
PXA168_DEVICE ( ssp1  ,
"pxa168-ssp ,
,
SSP1  ,
0xd401b000  ,
0x40  ,
52  ,
53   
)
PXA168_DEVICE ( ssp2  ,
"pxa168-ssp ,
,
SSP2  ,
0xd401c000  ,
0x40  ,
54  ,
55   
)
PXA168_DEVICE ( ssp3  ,
"pxa168-ssp ,
,
SSP3  ,
0xd401f000  ,
0x40  ,
56  ,
57   
)
PXA168_DEVICE ( ssp4  ,
"pxa168-ssp ,
,
SSP4  ,
0xd4020000  ,
0x40  ,
58  ,
59   
)
PXA168_DEVICE ( ssp5  ,
"pxa168-ssp ,
,
SSP5  ,
0xd4021000  ,
0x40  ,
60  ,
61   
)
PXA168_DEVICE ( fb  ,
"pxa168-fb ,
1,
LCD  ,
0xd420b000  ,
0x1c8   
)
PXA168_DEVICE ( keypad  ,
"pxa27x-keypad"  ,
1,
KEYPAD  ,
0xd4012000  ,
0x4c   
)
PXA168_DEVICE ( eth  ,
"pxa168-eth"  ,
1,
MFU  ,
0xc0800000  ,
0x0fff   
)
void __init pxa168_init_irq ( void  )

Definition at line 48 of file pxa168.c.

void pxa168_restart ( char  mode,
const char cmd 
)

Definition at line 179 of file pxa168.c.

Variable Documentation

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

Definition at line 131 of file pxa168.c.

struct platform_device pxa168_device_usb_host
Initial value:
= {
.name = "pxa-sph",
.id = -1,
.dev = {
.dma_mask = &pxa168_usb_host_dmamask,
.coherent_dma_mask = DMA_BIT_MASK(32),
},
}

Definition at line 161 of file pxa168.c.

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

Definition at line 118 of file pxa168.c.

struct sys_timer pxa168_timer
Initial value:
= {
.init = pxa168_timer_init,
}

Definition at line 84 of file pxa168.c.

struct resource pxa168_usb_host_resources[]
Initial value:
= {
[0] = {
.flags = IORESOURCE_MEM,
.name = "capregs",
},
[1] = {
.flags = IORESOURCE_MEM,
.name = "phyregs",
},
[2] = {
.start = IRQ_PXA168_USB2,
.flags = IORESOURCE_IRQ,
},
}

Definition at line 138 of file pxa168.c.