2010-01-29 09:02:12 +00:00
|
|
|
/* arch/arm/plat-samsung/include/plat/devs.h
|
2005-04-16 22:20:36 +00:00
|
|
|
*
|
|
|
|
* Copyright (c) 2004 Simtec Electronics
|
|
|
|
* Ben Dooks <ben@simtec.co.uk>
|
|
|
|
*
|
|
|
|
* Header file for s3c2410 standard platform devices
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*/
|
2005-10-29 18:07:23 +00:00
|
|
|
#include <linux/platform_device.h>
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2006-06-18 22:04:05 +00:00
|
|
|
struct s3c24xx_uart_resources {
|
|
|
|
struct resource *resources;
|
|
|
|
unsigned long nr_resources;
|
|
|
|
};
|
|
|
|
|
|
|
|
extern struct s3c24xx_uart_resources s3c2410_uart_resources[];
|
2008-10-21 13:06:46 +00:00
|
|
|
extern struct s3c24xx_uart_resources s3c64xx_uart_resources[];
|
2010-01-13 23:23:53 +00:00
|
|
|
extern struct s3c24xx_uart_resources s5p_uart_resources[];
|
2006-06-18 22:04:05 +00:00
|
|
|
|
2005-04-16 22:20:36 +00:00
|
|
|
extern struct platform_device *s3c24xx_uart_devs[];
|
2006-06-18 22:04:05 +00:00
|
|
|
extern struct platform_device *s3c24xx_uart_src[];
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2008-07-01 12:17:24 +00:00
|
|
|
extern struct platform_device s3c_device_timer[];
|
|
|
|
|
2009-06-03 19:08:38 +00:00
|
|
|
extern struct platform_device s3c64xx_device_iis0;
|
|
|
|
extern struct platform_device s3c64xx_device_iis1;
|
2009-06-03 19:08:39 +00:00
|
|
|
extern struct platform_device s3c64xx_device_iisv4;
|
2009-06-03 19:08:38 +00:00
|
|
|
|
2010-01-18 08:32:02 +00:00
|
|
|
extern struct platform_device s3c64xx_device_spi0;
|
|
|
|
extern struct platform_device s3c64xx_device_spi1;
|
|
|
|
|
2010-03-17 20:15:21 +00:00
|
|
|
extern struct platform_device s3c_device_pcm;
|
|
|
|
|
2009-11-17 07:53:56 +00:00
|
|
|
extern struct platform_device s3c64xx_device_pcm0;
|
|
|
|
extern struct platform_device s3c64xx_device_pcm1;
|
|
|
|
|
2010-02-12 10:38:51 +00:00
|
|
|
extern struct platform_device s3c64xx_device_ac97;
|
|
|
|
|
2009-12-23 19:25:05 +00:00
|
|
|
extern struct platform_device s3c_device_ts;
|
2010-02-12 10:38:51 +00:00
|
|
|
|
2008-11-19 15:41:31 +00:00
|
|
|
extern struct platform_device s3c_device_fb;
|
2009-11-23 00:13:39 +00:00
|
|
|
extern struct platform_device s3c_device_ohci;
|
2005-04-16 22:20:36 +00:00
|
|
|
extern struct platform_device s3c_device_lcd;
|
|
|
|
extern struct platform_device s3c_device_wdt;
|
2008-10-31 16:14:40 +00:00
|
|
|
extern struct platform_device s3c_device_i2c0;
|
2008-10-31 16:14:55 +00:00
|
|
|
extern struct platform_device s3c_device_i2c1;
|
2010-05-20 06:13:06 +00:00
|
|
|
extern struct platform_device s3c_device_i2c2;
|
2010-10-11 22:49:24 +00:00
|
|
|
extern struct platform_device s3c_device_i2c3;
|
|
|
|
extern struct platform_device s3c_device_i2c4;
|
|
|
|
extern struct platform_device s3c_device_i2c5;
|
|
|
|
extern struct platform_device s3c_device_i2c6;
|
|
|
|
extern struct platform_device s3c_device_i2c7;
|
2005-04-16 22:20:36 +00:00
|
|
|
extern struct platform_device s3c_device_rtc;
|
|
|
|
extern struct platform_device s3c_device_adc;
|
|
|
|
extern struct platform_device s3c_device_sdi;
|
2009-06-23 15:30:02 +00:00
|
|
|
extern struct platform_device s3c_device_iis;
|
2009-04-17 11:36:44 +00:00
|
|
|
extern struct platform_device s3c_device_hwmon;
|
2008-10-31 16:14:28 +00:00
|
|
|
extern struct platform_device s3c_device_hsmmc0;
|
|
|
|
extern struct platform_device s3c_device_hsmmc1;
|
|
|
|
extern struct platform_device s3c_device_hsmmc2;
|
2010-06-10 06:22:16 +00:00
|
|
|
extern struct platform_device s3c_device_hsmmc3;
|
2010-06-08 07:38:20 +00:00
|
|
|
extern struct platform_device s3c_device_cfcon;
|
2005-04-16 22:20:36 +00:00
|
|
|
|
|
|
|
extern struct platform_device s3c_device_spi0;
|
|
|
|
extern struct platform_device s3c_device_spi1;
|
|
|
|
|
2010-05-18 07:43:34 +00:00
|
|
|
extern struct platform_device s5pc100_device_spi0;
|
|
|
|
extern struct platform_device s5pc100_device_spi1;
|
|
|
|
extern struct platform_device s5pc100_device_spi2;
|
2010-05-18 07:43:37 +00:00
|
|
|
extern struct platform_device s5pv210_device_spi0;
|
|
|
|
extern struct platform_device s5pv210_device_spi1;
|
2010-05-18 07:43:40 +00:00
|
|
|
extern struct platform_device s5p6440_device_spi0;
|
|
|
|
extern struct platform_device s5p6440_device_spi1;
|
2010-09-08 10:21:23 +00:00
|
|
|
extern struct platform_device s5p6450_device_spi0;
|
|
|
|
extern struct platform_device s5p6450_device_spi1;
|
2010-05-18 07:43:34 +00:00
|
|
|
|
2009-07-18 09:12:25 +00:00
|
|
|
extern struct platform_device s3c_device_hwmon;
|
|
|
|
|
2005-04-16 22:20:36 +00:00
|
|
|
extern struct platform_device s3c_device_nand;
|
2010-05-20 06:59:05 +00:00
|
|
|
extern struct platform_device s3c_device_onenand;
|
|
|
|
extern struct platform_device s3c64xx_device_onenand1;
|
2010-08-27 04:56:54 +00:00
|
|
|
extern struct platform_device s5p_device_onenand;
|
2005-04-16 22:20:36 +00:00
|
|
|
|
|
|
|
extern struct platform_device s3c_device_usbgadget;
|
2009-05-16 21:05:27 +00:00
|
|
|
extern struct platform_device s3c_device_usb_hsotg;
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2010-05-18 07:02:26 +00:00
|
|
|
extern struct platform_device s5pv210_device_ac97;
|
|
|
|
extern struct platform_device s5pv210_device_pcm0;
|
|
|
|
extern struct platform_device s5pv210_device_pcm1;
|
|
|
|
extern struct platform_device s5pv210_device_pcm2;
|
|
|
|
extern struct platform_device s5pv210_device_iis0;
|
|
|
|
extern struct platform_device s5pv210_device_iis1;
|
|
|
|
extern struct platform_device s5pv210_device_iis2;
|
2010-10-14 01:35:24 +00:00
|
|
|
extern struct platform_device s5pv210_device_spdif;
|
2010-05-18 07:02:26 +00:00
|
|
|
|
2010-11-18 23:49:44 +00:00
|
|
|
extern struct platform_device s5pv310_device_ac97;
|
|
|
|
extern struct platform_device s5pv310_device_pcm0;
|
|
|
|
extern struct platform_device s5pv310_device_pcm1;
|
|
|
|
extern struct platform_device s5pv310_device_pcm2;
|
|
|
|
extern struct platform_device s5pv310_device_i2s0;
|
|
|
|
extern struct platform_device s5pv310_device_i2s1;
|
|
|
|
extern struct platform_device s5pv310_device_i2s2;
|
|
|
|
extern struct platform_device s5pv310_device_spdif;
|
2010-12-31 01:52:05 +00:00
|
|
|
extern struct platform_device s5pv310_device_pd[];
|
2010-11-18 23:49:44 +00:00
|
|
|
|
2010-05-18 07:02:50 +00:00
|
|
|
extern struct platform_device s5p6442_device_pcm0;
|
|
|
|
extern struct platform_device s5p6442_device_pcm1;
|
|
|
|
extern struct platform_device s5p6442_device_iis0;
|
|
|
|
extern struct platform_device s5p6442_device_iis1;
|
2010-05-18 07:43:45 +00:00
|
|
|
extern struct platform_device s5p6442_device_spi;
|
2010-05-18 07:02:50 +00:00
|
|
|
|
2010-05-18 07:03:02 +00:00
|
|
|
extern struct platform_device s5p6440_device_pcm;
|
|
|
|
extern struct platform_device s5p6440_device_iis;
|
|
|
|
|
2010-09-08 10:21:23 +00:00
|
|
|
extern struct platform_device s5p6450_device_iis0;
|
2010-12-21 00:44:42 +00:00
|
|
|
extern struct platform_device s5p6450_device_iis1;
|
|
|
|
extern struct platform_device s5p6450_device_iis2;
|
2010-09-08 10:21:23 +00:00
|
|
|
extern struct platform_device s5p6450_device_pcm0;
|
|
|
|
|
2010-05-18 07:02:39 +00:00
|
|
|
extern struct platform_device s5pc100_device_ac97;
|
|
|
|
extern struct platform_device s5pc100_device_pcm0;
|
|
|
|
extern struct platform_device s5pc100_device_pcm1;
|
|
|
|
extern struct platform_device s5pc100_device_iis0;
|
|
|
|
extern struct platform_device s5pc100_device_iis1;
|
|
|
|
extern struct platform_device s5pc100_device_iis2;
|
2010-10-14 01:35:23 +00:00
|
|
|
extern struct platform_device s5pc100_device_spdif;
|
2010-05-18 07:02:39 +00:00
|
|
|
|
2010-08-06 10:26:10 +00:00
|
|
|
extern struct platform_device samsung_device_keypad;
|
|
|
|
|
2010-08-05 09:16:31 +00:00
|
|
|
extern struct platform_device s5p_device_fimc0;
|
|
|
|
extern struct platform_device s5p_device_fimc1;
|
|
|
|
extern struct platform_device s5p_device_fimc2;
|
|
|
|
|
2010-12-17 06:08:07 +00:00
|
|
|
extern struct platform_device s5p_device_mipi_csis0;
|
|
|
|
extern struct platform_device s5p_device_mipi_csis1;
|
|
|
|
|
2005-04-16 22:20:36 +00:00
|
|
|
/* s3c2440 specific devices */
|
|
|
|
|
|
|
|
#ifdef CONFIG_CPU_S3C2440
|
|
|
|
|
|
|
|
extern struct platform_device s3c_device_camif;
|
2009-08-05 17:29:57 +00:00
|
|
|
extern struct platform_device s3c_device_ac97;
|
2005-04-16 22:20:36 +00:00
|
|
|
|
|
|
|
#endif
|
2010-06-10 03:57:15 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* s3c_set_platdata() - helper for setting platform data
|
|
|
|
* @pd: The default platform data for this device.
|
|
|
|
* @pdsize: The size of the platform data.
|
|
|
|
* @pdev: Pointer to the device to fill in.
|
|
|
|
*
|
|
|
|
* This helper replaces a number of calls that copy and then set the
|
|
|
|
* platform data of the device.
|
|
|
|
*/
|
|
|
|
extern void *s3c_set_platdata(void *pd, size_t pdsize,
|
|
|
|
struct platform_device *pdev);
|