2010-01-29 17:02:12 +08:00
|
|
|
/* arch/arm/plat-samsung/include/plat/devs.h
|
2011-02-14 15:22:36 +08:00
|
|
|
*
|
|
|
|
* Copyright (c) 2011 Samsung Electronics Co., Ltd.
|
|
|
|
* http://www.samsung.com
|
2005-04-17 06:20:36 +08: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.
|
|
|
|
*/
|
2011-06-22 17:03:21 +08:00
|
|
|
|
|
|
|
#ifndef __PLAT_DEVS_H
|
|
|
|
#define __PLAT_DEVS_H __FILE__
|
|
|
|
|
2005-10-30 02:07:23 +08:00
|
|
|
#include <linux/platform_device.h>
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2006-06-19 06:04:05 +08:00
|
|
|
struct s3c24xx_uart_resources {
|
|
|
|
struct resource *resources;
|
|
|
|
unsigned long nr_resources;
|
|
|
|
};
|
|
|
|
|
|
|
|
extern struct s3c24xx_uart_resources s3c2410_uart_resources[];
|
2008-10-21 21:06:46 +08:00
|
|
|
extern struct s3c24xx_uart_resources s3c64xx_uart_resources[];
|
2010-01-14 07:23:53 +08:00
|
|
|
extern struct s3c24xx_uart_resources s5p_uart_resources[];
|
2012-02-10 10:57:53 +08:00
|
|
|
extern struct s3c24xx_uart_resources exynos4_uart_resources[];
|
|
|
|
extern struct s3c24xx_uart_resources exynos5_uart_resources[];
|
2006-06-19 06:04:05 +08:00
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
extern struct platform_device *s3c24xx_uart_devs[];
|
2006-06-19 06:04:05 +08:00
|
|
|
extern struct platform_device *s3c24xx_uart_src[];
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2011-10-03 08:47:58 +08:00
|
|
|
extern struct platform_device s3c64xx_device_ac97;
|
2009-06-04 03:08:38 +08:00
|
|
|
extern struct platform_device s3c64xx_device_iis0;
|
|
|
|
extern struct platform_device s3c64xx_device_iis1;
|
2009-06-04 03:08:39 +08:00
|
|
|
extern struct platform_device s3c64xx_device_iisv4;
|
2011-10-03 08:47:58 +08:00
|
|
|
extern struct platform_device s3c64xx_device_onenand1;
|
2009-11-17 15:53:56 +08:00
|
|
|
extern struct platform_device s3c64xx_device_pcm0;
|
|
|
|
extern struct platform_device s3c64xx_device_pcm1;
|
2011-10-03 08:47:58 +08:00
|
|
|
extern struct platform_device s3c64xx_device_spi0;
|
|
|
|
extern struct platform_device s3c64xx_device_spi1;
|
2011-12-23 09:14:31 +08:00
|
|
|
extern struct platform_device s3c64xx_device_spi2;
|
2009-11-17 15:53:56 +08:00
|
|
|
|
2011-10-03 08:47:58 +08:00
|
|
|
extern struct platform_device s3c_device_adc;
|
|
|
|
extern struct platform_device s3c_device_cfcon;
|
2008-11-19 23:41:31 +08:00
|
|
|
extern struct platform_device s3c_device_fb;
|
2011-10-03 08:47:58 +08:00
|
|
|
extern struct platform_device s3c_device_hwmon;
|
|
|
|
extern struct platform_device s3c_device_hsmmc0;
|
|
|
|
extern struct platform_device s3c_device_hsmmc1;
|
|
|
|
extern struct platform_device s3c_device_hsmmc2;
|
|
|
|
extern struct platform_device s3c_device_hsmmc3;
|
2008-11-01 00:14:40 +08:00
|
|
|
extern struct platform_device s3c_device_i2c0;
|
2008-11-01 00:14:55 +08:00
|
|
|
extern struct platform_device s3c_device_i2c1;
|
2010-05-20 14:13:06 +08:00
|
|
|
extern struct platform_device s3c_device_i2c2;
|
2010-10-12 06:49:24 +08: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;
|
2011-10-03 08:47:58 +08:00
|
|
|
extern struct platform_device s3c_device_iis;
|
|
|
|
extern struct platform_device s3c_device_lcd;
|
|
|
|
extern struct platform_device s3c_device_nand;
|
|
|
|
extern struct platform_device s3c_device_ohci;
|
|
|
|
extern struct platform_device s3c_device_onenand;
|
2005-04-17 06:20:36 +08:00
|
|
|
extern struct platform_device s3c_device_rtc;
|
|
|
|
extern struct platform_device s3c_device_sdi;
|
|
|
|
extern struct platform_device s3c_device_spi0;
|
|
|
|
extern struct platform_device s3c_device_spi1;
|
2011-10-03 08:47:58 +08:00
|
|
|
extern struct platform_device s3c_device_ts;
|
|
|
|
extern struct platform_device s3c_device_timer[];
|
2005-04-17 06:20:36 +08:00
|
|
|
extern struct platform_device s3c_device_usbgadget;
|
2009-05-17 05:05:27 +08:00
|
|
|
extern struct platform_device s3c_device_usb_hsotg;
|
2011-10-03 08:47:58 +08:00
|
|
|
extern struct platform_device s3c_device_usb_hsudc;
|
|
|
|
extern struct platform_device s3c_device_wdt;
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2011-10-03 08:47:58 +08:00
|
|
|
extern struct platform_device s5p_device_ehci;
|
|
|
|
extern struct platform_device s5p_device_fimc0;
|
|
|
|
extern struct platform_device s5p_device_fimc1;
|
|
|
|
extern struct platform_device s5p_device_fimc2;
|
|
|
|
extern struct platform_device s5p_device_fimc3;
|
2011-10-13 14:41:51 +08:00
|
|
|
extern struct platform_device s5p_device_fimc_md;
|
2012-03-10 18:45:42 +08:00
|
|
|
extern struct platform_device s5p_device_jpeg;
|
2011-12-27 16:16:44 +08:00
|
|
|
extern struct platform_device s5p_device_g2d;
|
2011-10-03 08:47:58 +08:00
|
|
|
extern struct platform_device s5p_device_fimd0;
|
|
|
|
extern struct platform_device s5p_device_hdmi;
|
|
|
|
extern struct platform_device s5p_device_i2c_hdmiphy;
|
|
|
|
extern struct platform_device s5p_device_mfc;
|
|
|
|
extern struct platform_device s5p_device_mfc_l;
|
|
|
|
extern struct platform_device s5p_device_mfc_r;
|
|
|
|
extern struct platform_device s5p_device_mipi_csis0;
|
|
|
|
extern struct platform_device s5p_device_mipi_csis1;
|
|
|
|
extern struct platform_device s5p_device_mixer;
|
|
|
|
extern struct platform_device s5p_device_onenand;
|
|
|
|
extern struct platform_device s5p_device_sdo;
|
2010-11-19 07:49:44 +08:00
|
|
|
|
2010-05-18 15:03:02 +08:00
|
|
|
extern struct platform_device s5p6440_device_iis;
|
2011-10-03 08:47:58 +08:00
|
|
|
extern struct platform_device s5p6440_device_pcm;
|
2010-05-18 15:03:02 +08:00
|
|
|
|
2010-09-08 18:21:23 +08:00
|
|
|
extern struct platform_device s5p6450_device_iis0;
|
2010-12-21 08:44:42 +08:00
|
|
|
extern struct platform_device s5p6450_device_iis1;
|
|
|
|
extern struct platform_device s5p6450_device_iis2;
|
2010-09-08 18:21:23 +08:00
|
|
|
extern struct platform_device s5p6450_device_pcm0;
|
|
|
|
|
2011-10-03 08:47:58 +08:00
|
|
|
|
2010-05-18 15:02:39 +08:00
|
|
|
extern struct platform_device s5pc100_device_ac97;
|
|
|
|
extern struct platform_device s5pc100_device_iis0;
|
|
|
|
extern struct platform_device s5pc100_device_iis1;
|
|
|
|
extern struct platform_device s5pc100_device_iis2;
|
2011-10-03 08:47:58 +08:00
|
|
|
extern struct platform_device s5pc100_device_pcm0;
|
|
|
|
extern struct platform_device s5pc100_device_pcm1;
|
2010-10-14 09:35:23 +08:00
|
|
|
extern struct platform_device s5pc100_device_spdif;
|
2010-05-18 15:02:39 +08:00
|
|
|
|
2011-10-03 08:47:58 +08:00
|
|
|
extern struct platform_device s5pv210_device_ac97;
|
|
|
|
extern struct platform_device s5pv210_device_iis0;
|
|
|
|
extern struct platform_device s5pv210_device_iis1;
|
|
|
|
extern struct platform_device s5pv210_device_iis2;
|
|
|
|
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_spdif;
|
2011-04-08 12:22:09 +08:00
|
|
|
|
2011-10-03 08:47:58 +08:00
|
|
|
extern struct platform_device exynos4_device_ac97;
|
|
|
|
extern struct platform_device exynos4_device_ahci;
|
|
|
|
extern struct platform_device exynos4_device_i2s0;
|
|
|
|
extern struct platform_device exynos4_device_i2s1;
|
|
|
|
extern struct platform_device exynos4_device_i2s2;
|
2011-12-23 10:19:36 +08:00
|
|
|
extern struct platform_device exynos4_device_ohci;
|
2011-10-03 08:47:58 +08:00
|
|
|
extern struct platform_device exynos4_device_pcm0;
|
|
|
|
extern struct platform_device exynos4_device_pcm1;
|
|
|
|
extern struct platform_device exynos4_device_pcm2;
|
|
|
|
extern struct platform_device exynos4_device_spdif;
|
2011-01-13 12:40:29 +08:00
|
|
|
|
2011-10-03 08:47:58 +08:00
|
|
|
extern struct platform_device samsung_asoc_idma;
|
|
|
|
extern struct platform_device samsung_device_keypad;
|
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
/* s3c2440 specific devices */
|
|
|
|
|
|
|
|
#ifdef CONFIG_CPU_S3C2440
|
|
|
|
|
|
|
|
extern struct platform_device s3c_device_camif;
|
2009-08-06 01:29:57 +08:00
|
|
|
extern struct platform_device s3c_device_ac97;
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
#endif
|
2010-06-10 11:57:15 +08: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);
|
2011-06-22 17:03:21 +08:00
|
|
|
|
|
|
|
#endif /* __PLAT_DEVS_H */
|