dev-ide.c 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* linux/arch/arm/plat-samsung/dev-ide.c
  2. *
  3. * Copyright (c) 2010 Samsung Electronics Co., Ltd.
  4. * http://www.samsung.com
  5. *
  6. * Samsung CF-ATA device definition.
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License version 2 as
  10. * published by the Free Software Foundation.
  11. */
  12. #include <linux/kernel.h>
  13. #include <linux/interrupt.h>
  14. #include <linux/platform_device.h>
  15. #include <mach/map.h>
  16. #include <plat/ata.h>
  17. #include <plat/devs.h>
  18. static struct resource s3c_cfcon_resource[] = {
  19. [0] = {
  20. .start = SAMSUNG_PA_CFCON,
  21. .end = SAMSUNG_PA_CFCON + SZ_16K - 1,
  22. .flags = IORESOURCE_MEM,
  23. },
  24. [1] = {
  25. .start = IRQ_CFCON,
  26. .end = IRQ_CFCON,
  27. .flags = IORESOURCE_IRQ,
  28. },
  29. };
  30. struct platform_device s3c_device_cfcon = {
  31. .id = 0,
  32. .num_resources = ARRAY_SIZE(s3c_cfcon_resource),
  33. .resource = s3c_cfcon_resource,
  34. };
  35. void s3c_ide_set_platdata(struct s3c_ide_platdata *pdata)
  36. {
  37. s3c_set_platdata(pdata, sizeof(struct s3c_ide_platdata),
  38. &s3c_device_cfcon);
  39. }