se7780.h 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. #ifndef __ASM_SH_SE7780_H
  2. #define __ASM_SH_SE7780_H
  3. /*
  4. * linux/include/asm-sh/se7780.h
  5. *
  6. * Copyright (C) 2006,2007 Nobuhiro Iwamatsu
  7. *
  8. * Hitachi UL SolutionEngine 7780 Support.
  9. *
  10. * This file is subject to the terms and conditions of the GNU General Public
  11. * License. See the file "COPYING" in the main directory of this archive
  12. * for more details.
  13. */
  14. #include <linux/sh_intc.h>
  15. #include <asm/addrspace.h>
  16. /* Box specific addresses. */
  17. #define SE_AREA0_WIDTH 4 /* Area0: 32bit */
  18. #define PA_ROM 0xa0000000 /* EPROM */
  19. #define PA_ROM_SIZE 0x00400000 /* EPROM size 4M byte */
  20. #define PA_FROM 0xa1000000 /* Flash-ROM */
  21. #define PA_FROM_SIZE 0x01000000 /* Flash-ROM size 16M byte */
  22. #define PA_EXT1 0xa4000000
  23. #define PA_EXT1_SIZE 0x04000000
  24. #define PA_SM501 PA_EXT1 /* Graphic IC (SM501) */
  25. #define PA_SM501_SIZE PA_EXT1_SIZE /* Graphic IC (SM501) */
  26. #define PA_SDRAM 0xa8000000 /* DDR-SDRAM(Area2/3) 128MB */
  27. #define PA_SDRAM_SIZE 0x08000000
  28. #define PA_EXT4 0xb0000000
  29. #define PA_EXT4_SIZE 0x04000000
  30. #define PA_EXT_FLASH PA_EXT4 /* Expansion Flash-ROM */
  31. #define PA_PERIPHERAL PA_AREA6_IO /* SW6-6=ON */
  32. #define PA_LAN (PA_PERIPHERAL + 0) /* SMC LAN91C111 */
  33. #define PA_LED_DISP (PA_PERIPHERAL + 0x02000000) /* 8words LED Display */
  34. #define DISP_CHAR_RAM (7 << 3)
  35. #define DISP_SEL0_ADDR (DISP_CHAR_RAM + 0)
  36. #define DISP_SEL1_ADDR (DISP_CHAR_RAM + 1)
  37. #define DISP_SEL2_ADDR (DISP_CHAR_RAM + 2)
  38. #define DISP_SEL3_ADDR (DISP_CHAR_RAM + 3)
  39. #define DISP_SEL4_ADDR (DISP_CHAR_RAM + 4)
  40. #define DISP_SEL5_ADDR (DISP_CHAR_RAM + 5)
  41. #define DISP_SEL6_ADDR (DISP_CHAR_RAM + 6)
  42. #define DISP_SEL7_ADDR (DISP_CHAR_RAM + 7)
  43. #define DISP_UDC_RAM (5 << 3)
  44. #define PA_FPGA (PA_PERIPHERAL + 0x03000000) /* FPGA base address */
  45. /* FPGA register address and bit */
  46. #define FPGA_SFTRST (PA_FPGA + 0) /* Soft reset register */
  47. #define FPGA_INTMSK1 (PA_FPGA + 2) /* Interrupt Mask register 1 */
  48. #define FPGA_INTMSK2 (PA_FPGA + 4) /* Interrupt Mask register 2 */
  49. #define FPGA_INTSEL1 (PA_FPGA + 6) /* Interrupt select register 1 */
  50. #define FPGA_INTSEL2 (PA_FPGA + 8) /* Interrupt select register 2 */
  51. #define FPGA_INTSEL3 (PA_FPGA + 10) /* Interrupt select register 3 */
  52. #define FPGA_PCI_INTSEL1 (PA_FPGA + 12) /* PCI Interrupt select register 1 */
  53. #define FPGA_PCI_INTSEL2 (PA_FPGA + 14) /* PCI Interrupt select register 2 */
  54. #define FPGA_INTSET (PA_FPGA + 16) /* IRQ/IRL select register */
  55. #define FPGA_INTSTS1 (PA_FPGA + 18) /* Interrupt status register 1 */
  56. #define FPGA_INTSTS2 (PA_FPGA + 20) /* Interrupt status register 2 */
  57. #define FPGA_REQSEL (PA_FPGA + 22) /* REQ/GNT select register */
  58. #define FPGA_DBG_LED (PA_FPGA + 32) /* Debug LED(D-LED[8:1] */
  59. #define PA_LED FPGA_DBG_LED
  60. #define FPGA_IVDRID (PA_FPGA + 36) /* iVDR ID Register */
  61. #define FPGA_IVDRPW (PA_FPGA + 38) /* iVDR Power ON Register */
  62. #define FPGA_MMCID (PA_FPGA + 40) /* MMC ID Register */
  63. /* FPGA INTSEL position */
  64. /* INTSEL1 */
  65. #define IRQPOS_SMC91CX (0 * 4)
  66. #define IRQPOS_SM501 (1 * 4)
  67. /* INTSEL2 */
  68. #define IRQPOS_EXTINT1 (0 * 4)
  69. #define IRQPOS_EXTINT2 (1 * 4)
  70. #define IRQPOS_EXTINT3 (2 * 4)
  71. #define IRQPOS_EXTINT4 (3 * 4)
  72. /* INTSEL3 */
  73. #define IRQPOS_PCCPW (0 * 4)
  74. /* IDE interrupt */
  75. #define IRQ_IDE0 evt2irq(0xa60) /* iVDR */
  76. /* SMC interrupt */
  77. #define SMC_IRQ evt2irq(0x300)
  78. /* SM501 interrupt */
  79. #define SM501_IRQ evt2irq(0x200)
  80. /* interrupt pin */
  81. #define IRQPIN_EXTINT1 0 /* IRQ0 pin */
  82. #define IRQPIN_EXTINT2 1 /* IRQ1 pin */
  83. #define IRQPIN_EXTINT3 2 /* IRQ2 pin */
  84. #define IRQPIN_SMC91CX 3 /* IRQ3 pin */
  85. #define IRQPIN_EXTINT4 4 /* IRQ4 pin */
  86. #define IRQPIN_PCC0 5 /* IRQ5 pin */
  87. #define IRQPIN_PCC2 6 /* IRQ6 pin */
  88. #define IRQPIN_SM501 7 /* IRQ7 pin */
  89. #define IRQPIN_PCCPW 7 /* IRQ7 pin */
  90. /* arch/sh/boards/se/7780/irq.c */
  91. void init_se7780_IRQ(void);
  92. #define __IO_PREFIX se7780
  93. #include <asm/io_generic.h>
  94. #endif /* __ASM_SH_SE7780_H */