devs.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /* SPDX-License-Identifier: GPL-2.0 */
  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. #ifndef __PLAT_DEVS_H
  12. #define __PLAT_DEVS_H __FILE__
  13. #include <linux/platform_device.h>
  14. struct s3c24xx_uart_resources {
  15. struct resource *resources;
  16. unsigned long nr_resources;
  17. };
  18. extern struct s3c24xx_uart_resources s3c2410_uart_resources[];
  19. extern struct s3c24xx_uart_resources s3c64xx_uart_resources[];
  20. extern struct platform_device *s3c24xx_uart_devs[];
  21. extern struct platform_device *s3c24xx_uart_src[];
  22. extern struct platform_device s3c64xx_device_iis0;
  23. extern struct platform_device s3c64xx_device_iis1;
  24. extern struct platform_device s3c64xx_device_spi0;
  25. extern struct platform_device s3c_device_fb;
  26. extern struct platform_device s3c_device_hsmmc0;
  27. extern struct platform_device s3c_device_hsmmc1;
  28. extern struct platform_device s3c_device_hsmmc2;
  29. extern struct platform_device s3c_device_hsmmc3;
  30. extern struct platform_device s3c_device_i2c0;
  31. extern struct platform_device s3c_device_i2c1;
  32. extern struct platform_device s3c_device_ohci;
  33. extern struct platform_device s3c_device_usb_hsotg;
  34. extern struct platform_device samsung_device_keypad;
  35. extern struct platform_device samsung_device_pwm;
  36. /**
  37. * s3c_set_platdata() - helper for setting platform data
  38. * @pd: The default platform data for this device.
  39. * @pdsize: The size of the platform data.
  40. * @pdev: Pointer to the device to fill in.
  41. *
  42. * This helper replaces a number of calls that copy and then set the
  43. * platform data of the device.
  44. */
  45. extern void *s3c_set_platdata(void *pd, size_t pdsize,
  46. struct platform_device *pdev);
  47. #endif /* __PLAT_DEVS_H */