se7722.h 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __ASM_SH_SE7722_H
  3. #define __ASM_SH_SE7722_H
  4. /*
  5. * linux/include/asm-sh/se7722.h
  6. *
  7. * Copyright (C) 2007 Nobuhiro Iwamatsu
  8. *
  9. * Hitachi UL SolutionEngine 7722 Support.
  10. */
  11. #include <linux/sh_intc.h>
  12. #include <asm/addrspace.h>
  13. /* Box specific addresses. */
  14. #define SE_AREA0_WIDTH 4 /* Area0: 32bit */
  15. #define PA_ROM 0xa0000000 /* EPROM */
  16. #define PA_ROM_SIZE 0x00200000 /* EPROM size 2M byte */
  17. #define PA_FROM 0xa1000000 /* Flash-ROM */
  18. #define PA_FROM_SIZE 0x01000000 /* Flash-ROM size 16M byte */
  19. #define PA_EXT1 0xa4000000
  20. #define PA_EXT1_SIZE 0x04000000
  21. #define PA_SDRAM 0xaC000000 /* DDR-SDRAM(Area3) 64MB */
  22. #define PA_SDRAM_SIZE 0x04000000
  23. #define PA_EXT4 0xb0000000
  24. #define PA_EXT4_SIZE 0x04000000
  25. #define PA_PERIPHERAL 0xB0000000
  26. #define PA_PCIC PA_PERIPHERAL /* MR-SHPC-01 PCMCIA */
  27. #define PA_MRSHPC (PA_PERIPHERAL + 0x003fffe0) /* MR-SHPC-01 PCMCIA controller */
  28. #define PA_MRSHPC_MW1 (PA_PERIPHERAL + 0x00400000) /* MR-SHPC-01 memory window base */
  29. #define PA_MRSHPC_MW2 (PA_PERIPHERAL + 0x00500000) /* MR-SHPC-01 attribute window base */
  30. #define PA_MRSHPC_IO (PA_PERIPHERAL + 0x00600000) /* MR-SHPC-01 I/O window base */
  31. #define MRSHPC_OPTION (PA_MRSHPC + 6)
  32. #define MRSHPC_CSR (PA_MRSHPC + 8)
  33. #define MRSHPC_ISR (PA_MRSHPC + 10)
  34. #define MRSHPC_ICR (PA_MRSHPC + 12)
  35. #define MRSHPC_CPWCR (PA_MRSHPC + 14)
  36. #define MRSHPC_MW0CR1 (PA_MRSHPC + 16)
  37. #define MRSHPC_MW1CR1 (PA_MRSHPC + 18)
  38. #define MRSHPC_IOWCR1 (PA_MRSHPC + 20)
  39. #define MRSHPC_MW0CR2 (PA_MRSHPC + 22)
  40. #define MRSHPC_MW1CR2 (PA_MRSHPC + 24)
  41. #define MRSHPC_IOWCR2 (PA_MRSHPC + 26)
  42. #define MRSHPC_CDCR (PA_MRSHPC + 28)
  43. #define MRSHPC_PCIC_INFO (PA_MRSHPC + 30)
  44. #define PA_LED (PA_PERIPHERAL + 0x00800000) /* 8bit LED */
  45. #define PA_FPGA (PA_PERIPHERAL + 0x01800000) /* FPGA base address */
  46. #define PA_LAN (PA_AREA6_IO + 0) /* SMC LAN91C111 */
  47. /* GPIO */
  48. #define FPGA_IN 0xb1840000UL
  49. #define FPGA_OUT 0xb1840004UL
  50. #define PORT_PECR 0xA4050108UL
  51. #define PORT_PJCR 0xA4050110UL
  52. #define PORT_PSELD 0xA4050154UL
  53. #define PORT_PSELB 0xA4050150UL
  54. #define PORT_PSELC 0xA4050152UL
  55. #define PORT_PKCR 0xA4050112UL
  56. #define PORT_PHCR 0xA405010EUL
  57. #define PORT_PLCR 0xA4050114UL
  58. #define PORT_PMCR 0xA4050116UL
  59. #define PORT_PRCR 0xA405011CUL
  60. #define PORT_PXCR 0xA4050148UL
  61. #define PORT_PSELA 0xA405014EUL
  62. #define PORT_PYCR 0xA405014AUL
  63. #define PORT_PZCR 0xA405014CUL
  64. #define PORT_HIZCRA 0xA4050158UL
  65. #define PORT_HIZCRC 0xA405015CUL
  66. /* IRQ */
  67. #define IRQ0_IRQ evt2irq(0x600)
  68. #define IRQ1_IRQ evt2irq(0x620)
  69. #define SE7722_FPGA_IRQ_USB 0 /* IRQ0 */
  70. #define SE7722_FPGA_IRQ_SMC 1 /* IRQ0 */
  71. #define SE7722_FPGA_IRQ_MRSHPC0 2 /* IRQ1 */
  72. #define SE7722_FPGA_IRQ_MRSHPC1 3 /* IRQ1 */
  73. #define SE7722_FPGA_IRQ_MRSHPC2 4 /* IRQ1 */
  74. #define SE7722_FPGA_IRQ_MRSHPC3 5 /* IRQ1 */
  75. #define SE7722_FPGA_IRQ_NR 6
  76. struct irq_domain;
  77. /* arch/sh/boards/se/7722/irq.c */
  78. extern struct irq_domain *se7722_irq_domain;
  79. void init_se7722_IRQ(void);
  80. #define __IO_PREFIX se7722
  81. #include <asm/io_generic.h>
  82. #endif /* __ASM_SH_SE7722_H */