1 #ifndef __ASM_MACH_PXA910_H
2 #define __ASM_MACH_PXA910_H
6 extern struct sys_timer pxa910_timer
;
7 extern void __init
pxa910_init_irq(void);
10 #include <linux/i2c/pxa-i2c.h>
11 #include <mach/devices.h>
12 #include <plat/pxa3xx_nand.h>
14 extern struct pxa_device_desc pxa910_device_uart1
;
15 extern struct pxa_device_desc pxa910_device_uart2
;
16 extern struct pxa_device_desc pxa910_device_twsi0
;
17 extern struct pxa_device_desc pxa910_device_twsi1
;
18 extern struct pxa_device_desc pxa910_device_pwm1
;
19 extern struct pxa_device_desc pxa910_device_pwm2
;
20 extern struct pxa_device_desc pxa910_device_pwm3
;
21 extern struct pxa_device_desc pxa910_device_pwm4
;
22 extern struct pxa_device_desc pxa910_device_nand
;
23 extern struct platform_device pxa168_device_u2o
;
24 extern struct platform_device pxa168_device_u2ootg
;
25 extern struct platform_device pxa168_device_u2oehci
;
27 extern struct platform_device pxa910_device_gpio
;
28 extern struct platform_device pxa910_device_rtc
;
30 static inline int pxa910_add_uart(int id
)
32 struct pxa_device_desc
*d
= NULL
;
35 case 1: d
= &pxa910_device_uart1
; break;
36 case 2: d
= &pxa910_device_uart2
; break;
42 return pxa_register_device(d
, NULL
, 0);
45 static inline int pxa910_add_twsi(int id
, struct i2c_pxa_platform_data
*data
,
46 struct i2c_board_info
*info
, unsigned size
)
48 struct pxa_device_desc
*d
= NULL
;
52 case 0: d
= &pxa910_device_twsi0
; break;
53 case 1: d
= &pxa910_device_twsi1
; break;
58 ret
= i2c_register_board_info(id
, info
, size
);
62 return pxa_register_device(d
, data
, sizeof(*data
));
65 static inline int pxa910_add_pwm(int id
)
67 struct pxa_device_desc
*d
= NULL
;
70 case 1: d
= &pxa910_device_pwm1
; break;
71 case 2: d
= &pxa910_device_pwm2
; break;
72 case 3: d
= &pxa910_device_pwm3
; break;
73 case 4: d
= &pxa910_device_pwm4
; break;
78 return pxa_register_device(d
, NULL
, 0);
81 static inline int pxa910_add_nand(struct pxa3xx_nand_platform_data
*info
)
83 return pxa_register_device(&pxa910_device_nand
, info
, sizeof(*info
));
85 #endif /* __ASM_MACH_PXA910_H */