xref: /openbmc/linux/arch/arm/mach-pxa/devices.h (revision b8265621)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #define PDMA_FILTER_PARAM(_prio, _requestor) (&(struct pxad_param) { \
3 	.prio = PXAD_PRIO_##_prio, .drcmr = _requestor })
4 struct mmp_dma_platdata;
5 
6 extern struct platform_device pxa_device_pmu;
7 extern struct platform_device pxa_device_mci;
8 extern struct platform_device pxa3xx_device_mci2;
9 extern struct platform_device pxa3xx_device_mci3;
10 extern struct platform_device pxa25x_device_udc;
11 extern struct platform_device pxa27x_device_udc;
12 extern struct platform_device pxa3xx_device_u2d;
13 extern struct platform_device pxa_device_fb;
14 extern struct platform_device pxa_device_ffuart;
15 extern struct platform_device pxa_device_btuart;
16 extern struct platform_device pxa_device_stuart;
17 extern struct platform_device pxa_device_hwuart;
18 extern struct platform_device pxa_device_i2c;
19 extern struct platform_device pxa_device_i2s;
20 extern struct platform_device pxa_device_ficp;
21 extern struct platform_device sa1100_device_rtc;
22 extern struct platform_device pxa_device_rtc;
23 extern struct platform_device pxa_device_ac97;
24 
25 extern struct platform_device pxa27x_device_i2c_power;
26 extern struct platform_device pxa27x_device_ohci;
27 extern struct platform_device pxa27x_device_keypad;
28 
29 extern struct platform_device pxa25x_device_ssp;
30 extern struct platform_device pxa25x_device_nssp;
31 extern struct platform_device pxa25x_device_assp;
32 extern struct platform_device pxa27x_device_ssp1;
33 extern struct platform_device pxa27x_device_ssp2;
34 extern struct platform_device pxa27x_device_ssp3;
35 extern struct platform_device pxa3xx_device_ssp1;
36 extern struct platform_device pxa3xx_device_ssp2;
37 extern struct platform_device pxa3xx_device_ssp3;
38 extern struct platform_device pxa3xx_device_ssp4;
39 
40 extern struct platform_device pxa25x_device_pwm0;
41 extern struct platform_device pxa25x_device_pwm1;
42 extern struct platform_device pxa27x_device_pwm0;
43 extern struct platform_device pxa27x_device_pwm1;
44 
45 extern struct platform_device pxa3xx_device_nand;
46 extern struct platform_device pxa3xx_device_i2c_power;
47 
48 extern struct platform_device pxa3xx_device_gcu;
49 
50 extern struct platform_device pxa_device_asoc_platform;
51 extern struct platform_device pxa_device_asoc_ssp1;
52 extern struct platform_device pxa_device_asoc_ssp2;
53 extern struct platform_device pxa_device_asoc_ssp3;
54 extern struct platform_device pxa_device_asoc_ssp4;
55 
56 extern struct platform_device pxa25x_device_gpio;
57 extern struct platform_device pxa27x_device_gpio;
58 extern struct platform_device pxa3xx_device_gpio;
59 extern struct platform_device pxa93x_device_gpio;
60 
61 void __init pxa_register_device(struct platform_device *dev, void *data);
62 void __init pxa2xx_set_dmac_info(struct mmp_dma_platdata *dma_pdata);
63 
64 struct i2c_pxa_platform_data;
65 extern void pxa_set_i2c_info(struct i2c_pxa_platform_data *info);
66 #ifdef CONFIG_PXA27x
67 extern void pxa27x_set_i2c_power_info(struct i2c_pxa_platform_data *info);
68 #endif
69 #ifdef CONFIG_PXA3xx
70 extern void pxa3xx_set_i2c_power_info(struct i2c_pxa_platform_data *info);
71 #endif
72