cm2_7xx.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * DRA7xx CM2 instance offset macros
  4. *
  5. * Copyright (C) 2013 Texas Instruments Incorporated - https://www.ti.com
  6. *
  7. * Generated by code originally written by:
  8. * Paul Walmsley ([email protected])
  9. * Rajendra Nayak ([email protected])
  10. * Benoit Cousson ([email protected])
  11. *
  12. * This file is automatically generated from the OMAP hardware databases.
  13. * We respectfully ask that any modifications to this file be coordinated
  14. * with the public [email protected] mailing list and the
  15. * authors above to ensure that the autogeneration scripts are kept
  16. * up-to-date with the file contents.
  17. */
  18. #ifndef __ARCH_ARM_MACH_OMAP2_CM2_7XX_H
  19. #define __ARCH_ARM_MACH_OMAP2_CM2_7XX_H
  20. /* CM2 base address */
  21. #define DRA7XX_CM_CORE_BASE 0x4a008000
  22. #define DRA7XX_CM_CORE_REGADDR(inst, reg) \
  23. OMAP2_L4_IO_ADDRESS(DRA7XX_CM_CORE_BASE + (inst) + (reg))
  24. /* CM_CORE instances */
  25. #define DRA7XX_CM_CORE_OCP_SOCKET_INST 0x0000
  26. #define DRA7XX_CM_CORE_CKGEN_INST 0x0104
  27. #define DRA7XX_CM_CORE_COREAON_INST 0x0600
  28. #define DRA7XX_CM_CORE_CORE_INST 0x0700
  29. #define DRA7XX_CM_CORE_IVA_INST 0x0f00
  30. #define DRA7XX_CM_CORE_CAM_INST 0x1000
  31. #define DRA7XX_CM_CORE_DSS_INST 0x1100
  32. #define DRA7XX_CM_CORE_GPU_INST 0x1200
  33. #define DRA7XX_CM_CORE_L3INIT_INST 0x1300
  34. #define DRA7XX_CM_CORE_CUSTEFUSE_INST 0x1600
  35. #define DRA7XX_CM_CORE_L4PER_INST 0x1700
  36. /* CM_CORE clockdomain register offsets (from instance start) */
  37. #define DRA7XX_CM_CORE_COREAON_COREAON_CDOFFS 0x0000
  38. #define DRA7XX_CM_CORE_CORE_L3MAIN1_CDOFFS 0x0000
  39. #define DRA7XX_CM_CORE_CORE_IPU2_CDOFFS 0x0200
  40. #define DRA7XX_CM_CORE_CORE_DMA_CDOFFS 0x0300
  41. #define DRA7XX_CM_CORE_CORE_EMIF_CDOFFS 0x0400
  42. #define DRA7XX_CM_CORE_CORE_ATL_CDOFFS 0x0520
  43. #define DRA7XX_CM_CORE_CORE_L4CFG_CDOFFS 0x0600
  44. #define DRA7XX_CM_CORE_CORE_L3INSTR_CDOFFS 0x0700
  45. #define DRA7XX_CM_CORE_IVA_IVA_CDOFFS 0x0000
  46. #define DRA7XX_CM_CORE_CAM_CAM_CDOFFS 0x0000
  47. #define DRA7XX_CM_CORE_DSS_DSS_CDOFFS 0x0000
  48. #define DRA7XX_CM_CORE_GPU_GPU_CDOFFS 0x0000
  49. #define DRA7XX_CM_CORE_L3INIT_L3INIT_CDOFFS 0x0000
  50. #define DRA7XX_CM_CORE_L3INIT_PCIE_CDOFFS 0x00a0
  51. #define DRA7XX_CM_CORE_L3INIT_GMAC_CDOFFS 0x00c0
  52. #define DRA7XX_CM_CORE_CUSTEFUSE_CUSTEFUSE_CDOFFS 0x0000
  53. #define DRA7XX_CM_CORE_L4PER_L4PER_CDOFFS 0x0000
  54. #define DRA7XX_CM_CORE_L4PER_L4SEC_CDOFFS 0x0180
  55. #define DRA7XX_CM_CORE_L4PER_L4PER2_CDOFFS 0x01fc
  56. #define DRA7XX_CM_CORE_L4PER_L4PER3_CDOFFS 0x0210
  57. #endif