2017-12-25 20:54:35 +01:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
/*
|
2011-02-14 16:22:36 +09:00
|
|
|
* Copyright (c) 2011 Samsung Electronics Co., Ltd.
|
|
|
|
* http://www.samsung.com
|
2005-04-16 15:20:36 -07:00
|
|
|
*
|
|
|
|
* Copyright (c) 2004 Simtec Electronics
|
|
|
|
* Ben Dooks <ben@simtec.co.uk>
|
|
|
|
*
|
|
|
|
* Header file for s3c2410 standard platform devices
|
2017-12-25 20:54:35 +01:00
|
|
|
*/
|
2011-06-22 18:03:21 +09:00
|
|
|
|
|
|
|
#ifndef __PLAT_DEVS_H
|
|
|
|
#define __PLAT_DEVS_H __FILE__
|
|
|
|
|
2005-10-29 19:07:23 +01:00
|
|
|
#include <linux/platform_device.h>
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2006-06-18 23:04:05 +01:00
|
|
|
struct s3c24xx_uart_resources {
|
|
|
|
struct resource *resources;
|
|
|
|
unsigned long nr_resources;
|
|
|
|
};
|
|
|
|
|
|
|
|
extern struct s3c24xx_uart_resources s3c2410_uart_resources[];
|
2008-10-21 14:06:46 +01:00
|
|
|
extern struct s3c24xx_uart_resources s3c64xx_uart_resources[];
|
2006-06-18 23:04:05 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
extern struct platform_device *s3c24xx_uart_devs[];
|
2006-06-18 23:04:05 +01:00
|
|
|
extern struct platform_device *s3c24xx_uart_src[];
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2009-06-03 20:08:38 +01:00
|
|
|
extern struct platform_device s3c64xx_device_iis0;
|
|
|
|
extern struct platform_device s3c64xx_device_iis1;
|
2011-10-03 09:47:58 +09:00
|
|
|
extern struct platform_device s3c64xx_device_spi0;
|
2009-11-17 16:53:56 +09:00
|
|
|
|
2008-11-19 15:41:31 +00:00
|
|
|
extern struct platform_device s3c_device_fb;
|
2011-10-03 09:47:58 +09:00
|
|
|
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-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;
|
2011-10-03 09:47:58 +09:00
|
|
|
extern struct platform_device s3c_device_ohci;
|
2009-05-16 22:05:27 +01:00
|
|
|
extern struct platform_device s3c_device_usb_hsotg;
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2011-10-03 09:47:58 +09:00
|
|
|
extern struct platform_device samsung_device_keypad;
|
2013-04-12 21:17:21 +02:00
|
|
|
extern struct platform_device samsung_device_pwm;
|
2011-10-03 09:47:58 +09:00
|
|
|
|
2010-06-10 12:57:15 +09: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 18:03:21 +09:00
|
|
|
|
|
|
|
#endif /* __PLAT_DEVS_H */
|