1 /* arch/arm/plat-samsung/include/plat/devs.h 2 * 3 * Copyright (c) 2011 Samsung Electronics Co., Ltd. 4 * http://www.samsung.com 5 * 6 * Copyright (c) 2004 Simtec Electronics 7 * Ben Dooks <ben@simtec.co.uk> 8 * 9 * Header file for s3c2410 standard platform devices 10 * 11 * This program is free software; you can redistribute it and/or modify 12 * it under the terms of the GNU General Public License version 2 as 13 * published by the Free Software Foundation. 14 */ 15 16 #ifndef __PLAT_DEVS_H 17 #define __PLAT_DEVS_H __FILE__ 18 19 #include <linux/platform_device.h> 20 21 struct s3c24xx_uart_resources { 22 struct resource *resources; 23 unsigned long nr_resources; 24 }; 25 26 extern struct s3c24xx_uart_resources s3c2410_uart_resources[]; 27 extern struct s3c24xx_uart_resources s3c64xx_uart_resources[]; 28 29 extern struct platform_device *s3c24xx_uart_devs[]; 30 extern struct platform_device *s3c24xx_uart_src[]; 31 32 extern struct platform_device s3c64xx_device_ac97; 33 extern struct platform_device s3c64xx_device_iis0; 34 extern struct platform_device s3c64xx_device_iis1; 35 extern struct platform_device s3c64xx_device_iisv4; 36 extern struct platform_device s3c64xx_device_onenand1; 37 extern struct platform_device s3c64xx_device_pcm0; 38 extern struct platform_device s3c64xx_device_pcm1; 39 extern struct platform_device s3c64xx_device_spi0; 40 extern struct platform_device s3c64xx_device_spi1; 41 extern struct platform_device s3c64xx_device_spi2; 42 43 extern struct platform_device s3c_device_adc; 44 extern struct platform_device s3c_device_cfcon; 45 extern struct platform_device s3c_device_fb; 46 extern struct platform_device s3c_device_hwmon; 47 extern struct platform_device s3c_device_hsmmc0; 48 extern struct platform_device s3c_device_hsmmc1; 49 extern struct platform_device s3c_device_hsmmc2; 50 extern struct platform_device s3c_device_hsmmc3; 51 extern struct platform_device s3c_device_i2c0; 52 extern struct platform_device s3c_device_i2c1; 53 extern struct platform_device s3c_device_i2c2; 54 extern struct platform_device s3c_device_i2c3; 55 extern struct platform_device s3c_device_i2c4; 56 extern struct platform_device s3c_device_i2c5; 57 extern struct platform_device s3c_device_i2c6; 58 extern struct platform_device s3c_device_i2c7; 59 extern struct platform_device s3c_device_iis; 60 extern struct platform_device s3c_device_lcd; 61 extern struct platform_device s3c_device_nand; 62 extern struct platform_device s3c_device_ohci; 63 extern struct platform_device s3c_device_onenand; 64 extern struct platform_device s3c_device_rtc; 65 extern struct platform_device s3c_device_sdi; 66 extern struct platform_device s3c_device_spi0; 67 extern struct platform_device s3c_device_spi1; 68 extern struct platform_device s3c_device_ts; 69 extern struct platform_device s3c_device_timer[]; 70 extern struct platform_device s3c_device_usbgadget; 71 extern struct platform_device s3c_device_usb_hsotg; 72 extern struct platform_device s3c_device_usb_hsudc; 73 extern struct platform_device s3c_device_wdt; 74 75 extern struct platform_device samsung_asoc_idma; 76 extern struct platform_device samsung_device_keypad; 77 extern struct platform_device samsung_device_pwm; 78 79 /* s3c2440 specific devices */ 80 81 #ifdef CONFIG_CPU_S3C2440 82 83 extern struct platform_device s3c_device_camif; 84 extern struct platform_device s3c_device_ac97; 85 86 #endif 87 88 /** 89 * s3c_set_platdata() - helper for setting platform data 90 * @pd: The default platform data for this device. 91 * @pdsize: The size of the platform data. 92 * @pdev: Pointer to the device to fill in. 93 * 94 * This helper replaces a number of calls that copy and then set the 95 * platform data of the device. 96 */ 97 extern void *s3c_set_platdata(void *pd, size_t pdsize, 98 struct platform_device *pdev); 99 100 #endif /* __PLAT_DEVS_H */ 101