]>
Commit | Line | Data |
---|---|---|
4490e3c6 KK |
1 | /* SPDX-License-Identifier: GPL-2.0 */ |
2 | /* | |
3db3ae5e KK |
3 | * Copyright (c) 2011 Samsung Electronics Co., Ltd. |
4 | * http://www.samsung.com | |
1da177e4 LT |
5 | * |
6 | * Copyright (c) 2004 Simtec Electronics | |
7 | * Ben Dooks <ben@simtec.co.uk> | |
8 | * | |
9 | * Header file for s3c2410 standard platform devices | |
4490e3c6 | 10 | */ |
bb8bb57b MH |
11 | |
12 | #ifndef __PLAT_DEVS_H | |
13 | #define __PLAT_DEVS_H __FILE__ | |
14 | ||
d052d1be | 15 | #include <linux/platform_device.h> |
1da177e4 | 16 | |
66a9b49a BD |
17 | struct s3c24xx_uart_resources { |
18 | struct resource *resources; | |
19 | unsigned long nr_resources; | |
20 | }; | |
21 | ||
22 | extern struct s3c24xx_uart_resources s3c2410_uart_resources[]; | |
0241cbb9 | 23 | extern struct s3c24xx_uart_resources s3c64xx_uart_resources[]; |
66a9b49a | 24 | |
1da177e4 | 25 | extern struct platform_device *s3c24xx_uart_devs[]; |
66a9b49a | 26 | extern struct platform_device *s3c24xx_uart_src[]; |
1da177e4 | 27 | |
bad1e6aa | 28 | extern struct platform_device s3c64xx_device_ac97; |
52da219e MB |
29 | extern struct platform_device s3c64xx_device_iis0; |
30 | extern struct platform_device s3c64xx_device_iis1; | |
d06a49ee | 31 | extern struct platform_device s3c64xx_device_iisv4; |
bad1e6aa | 32 | extern struct platform_device s3c64xx_device_onenand1; |
acf1aef9 JB |
33 | extern struct platform_device s3c64xx_device_pcm0; |
34 | extern struct platform_device s3c64xx_device_pcm1; | |
bad1e6aa KK |
35 | extern struct platform_device s3c64xx_device_spi0; |
36 | extern struct platform_device s3c64xx_device_spi1; | |
875a5937 | 37 | extern struct platform_device s3c64xx_device_spi2; |
acf1aef9 | 38 | |
bad1e6aa KK |
39 | extern struct platform_device s3c_device_adc; |
40 | extern struct platform_device s3c_device_cfcon; | |
58435f7b | 41 | extern struct platform_device s3c_device_fb; |
bad1e6aa KK |
42 | extern struct platform_device s3c_device_hwmon; |
43 | extern struct platform_device s3c_device_hsmmc0; | |
44 | extern struct platform_device s3c_device_hsmmc1; | |
45 | extern struct platform_device s3c_device_hsmmc2; | |
46 | extern struct platform_device s3c_device_hsmmc3; | |
3e1b776c | 47 | extern struct platform_device s3c_device_i2c0; |
1aba834d | 48 | extern struct platform_device s3c_device_i2c1; |
c8d833bf | 49 | extern struct platform_device s3c_device_i2c2; |
b7a98255 KP |
50 | extern struct platform_device s3c_device_i2c3; |
51 | extern struct platform_device s3c_device_i2c4; | |
52 | extern struct platform_device s3c_device_i2c5; | |
53 | extern struct platform_device s3c_device_i2c6; | |
54 | extern struct platform_device s3c_device_i2c7; | |
bad1e6aa KK |
55 | extern struct platform_device s3c_device_iis; |
56 | extern struct platform_device s3c_device_lcd; | |
57 | extern struct platform_device s3c_device_nand; | |
58 | extern struct platform_device s3c_device_ohci; | |
59 | extern struct platform_device s3c_device_onenand; | |
1da177e4 | 60 | extern struct platform_device s3c_device_rtc; |
1da177e4 | 61 | extern struct platform_device s3c_device_sdi; |
1da177e4 LT |
62 | extern struct platform_device s3c_device_spi0; |
63 | extern struct platform_device s3c_device_spi1; | |
bad1e6aa KK |
64 | extern struct platform_device s3c_device_ts; |
65 | extern struct platform_device s3c_device_timer[]; | |
1da177e4 | 66 | extern struct platform_device s3c_device_usbgadget; |
f0e1fa76 | 67 | extern struct platform_device s3c_device_usb_hsotg; |
bad1e6aa KK |
68 | extern struct platform_device s3c_device_usb_hsudc; |
69 | extern struct platform_device s3c_device_wdt; | |
1da177e4 | 70 | |
bad1e6aa KK |
71 | extern struct platform_device samsung_asoc_idma; |
72 | extern struct platform_device samsung_device_keypad; | |
95e43d46 | 73 | extern struct platform_device samsung_device_pwm; |
bad1e6aa | 74 | |
1da177e4 LT |
75 | /* s3c2440 specific devices */ |
76 | ||
77 | #ifdef CONFIG_CPU_S3C2440 | |
78 | ||
79 | extern struct platform_device s3c_device_camif; | |
d91e9a7a | 80 | extern struct platform_device s3c_device_ac97; |
1da177e4 LT |
81 | |
82 | #endif | |
3911dab8 BD |
83 | |
84 | /** | |
85 | * s3c_set_platdata() - helper for setting platform data | |
86 | * @pd: The default platform data for this device. | |
87 | * @pdsize: The size of the platform data. | |
88 | * @pdev: Pointer to the device to fill in. | |
89 | * | |
90 | * This helper replaces a number of calls that copy and then set the | |
91 | * platform data of the device. | |
92 | */ | |
93 | extern void *s3c_set_platdata(void *pd, size_t pdsize, | |
94 | struct platform_device *pdev); | |
bb8bb57b MH |
95 | |
96 | #endif /* __PLAT_DEVS_H */ |