setup.c 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /*
  2. * arch/sh/boards/se/73180/setup.c
  3. *
  4. * Copyright (C) 2003 Takashi Kusuda <kusuda-takashi@hitachi-ul.co.jp>
  5. * Based on arch/sh/setup_shmse.c
  6. *
  7. * Modified for 73180 SolutionEngine
  8. * by YOSHII Takashi <yoshii-takashi@hitachi-ul.co.jp>
  9. *
  10. */
  11. #include <linux/init.h>
  12. #include <linux/platform_device.h>
  13. #include <asm/machvec.h>
  14. #include <asm/se73180.h>
  15. #include <asm/irq.h>
  16. void init_73180se_IRQ(void);
  17. static struct resource heartbeat_resources[] = {
  18. [0] = {
  19. .start = PA_LED,
  20. .end = PA_LED + 8 - 1,
  21. .flags = IORESOURCE_MEM,
  22. },
  23. };
  24. static struct platform_device heartbeat_device = {
  25. .name = "heartbeat",
  26. .id = -1,
  27. .num_resources = ARRAY_SIZE(heartbeat_resources),
  28. .resource = heartbeat_resources,
  29. };
  30. static struct platform_device *se73180_devices[] __initdata = {
  31. &heartbeat_device,
  32. };
  33. static int __init se73180_devices_setup(void)
  34. {
  35. return platform_add_devices(sh7343se_platform_devices,
  36. ARRAY_SIZE(sh7343se_platform_devices));
  37. }
  38. __initcall(se73180_devices_setup);
  39. /*
  40. * The Machine Vector
  41. */
  42. struct sh_machine_vector mv_73180se __initmv = {
  43. .mv_name = "SolutionEngine 73180",
  44. .mv_nr_irqs = 108,
  45. .mv_inb = sh73180se_inb,
  46. .mv_inw = sh73180se_inw,
  47. .mv_inl = sh73180se_inl,
  48. .mv_outb = sh73180se_outb,
  49. .mv_outw = sh73180se_outw,
  50. .mv_outl = sh73180se_outl,
  51. .mv_inb_p = sh73180se_inb_p,
  52. .mv_inw_p = sh73180se_inw,
  53. .mv_inl_p = sh73180se_inl,
  54. .mv_outb_p = sh73180se_outb_p,
  55. .mv_outw_p = sh73180se_outw,
  56. .mv_outl_p = sh73180se_outl,
  57. .mv_insb = sh73180se_insb,
  58. .mv_insw = sh73180se_insw,
  59. .mv_insl = sh73180se_insl,
  60. .mv_outsb = sh73180se_outsb,
  61. .mv_outsw = sh73180se_outsw,
  62. .mv_outsl = sh73180se_outsl,
  63. .mv_init_irq = init_73180se_IRQ,
  64. .mv_irq_demux = shmse_irq_demux,
  65. };
  66. ALIAS_MV(73180se)