dev-wdt.c 912 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* linux/arch/arm/plat-samsung/dev-wdt.c
  2. *
  3. * Copyright (c) 2004 Simtec Electronics
  4. * Ben Dooks <ben@simtec.co.uk>
  5. *
  6. * S3C series device definition for the watchdog timer
  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/platform_device.h>
  14. #include <mach/irqs.h>
  15. #include <mach/map.h>
  16. #include <plat/devs.h>
  17. static struct resource s3c_wdt_resource[] = {
  18. [0] = {
  19. .start = S3C_PA_WDT,
  20. .end = S3C_PA_WDT + SZ_1K,
  21. .flags = IORESOURCE_MEM,
  22. },
  23. [1] = {
  24. .start = IRQ_WDT,
  25. .end = IRQ_WDT,
  26. .flags = IORESOURCE_IRQ,
  27. }
  28. };
  29. struct platform_device s3c_device_wdt = {
  30. .name = "s3c2410-wdt",
  31. .id = -1,
  32. .num_resources = ARRAY_SIZE(s3c_wdt_resource),
  33. .resource = s3c_wdt_resource,
  34. };
  35. EXPORT_SYMBOL(s3c_device_wdt);