s3c2440.c 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /* linux/arch/arm/mach-s3c2440/s3c2440.c
  2. *
  3. * Copyright (c) 2004-2006 Simtec Electronics
  4. * Ben Dooks <ben@simtec.co.uk>
  5. *
  6. * Samsung S3C2440 Mobile CPU support
  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/types.h>
  14. #include <linux/interrupt.h>
  15. #include <linux/list.h>
  16. #include <linux/timer.h>
  17. #include <linux/init.h>
  18. #include <linux/platform_device.h>
  19. #include <linux/serial_core.h>
  20. #include <linux/sysdev.h>
  21. #include <linux/gpio.h>
  22. #include <linux/clk.h>
  23. #include <linux/io.h>
  24. #include <asm/mach/arch.h>
  25. #include <asm/mach/map.h>
  26. #include <asm/mach/irq.h>
  27. #include <mach/hardware.h>
  28. #include <asm/irq.h>
  29. #include <plat/devs.h>
  30. #include <plat/cpu.h>
  31. #include <plat/s3c244x.h>
  32. #include <plat/gpio-core.h>
  33. #include <plat/gpio-cfg.h>
  34. #include <plat/gpio-cfg-helpers.h>
  35. static struct sys_device s3c2440_sysdev = {
  36. .cls = &s3c2440_sysclass,
  37. };
  38. int __init s3c2440_init(void)
  39. {
  40. printk("S3C2440: Initialising architecture\n");
  41. s3c24xx_gpiocfg_default.set_pull = s3c_gpio_setpull_1up;
  42. s3c24xx_gpiocfg_default.get_pull = s3c_gpio_getpull_1up;
  43. /* change irq for watchdog */
  44. s3c_device_wdt.resource[1].start = IRQ_S3C2440_WDT;
  45. s3c_device_wdt.resource[1].end = IRQ_S3C2440_WDT;
  46. /* register our system device for everything else */
  47. return sysdev_register(&s3c2440_sysdev);
  48. }