se7721.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /* SPDX-License-Identifier: GPL-2.0
  2. *
  3. * Copyright (C) 2008 Renesas Solutions Corp.
  4. *
  5. * Hitachi UL SolutionEngine 7721 Support.
  6. */
  7. #ifndef __ASM_SH_SE7721_H
  8. #define __ASM_SH_SE7721_H
  9. #include <linux/sh_intc.h>
  10. #include <asm/addrspace.h>
  11. /* Box specific addresses. */
  12. #define SE_AREA0_WIDTH 2 /* Area0: 32bit */
  13. #define PA_ROM 0xa0000000 /* EPROM */
  14. #define PA_ROM_SIZE 0x00200000 /* EPROM size 2M byte */
  15. #define PA_FROM 0xa1000000 /* Flash-ROM */
  16. #define PA_FROM_SIZE 0x01000000 /* Flash-ROM size 16M byte */
  17. #define PA_EXT1 0xa4000000
  18. #define PA_EXT1_SIZE 0x04000000
  19. #define PA_SDRAM 0xaC000000 /* SDRAM(Area3) 64MB */
  20. #define PA_SDRAM_SIZE 0x04000000
  21. #define PA_EXT4 0xb0000000
  22. #define PA_EXT4_SIZE 0x04000000
  23. #define PA_PERIPHERAL 0xB8000000
  24. #define PA_PCIC PA_PERIPHERAL
  25. #define PA_MRSHPC (PA_PERIPHERAL + 0x003fffe0)
  26. #define PA_MRSHPC_MW1 (PA_PERIPHERAL + 0x00400000)
  27. #define PA_MRSHPC_MW2 (PA_PERIPHERAL + 0x00500000)
  28. #define PA_MRSHPC_IO (PA_PERIPHERAL + 0x00600000)
  29. #define MRSHPC_OPTION (PA_MRSHPC + 6)
  30. #define MRSHPC_CSR (PA_MRSHPC + 8)
  31. #define MRSHPC_ISR (PA_MRSHPC + 10)
  32. #define MRSHPC_ICR (PA_MRSHPC + 12)
  33. #define MRSHPC_CPWCR (PA_MRSHPC + 14)
  34. #define MRSHPC_MW0CR1 (PA_MRSHPC + 16)
  35. #define MRSHPC_MW1CR1 (PA_MRSHPC + 18)
  36. #define MRSHPC_IOWCR1 (PA_MRSHPC + 20)
  37. #define MRSHPC_MW0CR2 (PA_MRSHPC + 22)
  38. #define MRSHPC_MW1CR2 (PA_MRSHPC + 24)
  39. #define MRSHPC_IOWCR2 (PA_MRSHPC + 26)
  40. #define MRSHPC_CDCR (PA_MRSHPC + 28)
  41. #define MRSHPC_PCIC_INFO (PA_MRSHPC + 30)
  42. #define PA_LED 0xB6800000 /* 8bit LED */
  43. #define PA_FPGA 0xB7000000 /* FPGA base address */
  44. #define MRSHPC_IRQ0 evt2irq(0x340)
  45. #define FPGA_ILSR1 (PA_FPGA + 0x02)
  46. #define FPGA_ILSR2 (PA_FPGA + 0x03)
  47. #define FPGA_ILSR3 (PA_FPGA + 0x04)
  48. #define FPGA_ILSR4 (PA_FPGA + 0x05)
  49. #define FPGA_ILSR5 (PA_FPGA + 0x06)
  50. #define FPGA_ILSR6 (PA_FPGA + 0x07)
  51. #define FPGA_ILSR7 (PA_FPGA + 0x08)
  52. #define FPGA_ILSR8 (PA_FPGA + 0x09)
  53. void init_se7721_IRQ(void);
  54. #define __IO_PREFIX se7721
  55. #include <asm/io_generic.h>
  56. #endif /* __ASM_SH_SE7721_H */