reg_scc.h 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. /*
  2. * (C) Copyright 2009 Stefan Roese <sr@denx.de>, DENX Software Engineering
  3. *
  4. * Copyright (C) 2006 Micronas GmbH
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License as
  8. * published by the Free Software Foundation; either version 2 of
  9. * the License, or (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program; if not, write to the Free Software
  18. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  19. * MA 02111-1307 USA
  20. */
  21. #ifndef _REG_SCC_PREMIUM_H_
  22. #define _REG_SCC_PREMIUM_H_
  23. #define SCC0_BASE 0x00110000
  24. #define SCC1_BASE 0x00110080
  25. #define SCC2_BASE 0x00110100
  26. #define SCC3_BASE 0x00110180
  27. #define SCC4_BASE 0x00110200
  28. #define SCC5_BASE 0x00110280
  29. #define SCC6_BASE 0x00110300
  30. #define SCC7_BASE 0x00110380
  31. #define SCC8_BASE 0x00110400
  32. #define SCC9_BASE 0x00110480
  33. #define SCC10_BASE 0x00110500
  34. #define SCC11_BASE 0x00110580
  35. #define SCC12_BASE 0x00110600
  36. #define SCC13_BASE 0x00110680
  37. #define SCC14_BASE 0x00110700
  38. #define SCC15_BASE 0x00110780
  39. #define SCC16_BASE 0x00110800
  40. #define SCC17_BASE 0x00110880
  41. #define SCC18_BASE 0x00110900
  42. #define SCC19_BASE 0x00110980
  43. #define SCC20_BASE 0x00110a00
  44. #define SCC21_BASE 0x00110a80
  45. #define SCC22_BASE 0x00110b00
  46. #define SCC23_BASE 0x00110b80
  47. #define SCC24_BASE 0x00110c00
  48. #define SCC25_BASE 0x00110c80
  49. #define SCC26_BASE 0x00110d00
  50. #define SCC27_BASE 0x00110d80
  51. #define SCC28_BASE 0x00110e00
  52. #define SCC29_BASE 0x00110e80
  53. #define SCC30_BASE 0x00110f00
  54. #define SCC31_BASE 0x00110f80
  55. #define SCC32_BASE 0x00111000
  56. #define SCC33_BASE 0x00111080
  57. #define SCC34_BASE 0x00111100
  58. #define SCC35_BASE 0x00111180
  59. #define SCC36_BASE 0x00111200
  60. #define SCC37_BASE 0x00111280
  61. #define SCC38_BASE 0x00111300
  62. #define SCC39_BASE 0x00111380
  63. #define SCC40_BASE 0x00111400
  64. /* Relative offsets of the register adresses */
  65. #define SCC_ENABLE_OFFS 0x00000000
  66. #define SCC_ENABLE(base) ((base) + SCC_ENABLE_OFFS)
  67. #define SCC_RESET_OFFS 0x00000004
  68. #define SCC_RESET(base) ((base) + SCC_RESET_OFFS)
  69. #define SCC_VCID_OFFS 0x00000008
  70. #define SCC_VCID(base) ((base) + SCC_VCID_OFFS)
  71. #define SCC_MCI_CFG_OFFS 0x0000000C
  72. #define SCC_MCI_CFG(base) ((base) + SCC_MCI_CFG_OFFS)
  73. #define SCC_PACKET_CFG1_OFFS 0x00000010
  74. #define SCC_PACKET_CFG1(base) ((base) + SCC_PACKET_CFG1_OFFS)
  75. #define SCC_PACKET_CFG2_OFFS 0x00000014
  76. #define SCC_PACKET_CFG2(base) ((base) + SCC_PACKET_CFG2_OFFS)
  77. #define SCC_PACKET_CFG3_OFFS 0x00000018
  78. #define SCC_PACKET_CFG3(base) ((base) + SCC_PACKET_CFG3_OFFS)
  79. #define SCC_DMA_CFG_OFFS 0x0000001C
  80. #define SCC_DMA_CFG(base) ((base) + SCC_DMA_CFG_OFFS)
  81. #define SCC_CMD_OFFS 0x00000020
  82. #define SCC_CMD(base) ((base) + SCC_CMD_OFFS)
  83. #define SCC_PRIO_OFFS 0x00000024
  84. #define SCC_PRIO(base) ((base) + SCC_PRIO_OFFS)
  85. #define SCC_DEBUG_OFFS 0x00000028
  86. #define SCC_DEBUG(base) ((base) + SCC_DEBUG_OFFS)
  87. #define SCC_STATUS_OFFS 0x0000002C
  88. #define SCC_STATUS(base) ((base) + SCC_STATUS_OFFS)
  89. #define SCC_IMR_OFFS 0x00000030
  90. #define SCC_IMR(base) ((base) + SCC_IMR_OFFS)
  91. #define SCC_ISR_OFFS 0x00000034
  92. #define SCC_ISR(base) ((base) + SCC_ISR_OFFS)
  93. #define SCC_DMA_OFFSET_OFFS 0x00000038
  94. #define SCC_DMA_OFFSET(base) ((base) + SCC_DMA_OFFSET_OFFS)
  95. #define SCC_RS_CTLSTS_OFFS 0x0000003C
  96. #define SCC_RS_CTLSTS(base) ((base) + SCC_RS_CTLSTS_OFFS)
  97. #endif