prm44xx.h 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * OMAP44xx PRM instance offset macros
  4. *
  5. * Copyright (C) 2009-2011 Texas Instruments, Inc.
  6. * Copyright (C) 2009-2010 Nokia Corporation
  7. *
  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. * XXX This file needs to be updated to align on one of "OMAP4", "OMAP44XX",
  19. * or "OMAP4430".
  20. */
  21. #ifndef __ARCH_ARM_MACH_OMAP2_PRM44XX_H
  22. #define __ARCH_ARM_MACH_OMAP2_PRM44XX_H
  23. #include "prm44xx_54xx.h"
  24. #include "prm.h"
  25. #define OMAP4430_PRM_BASE 0x4a306000
  26. #define OMAP44XX_PRM_REGADDR(inst, reg) \
  27. OMAP2_L4_IO_ADDRESS(OMAP4430_PRM_BASE + (inst) + (reg))
  28. /* PRM instances */
  29. #define OMAP4430_PRM_OCP_SOCKET_INST 0x0000
  30. #define OMAP4430_PRM_CKGEN_INST 0x0100
  31. #define OMAP4430_PRM_MPU_INST 0x0300
  32. #define OMAP4430_PRM_TESLA_INST 0x0400
  33. #define OMAP4430_PRM_ABE_INST 0x0500
  34. #define OMAP4430_PRM_ALWAYS_ON_INST 0x0600
  35. #define OMAP4430_PRM_CORE_INST 0x0700
  36. #define OMAP4430_PRM_IVAHD_INST 0x0f00
  37. #define OMAP4430_PRM_CAM_INST 0x1000
  38. #define OMAP4430_PRM_DSS_INST 0x1100
  39. #define OMAP4430_PRM_GFX_INST 0x1200
  40. #define OMAP4430_PRM_L3INIT_INST 0x1300
  41. #define OMAP4430_PRM_L4PER_INST 0x1400
  42. #define OMAP4430_PRM_CEFUSE_INST 0x1600
  43. #define OMAP4430_PRM_WKUP_INST 0x1700
  44. #define OMAP4430_PRM_WKUP_CM_INST 0x1800
  45. #define OMAP4430_PRM_EMU_INST 0x1900
  46. #define OMAP4430_PRM_EMU_CM_INST 0x1a00
  47. #define OMAP4430_PRM_DEVICE_INST 0x1b00
  48. /* PRM clockdomain register offsets (from instance start) */
  49. #define OMAP4430_PRM_WKUP_CM_WKUP_CDOFFS 0x0000
  50. #define OMAP4430_PRM_EMU_CM_EMU_CDOFFS 0x0000
  51. /* OMAP4 specific register offsets */
  52. #define OMAP4_RM_RSTST 0x0004
  53. #define OMAP4_PM_PWSTCTRL 0x0000
  54. #define OMAP4_PM_PWSTST 0x0004
  55. /* PRM.OCP_SOCKET_PRM register offsets */
  56. #define OMAP4_REVISION_PRM_OFFSET 0x0000
  57. #define OMAP4_PRM_IRQSTATUS_MPU_OFFSET 0x0010
  58. #define OMAP4430_PRM_IRQSTATUS_MPU OMAP44XX_PRM_REGADDR(OMAP4430_PRM_OCP_SOCKET_INST, 0x0010)
  59. #define OMAP4_PRM_IRQSTATUS_MPU_2_OFFSET 0x0014
  60. #define OMAP4_PRM_IRQENABLE_MPU_OFFSET 0x0018
  61. #define OMAP4430_PRM_IRQENABLE_MPU OMAP44XX_PRM_REGADDR(OMAP4430_PRM_OCP_SOCKET_INST, 0x0018)
  62. /* PRM.MPU_PRM register offsets */
  63. #define OMAP4_RM_MPU_MPU_CONTEXT_OFFSET 0x0024
  64. /* PRM.DEVICE_PRM register offsets */
  65. #define OMAP4_PRM_RSTCTRL_OFFSET 0x0000
  66. #define OMAP4_PRM_VOLTCTRL_OFFSET 0x0010
  67. #define OMAP4_PRM_IO_PMCTRL_OFFSET 0x0020
  68. #define OMAP4_PRM_VOLTSETUP_CORE_OFF_OFFSET 0x0028
  69. #define OMAP4_PRM_VOLTSETUP_MPU_OFF_OFFSET 0x002c
  70. #define OMAP4_PRM_VOLTSETUP_IVA_OFF_OFFSET 0x0030
  71. #define OMAP4_PRM_VOLTSETUP_CORE_RET_SLEEP_OFFSET 0x0034
  72. #define OMAP4_PRM_VOLTSETUP_MPU_RET_SLEEP_OFFSET 0x0038
  73. #define OMAP4_PRM_VOLTSETUP_IVA_RET_SLEEP_OFFSET 0x003c
  74. #define OMAP4_PRM_VP_CORE_CONFIG_OFFSET 0x0040
  75. #define OMAP4_PRM_VP_CORE_STATUS_OFFSET 0x0044
  76. #define OMAP4_PRM_VP_CORE_VLIMITTO_OFFSET 0x0048
  77. #define OMAP4_PRM_VP_CORE_VOLTAGE_OFFSET 0x004c
  78. #define OMAP4_PRM_VP_CORE_VSTEPMAX_OFFSET 0x0050
  79. #define OMAP4_PRM_VP_CORE_VSTEPMIN_OFFSET 0x0054
  80. #define OMAP4_PRM_VP_MPU_CONFIG_OFFSET 0x0058
  81. #define OMAP4_PRM_VP_MPU_STATUS_OFFSET 0x005c
  82. #define OMAP4_PRM_VP_MPU_VLIMITTO_OFFSET 0x0060
  83. #define OMAP4_PRM_VP_MPU_VOLTAGE_OFFSET 0x0064
  84. #define OMAP4_PRM_VP_MPU_VSTEPMAX_OFFSET 0x0068
  85. #define OMAP4_PRM_VP_MPU_VSTEPMIN_OFFSET 0x006c
  86. #define OMAP4_PRM_VP_IVA_CONFIG_OFFSET 0x0070
  87. #define OMAP4_PRM_VP_IVA_STATUS_OFFSET 0x0074
  88. #define OMAP4_PRM_VP_IVA_VLIMITTO_OFFSET 0x0078
  89. #define OMAP4_PRM_VP_IVA_VOLTAGE_OFFSET 0x007c
  90. #define OMAP4_PRM_VP_IVA_VSTEPMAX_OFFSET 0x0080
  91. #define OMAP4_PRM_VP_IVA_VSTEPMIN_OFFSET 0x0084
  92. #define OMAP4_PRM_VC_SMPS_SA_OFFSET 0x0088
  93. #define OMAP4_PRM_VC_VAL_SMPS_RA_VOL_OFFSET 0x008c
  94. #define OMAP4_PRM_VC_VAL_SMPS_RA_CMD_OFFSET 0x0090
  95. #define OMAP4_PRM_VC_VAL_CMD_VDD_CORE_L_OFFSET 0x0094
  96. #define OMAP4_PRM_VC_VAL_CMD_VDD_MPU_L_OFFSET 0x0098
  97. #define OMAP4_PRM_VC_VAL_CMD_VDD_IVA_L_OFFSET 0x009c
  98. #define OMAP4_PRM_VC_VAL_BYPASS_OFFSET 0x00a0
  99. #define OMAP4_PRM_VC_CFG_CHANNEL_OFFSET 0x00a4
  100. #define OMAP4_PRM_VC_CFG_I2C_MODE_OFFSET 0x00a8
  101. #define OMAP4_PRM_VC_CFG_I2C_CLK_OFFSET 0x00ac
  102. #endif