1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __ASM_MACH_PXA910_H
3 #define __ASM_MACH_PXA910_H
5 extern void pxa910_timer_init(void);
6 extern void __init
icu_init_irq(void);
7 extern void __init
pxa910_init_irq(void);
10 #include <linux/platform_data/i2c-pxa.h>
11 #include <linux/platform_data/mtd-nand-pxa3xx.h>
12 #include <video/mmp_disp.h>
16 extern struct pxa_device_desc pxa910_device_uart1
;
17 extern struct pxa_device_desc pxa910_device_uart2
;
18 extern struct pxa_device_desc pxa910_device_twsi0
;
19 extern struct pxa_device_desc pxa910_device_twsi1
;
20 extern struct pxa_device_desc pxa910_device_pwm1
;
21 extern struct pxa_device_desc pxa910_device_pwm2
;
22 extern struct pxa_device_desc pxa910_device_pwm3
;
23 extern struct pxa_device_desc pxa910_device_pwm4
;
24 extern struct pxa_device_desc pxa910_device_nand
;
25 extern struct platform_device pxa168_device_u2o
;
26 extern struct platform_device pxa168_device_u2ootg
;
27 extern struct platform_device pxa168_device_u2oehci
;
28 extern struct pxa_device_desc pxa910_device_disp
;
29 extern struct pxa_device_desc pxa910_device_fb
;
30 extern struct pxa_device_desc pxa910_device_panel
;
31 extern struct platform_device pxa910_device_gpio
;
32 extern struct platform_device pxa910_device_rtc
;
34 static inline int pxa910_add_uart(int id
)
36 struct pxa_device_desc
*d
= NULL
;
39 case 1: d
= &pxa910_device_uart1
; break;
40 case 2: d
= &pxa910_device_uart2
; break;
46 return pxa_register_device(d
, NULL
, 0);
49 static inline int pxa910_add_twsi(int id
, struct i2c_pxa_platform_data
*data
,
50 struct i2c_board_info
*info
, unsigned size
)
52 struct pxa_device_desc
*d
= NULL
;
56 case 0: d
= &pxa910_device_twsi0
; break;
57 case 1: d
= &pxa910_device_twsi1
; break;
62 ret
= i2c_register_board_info(id
, info
, size
);
66 return pxa_register_device(d
, data
, sizeof(*data
));
69 static inline int pxa910_add_pwm(int id
)
71 struct pxa_device_desc
*d
= NULL
;
74 case 1: d
= &pxa910_device_pwm1
; break;
75 case 2: d
= &pxa910_device_pwm2
; break;
76 case 3: d
= &pxa910_device_pwm3
; break;
77 case 4: d
= &pxa910_device_pwm4
; break;
82 return pxa_register_device(d
, NULL
, 0);
85 static inline int pxa910_add_nand(struct pxa3xx_nand_platform_data
*info
)
87 return pxa_register_device(&pxa910_device_nand
, info
, sizeof(*info
));
89 #endif /* __ASM_MACH_PXA910_H */