setup.c 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /*
  2. * linux/arch/sh/boards/systemh/setup.c
  3. *
  4. * Copyright (C) 2000 Kazumoto Kojima
  5. * Copyright (C) 2003 Paul Mundt
  6. *
  7. * Hitachi SystemH Support.
  8. *
  9. * Modified for 7751 SystemH by Jonathan Short.
  10. *
  11. * Rewritten for 2.6 by Paul Mundt.
  12. *
  13. * This file is subject to the terms and conditions of the GNU General Public
  14. * License. See the file "COPYING" in the main directory of this archive
  15. * for more details.
  16. */
  17. #include <linux/init.h>
  18. #include <asm/mach/7751systemh.h>
  19. #include <asm/mach/io.h>
  20. #include <asm/machvec.h>
  21. extern void make_systemh_irq(unsigned int irq);
  22. const char *get_system_type(void)
  23. {
  24. return "7751 SystemH";
  25. }
  26. /*
  27. * Initialize IRQ setting
  28. */
  29. void __init init_7751systemh_IRQ(void)
  30. {
  31. /* make_ipr_irq(10, BCR_ILCRD, 1, 0x0f-10); LAN */
  32. /* make_ipr_irq(14, BCR_ILCRA, 2, 0x0f-4); */
  33. make_systemh_irq(0xb); /* Ethernet interrupt */
  34. }
  35. struct sh_machine_vector mv_7751systemh __initmv = {
  36. .mv_nr_irqs = 72,
  37. .mv_inb = sh7751systemh_inb,
  38. .mv_inw = sh7751systemh_inw,
  39. .mv_inl = sh7751systemh_inl,
  40. .mv_outb = sh7751systemh_outb,
  41. .mv_outw = sh7751systemh_outw,
  42. .mv_outl = sh7751systemh_outl,
  43. .mv_inb_p = sh7751systemh_inb_p,
  44. .mv_inw_p = sh7751systemh_inw,
  45. .mv_inl_p = sh7751systemh_inl,
  46. .mv_outb_p = sh7751systemh_outb_p,
  47. .mv_outw_p = sh7751systemh_outw,
  48. .mv_outl_p = sh7751systemh_outl,
  49. .mv_insb = sh7751systemh_insb,
  50. .mv_insw = sh7751systemh_insw,
  51. .mv_insl = sh7751systemh_insl,
  52. .mv_outsb = sh7751systemh_outsb,
  53. .mv_outsw = sh7751systemh_outsw,
  54. .mv_outsl = sh7751systemh_outsl,
  55. .mv_readb = sh7751systemh_readb,
  56. .mv_readw = sh7751systemh_readw,
  57. .mv_readl = sh7751systemh_readl,
  58. .mv_writeb = sh7751systemh_writeb,
  59. .mv_writew = sh7751systemh_writew,
  60. .mv_writel = sh7751systemh_writel,
  61. .mv_isa_port2addr = sh7751systemh_isa_port2addr,
  62. .mv_init_irq = init_7751systemh_IRQ,
  63. };
  64. ALIAS_MV(7751systemh)
  65. int __init platform_setup(void)
  66. {
  67. return 0;
  68. }