spear300.c 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * arch/arm/mach-spear3xx/spear300.c
  3. *
  4. * SPEAr300 machine source file
  5. *
  6. * Copyright (C) 2009 ST Microelectronics
  7. * Viresh Kumar<viresh.kumar@st.com>
  8. *
  9. * This file is licensed under the terms of the GNU General Public
  10. * License version 2. This program is licensed "as is" without any
  11. * warranty of any kind, whether express or implied.
  12. */
  13. #include <linux/types.h>
  14. #include <linux/amba/pl061.h>
  15. #include <linux/ptrace.h>
  16. #include <asm/irq.h>
  17. #include <mach/generic.h>
  18. #include <mach/spear.h>
  19. /* Add spear300 specific devices here */
  20. /* arm gpio1 device registeration */
  21. static struct pl061_platform_data gpio1_plat_data = {
  22. .gpio_base = 8,
  23. .irq_base = SPEAR_GPIO1_INT_BASE,
  24. };
  25. struct amba_device gpio1_device = {
  26. .dev = {
  27. .init_name = "gpio1",
  28. .platform_data = &gpio1_plat_data,
  29. },
  30. .res = {
  31. .start = SPEAR300_GPIO_BASE,
  32. .end = SPEAR300_GPIO_BASE + SPEAR300_GPIO_SIZE - 1,
  33. .flags = IORESOURCE_MEM,
  34. },
  35. .irq = {IRQ_GEN_RAS_1, NO_IRQ},
  36. };
  37. void __init spear300_init(void)
  38. {
  39. /* call spear3xx family common init function */
  40. spear3xx_init();
  41. }