arch.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. /*
  2. * This file is part of FH8620 BSP for RT-Thread distribution.
  3. *
  4. * Copyright (c) 2016 Shanghai Fullhan Microelectronics Co., Ltd.
  5. * All rights reserved
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 2 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License along
  18. * with this program; if not, write to the Free Software Foundation, Inc.,
  19. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  20. *
  21. * Visit http://www.fullhan.com to get contact with Fullhan.
  22. *
  23. * Change Logs:
  24. * Date Author Notes
  25. */
  26. #ifndef ARCH_H_
  27. #define ARCH_H_
  28. /*****************************/
  29. /* BSP CONTROLLER BASE */
  30. /*****************************/
  31. #define INTC_REG_BASE (0xE0200000)
  32. #define SDC0_REG_BASE (0xE2000000)
  33. #define SDC1_REG_BASE (0xE2100000)
  34. #define TVE_REG_BASE (0xE8000000)
  35. #define VOU_REG_BASE (0xE8100000)
  36. #define AES_REG_BASE (0xE8200000)
  37. /*
  38. #define JPEG_REG_BASE (0xE8300000)
  39. #define ISPB_REG_BASE (0xEA000000)
  40. #define ISPF_REG_BASE (0xEA100000)
  41. #define VPU_REG_BASE (0xEC000000)
  42. #define VCU_REG_BASE (0xEC100000)
  43. #define DDRC_REG_BASE (0xED000000)
  44. */
  45. #define DMAC_REG_BASE (0xEE000000)
  46. #define GMAC_REG_BASE (0xEF000000)
  47. #define PMU_REG_BASE (0xF0000000)
  48. #define I2C0_REG_BASE (0xF0200000)
  49. #define GPIO0_REG_BASE (0xF0300000)
  50. #define GPIO1_REG_BASE (0xf4000000)
  51. #define PWM_REG_BASE (0xF0400000)
  52. #define SPI0_REG_BASE (0xF0500000)
  53. #define SPI1_REG_BASE (0xF0600000)
  54. #define UART0_REG_BASE (0xF0700000)
  55. #define UART1_REG_BASE (0xF0800000)
  56. /*#define I2S_REG_BASE (0xF0900000)*/
  57. #define ACODEC_REG_BASE (0xF0A00000)
  58. #define I2C1_REG_BASE (0xF0B00000)
  59. #define TMR_REG_BASE (0xF0C00000)
  60. #define WDT_REG_BASE (0xF0D00000)
  61. /*
  62. #define DPHY_REG_BASE (0xF1000000)
  63. #define MIPIC_REG_BASE (0xF1100000)
  64. */
  65. #define SADC_REG_BASE (0xF1200000)
  66. typedef enum IRQn
  67. {
  68. PAE_IRQn = 0,
  69. VPU_IRQn = 1,
  70. ISP_F_IRQn = 2,
  71. ISP_B_IRQn = 3,
  72. VOU_IRQn = 4,
  73. JPEG_IRQn = 5,
  74. TVE_IRQn = 6,
  75. TOE_IRQn = 7,
  76. DDRC_IRQn = 8,
  77. DMAC_IRQn = 9,
  78. AES_IRQn = 10,
  79. MIPIC_IRQn = 11,
  80. MIPI_WRAP_IRQn = 12,
  81. PMU_IRQn = 13,
  82. EMAC_IRQn = 14,
  83. AXIC0_IRQn = 16,
  84. AXIC1_IRQn = 17,
  85. X2H0_IRQn = 18,
  86. X2H1_IRQn = 19,
  87. AHBC0_IRQn = 20,
  88. AHBC1_IRQn = 21,
  89. SADC_IRQn = 23,
  90. SDC0_IRQn = 24,
  91. SDC1_IRQn = 25,
  92. ACW_IRQn = 26,
  93. WDT_IRQn = 27,
  94. SPI0_IRQn = 28,
  95. SPI1_IRQn = 29,
  96. UART0_IRQn = 30,
  97. UART1_IRQn = 31,
  98. I2S0_IRQn = 32,
  99. I2S1_IRQn = 33,
  100. RTC_IRQn = 34,
  101. PWM_IRQn = 35,
  102. TMR0_IRQn = 36,
  103. TMR1_IRQn = 37,
  104. USB0_IRQn = 38,
  105. USB1_IRQn = 39,
  106. GPIO0_IRQn = 40,
  107. GPIO1_IRQn = 41,
  108. I2C0_IRQn = 42,
  109. I2C1_IRQn = 43,
  110. } IRQn_Type;
  111. #endif /* ARCH_H_ */