setup.c 994 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * arch/sh/boards/titan/setup.c - Setup for Titan
  3. *
  4. * Copyright (C) 2006 Jamie Lenehan
  5. *
  6. * This file is subject to the terms and conditions of the GNU General Public
  7. * License. See the file "COPYING" in the main directory of this archive
  8. * for more details.
  9. */
  10. #include <linux/init.h>
  11. #include <linux/irq.h>
  12. #include <mach/titan.h>
  13. #include <asm/io.h>
  14. static void __init init_titan_irq(void)
  15. {
  16. /* enable individual interrupt mode for externals */
  17. plat_irq_setup_pins(IRQ_MODE_IRQ);
  18. }
  19. static struct sh_machine_vector mv_titan __initmv = {
  20. .mv_name = "Titan",
  21. .mv_inb = titan_inb,
  22. .mv_inw = titan_inw,
  23. .mv_inl = titan_inl,
  24. .mv_outb = titan_outb,
  25. .mv_outw = titan_outw,
  26. .mv_outl = titan_outl,
  27. .mv_inb_p = titan_inb_p,
  28. .mv_inw_p = titan_inw,
  29. .mv_inl_p = titan_inl,
  30. .mv_outb_p = titan_outb_p,
  31. .mv_outw_p = titan_outw,
  32. .mv_outl_p = titan_outl,
  33. .mv_insl = titan_insl,
  34. .mv_outsl = titan_outsl,
  35. .mv_ioport_map = titan_ioport_map,
  36. .mv_init_irq = init_titan_irq,
  37. };