dev-hsmmc.c 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /* linux/arch/arm/plat-s3c/dev-hsmmc.c
  2. *
  3. * Copyright (c) 2008 Simtec Electronics
  4. * Ben Dooks <ben@simtec.co.uk>
  5. * http://armlinux.simtec.co.uk/
  6. *
  7. * S3C series device definition for hsmmc devices
  8. *
  9. * This program is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License version 2 as
  11. * published by the Free Software Foundation.
  12. */
  13. #include <linux/kernel.h>
  14. #include <linux/platform_device.h>
  15. #include <mach/map.h>
  16. #include <plat/devs.h>
  17. #include <plat/cpu.h>
  18. #define S3C_SZ_HSMMC (0x1000)
  19. static struct resource s3c_hsmmc_resource[] = {
  20. [0] = {
  21. .start = S3C_PA_HSMMC0,
  22. .end = S3C_PA_HSMMC0 + S3C_SZ_HSMMC - 1,
  23. .flags = IORESOURCE_MEM,
  24. },
  25. [1] = {
  26. .start = IRQ_HSMMC0,
  27. .end = IRQ_HSMMC0,
  28. .flags = IORESOURCE_IRQ,
  29. }
  30. };
  31. static u64 s3c_device_hsmmc_dmamask = 0xffffffffUL;
  32. struct platform_device s3c_device_hsmmc0 = {
  33. .name = "s3c-sdhci",
  34. .id = 0,
  35. .num_resources = ARRAY_SIZE(s3c_hsmmc_resource),
  36. .resource = s3c_hsmmc_resource,
  37. .dev = {
  38. .dma_mask = &s3c_device_hsmmc_dmamask,
  39. .coherent_dma_mask = 0xffffffffUL
  40. }
  41. };