altr,rst-mgr-s10.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. /*
  2. * Copyright (C) 2016 Intel Corporation. All rights reserved
  3. * Copyright (C) 2016 Altera Corporation. All rights reserved
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms and conditions of the GNU General Public License,
  7. * version 2, as published by the Free Software Foundation.
  8. *
  9. * This program is distributed in the hope it will be useful, but WITHOUT
  10. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  12. * more details.
  13. *
  14. * You should have received a copy of the GNU General Public License along with
  15. * this program. If not, see <http://www.gnu.org/licenses/>.
  16. *
  17. * derived from Steffen Trumtrar's "altr,rst-mgr-a10.h"
  18. */
  19. #ifndef _DT_BINDINGS_RESET_ALTR_RST_MGR_S10_H
  20. #define _DT_BINDINGS_RESET_ALTR_RST_MGR_S10_H
  21. /* MPUMODRST */
  22. #define CPU0_RESET 0
  23. #define CPU1_RESET 1
  24. #define CPU2_RESET 2
  25. #define CPU3_RESET 3
  26. /* PER0MODRST */
  27. #define EMAC0_RESET 32
  28. #define EMAC1_RESET 33
  29. #define EMAC2_RESET 34
  30. #define USB0_RESET 35
  31. #define USB1_RESET 36
  32. #define NAND_RESET 37
  33. /* 38 is empty */
  34. #define SDMMC_RESET 39
  35. #define EMAC0_OCP_RESET 40
  36. #define EMAC1_OCP_RESET 41
  37. #define EMAC2_OCP_RESET 42
  38. #define USB0_OCP_RESET 43
  39. #define USB1_OCP_RESET 44
  40. #define NAND_OCP_RESET 45
  41. /* 46 is empty */
  42. #define SDMMC_OCP_RESET 47
  43. #define DMA_RESET 48
  44. #define SPIM0_RESET 49
  45. #define SPIM1_RESET 50
  46. #define SPIS0_RESET 51
  47. #define SPIS1_RESET 52
  48. #define DMA_OCP_RESET 53
  49. #define EMAC_PTP_RESET 54
  50. /* 55 is empty*/
  51. #define DMAIF0_RESET 56
  52. #define DMAIF1_RESET 57
  53. #define DMAIF2_RESET 58
  54. #define DMAIF3_RESET 59
  55. #define DMAIF4_RESET 60
  56. #define DMAIF5_RESET 61
  57. #define DMAIF6_RESET 62
  58. #define DMAIF7_RESET 63
  59. /* PER1MODRST */
  60. #define WATCHDOG0_RESET 64
  61. #define WATCHDOG1_RESET 65
  62. #define WATCHDOG2_RESET 66
  63. #define WATCHDOG3_RESET 67
  64. #define L4SYSTIMER0_RESET 68
  65. #define L4SYSTIMER1_RESET 69
  66. #define SPTIMER0_RESET 70
  67. #define SPTIMER1_RESET 71
  68. #define I2C0_RESET 72
  69. #define I2C1_RESET 73
  70. #define I2C2_RESET 74
  71. #define I2C3_RESET 75
  72. #define I2C4_RESET 76
  73. /* 77-79 is empty */
  74. #define UART0_RESET 80
  75. #define UART1_RESET 81
  76. /* 82-87 is empty */
  77. #define GPIO0_RESET 88
  78. #define GPIO1_RESET 89
  79. /* BRGMODRST */
  80. #define SOC2FPGA_RESET 96
  81. #define LWHPS2FPGA_RESET 97
  82. #define FPGA2SOC_RESET 98
  83. #define F2SSDRAM0_RESET 99
  84. #define F2SSDRAM1_RESET 100
  85. #define F2SSDRAM2_RESET 101
  86. #define DDRSCH_RESET 102
  87. /* COLDMODRST */
  88. #define CPUPO0_RESET 160
  89. #define CPUPO1_RESET 161
  90. #define CPUPO2_RESET 162
  91. #define CPUPO3_RESET 163
  92. /* 164-167 is empty */
  93. #define L2_RESET 168
  94. /* DBGMODRST */
  95. #define DBG_RESET 224
  96. #define CSDAP_RESET 225
  97. /* TAPMODRST */
  98. #define TAP_RESET 256
  99. #endif