mxregs.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * Xtensa MX interrupt distributor
  3. *
  4. * This file is subject to the terms and conditions of the GNU General Public
  5. * License. See the file "COPYING" in the main directory of this archive
  6. * for more details.
  7. *
  8. * Copyright (C) 2008 - 2013 Tensilica Inc.
  9. */
  10. #ifndef _XTENSA_MXREGS_H
  11. #define _XTENSA_MXREGS_H
  12. /*
  13. * RER/WER at, as Read/write external register
  14. * at: value
  15. * as: address
  16. *
  17. * Address Value
  18. * 00nn 0...0p..p Interrupt Routing, route IRQ n to processor p
  19. * 01pp 0...0d..d 16 bits (d) 'ored' as single IPI to processor p
  20. * 0180 0...0m..m Clear enable specified by mask (m)
  21. * 0184 0...0m..m Set enable specified by mask (m)
  22. * 0190 0...0x..x 8-bit IPI partition register
  23. * VVVVVVVVPPPPUUUUUUUUUUUUUUUUU
  24. * V (10-bit) Release/Version
  25. * P ( 4-bit) Number of cores - 1
  26. * U (18-bit) ID
  27. * 01a0 i.......i 32-bit ConfigID
  28. * 0200 0...0m..m RunStall core 'n'
  29. * 0220 c Cache coherency enabled
  30. */
  31. #define MIROUT(irq) (0x000 + (irq))
  32. #define MIPICAUSE(cpu) (0x100 + (cpu))
  33. #define MIPISET(cause) (0x140 + (cause))
  34. #define MIENG 0x180
  35. #define MIENGSET 0x184
  36. #define MIASG 0x188 /* Read Global Assert Register */
  37. #define MIASGSET 0x18c /* Set Global Addert Regiter */
  38. #define MIPIPART 0x190
  39. #define SYSCFGID 0x1a0
  40. #define MPSCORE 0x200
  41. #define CCON 0x220
  42. #endif /* _XTENSA_MXREGS_H */