memoryOperation.h 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. /*
  2. * OMAP44xx Power Management register bits
  3. *
  4. * Copyright (C) 2009-2010 Texas Instruments, Inc.
  5. * Copyright (C) 2009-2010 Nokia Corporation
  6. *
  7. * Paul Walmsley (paul@pwsan.com)
  8. * Rajendra Nayak (rnayak@ti.com)
  9. * Benoit Cousson (b-cousson@ti.com)
  10. *
  11. * This file is automatically generated from the OMAP hardware databases.
  12. * We respectfully ask that any modifications to this file be coordinated
  13. * with the public linux-omap@vger.kernel.org mailing list and the
  14. * authors above to ensure that the autogeneration scripts are kept
  15. * up-to-date with the file contents.
  16. *
  17. * This program is free software; you can redistribute it and/or modify
  18. * it under the terms of the GNU General Public License version 2 as
  19. * published by the Free Software Foundation.
  20. */
  21. #ifndef __ARCH_ARM_MACH_OMAP2_PRM_REGBITS_44XX_H
  22. #define __ARCH_ARM_MACH_OMAP2_PRM_REGBITS_44XX_H
  23. /*
  24. * Used by PRM_LDO_SRAM_CORE_SETUP, PRM_LDO_SRAM_IVA_SETUP,
  25. * PRM_LDO_SRAM_MPU_SETUP
  26. */
  27. #define OMAP4430_ABBOFF_ACT_EXPORT_SHIFT 1
  28. #define OMAP4430_ABBOFF_ACT_EXPORT_MASK (1 << 1)
  29. /*
  30. * Used by PRM_LDO_SRAM_CORE_SETUP, PRM_LDO_SRAM_IVA_SETUP,
  31. * PRM_LDO_SRAM_MPU_SETUP
  32. */
  33. #define OMAP4430_ABBOFF_SLEEP_EXPORT_SHIFT 2
  34. #define OMAP4430_ABBOFF_SLEEP_EXPORT_MASK (1 << 2)
  35. /* Used by PRM_IRQENABLE_DUCATI, PRM_IRQENABLE_MPU */
  36. #define OMAP4430_ABB_IVA_DONE_EN_SHIFT 31
  37. #define OMAP4430_ABB_IVA_DONE_EN_MASK (1 << 31)
  38. /* Used by PRM_IRQSTATUS_DUCATI, PRM_IRQSTATUS_MPU */
  39. #define OMAP4430_ABB_IVA_DONE_ST_SHIFT 31
  40. #define OMAP4430_ABB_IVA_DONE_ST_MASK (1 << 31)
  41. /* Used by PRM_IRQENABLE_MPU_2 */
  42. #define OMAP4430_ABB_MPU_DONE_EN_SHIFT 7
  43. #define OMAP4430_ABB_MPU_DONE_EN_MASK (1 << 7)
  44. /* Used by PRM_IRQSTATUS_MPU_2 */
  45. #define OMAP4430_ABB_MPU_DONE_ST_SHIFT 7
  46. #define OMAP4430_ABB_MPU_DONE_ST_MASK (1 << 7)
  47. /* Used by PRM_LDO_ABB_IVA_SETUP, PRM_LDO_ABB_MPU_SETUP */
  48. #define OMAP4430_ACTIVE_FBB_SEL_SHIFT 2
  49. #define OMAP4430_ACTIVE_FBB_SEL_MASK (1 << 2)
  50. /* Used by PRM_LDO_ABB_IVA_SETUP, PRM_LDO_ABB_MPU_SETUP */
  51. #define OMAP4430_ACTIVE_RBB_SEL_SHIFT 1
  52. #define OMAP4430_ACTIVE_RBB_SEL_MASK (1 << 1)
  53. /* Used by PM_ABE_PWRSTCTRL */
  54. #define OMAP4430_AESSMEM_ONSTATE_SHIFT 16
  55. #define OMAP4430_AESSMEM_ONSTATE_MASK (0x3 << 16)
  56. /* Used by PM_ABE_PWRSTCTRL */
  57. #define OMAP4430_AESSMEM_RETSTATE_SHIFT 8
  58. #define OMAP4430_AESSMEM_RETSTATE_MASK (1 << 8)
  59. /* Used by PM_ABE_PWRSTST */
  60. #define OMAP4430_AESSMEM_STATEST_SHIFT 4
  61. #define OMAP4430_AESSMEM_STATEST_MASK (0x3 << 4)
  62. /*
  63. * Used by PRM_LDO_SRAM_CORE_SETUP, PRM_LDO_SRAM_IVA_SETUP,
  64. * PRM_LDO_SRAM_MPU_SETUP
  65. */
  66. #define OMAP4430_AIPOFF_SHIFT 8
  67. #define OMAP4430_AIPOFF_MASK (1 << 8)
  68. /* Used by PRM_VOLTCTRL */
  69. #define OMAP4430_AUTO_CTRL_VDD_CORE_L_SHIFT 0
  70. #define OMAP4430_AUTO_CTRL_VDD_CORE_L_MASK (0x3 << 0)
  71. /* Used by PRM_VOLTCTRL */
  72. #define OMAP4430_AUTO_CTRL_VDD_IVA_L_SHIFT 4
  73. #define OMAP4430_AUTO_CTRL_VDD_IVA_L_MASK (0x3 << 4)
  74. /* Used by PRM_VOLTCTRL */
  75. #define OMAP4430_AUTO_CTRL_VDD_MPU_L_SHIFT 2
  76. #define OMAP4430_AUTO_CTRL_VDD_MPU_L_MASK (0x3 << 2)
  77. /* Used by PRM_VC_ERRST */
  78. #define OMAP4430_BYPS_RA_ERR_SHIFT 25
  79. #define OMAP4430_BYPS_RA_ERR_MASK (1 << 25)
  80. /* Used by PRM_VC_ERRST */
  81. #define OMAP4430_BYPS_SA_ERR_SHIFT 24
  82. #define OMAP4430_BYPS_SA_ERR_MASK (1 << 24)
  83. /* Used by PRM_VC_ERRST */
  84. #define OMAP4430_BYPS_TIMEOUT_ERR_SHIFT 26
  85. #define OMAP4430_BYPS_TIMEOUT_ERR_MASK (1 << 26)
  86. /* Used by PRM_RSTST */
  87. #define OMAP4430_C2C_RST_SHIFT 10
  88. #define OMAP4430_C2C_RST_MASK (1 << 10)
  89. /* Used by PM_CAM_PWRSTCTRL */
  90. #define OMAP4430_CAM_MEM_ONSTATE_SHIFT 16
  91. #define OMAP4430_CAM_MEM_ONSTATE_MASK (0x3 << 16)
  92. /* Used by PM_CAM_PWRSTST */
  93. #define OMAP4430_CAM_MEM_STATEST_SHIFT 4
  94. #define OMAP4430_CAM_MEM_STATEST_MASK (0x3 << 4)
  95. /* Used by PRM_CLKREQCTRL */
  96. #define OMAP4430_CLKREQ_COND_SHIFT 0
  97. #define OMAP4430_CLKREQ_COND_MASK (0x7 << 0)
  98. /* Used by PRM_VC_VAL_SMPS_RA_CMD */
  99. #define OMAP4430_CMDRA_VDD_CORE_L_SHIFT 0
  100. #define OMAP4430_CMDRA_VDD_CORE_L_MASK (0xff << 0)
  101. /* Used by PRM_VC_VAL_SMPS_RA_CMD */
  102. #define OMAP4430_CMDRA_VDD_IVA_L_SHIFT 8
  103. #define OMAP4430_CMDRA_VDD_IVA_L_MASK (0xff << 8)
  104. /* Used by PRM_VC_VAL_SMPS_RA_CMD */
  105. #define OMAP4430_CMDRA_VDD_MPU_L_SHIFT 16
  106. #define OMAP4430_CMDRA_VDD_MPU_L_MASK (0xff << 16)
  107. /* Used by PRM_VC_CFG_CHANNEL */
  108. #define OMAP4430_CMD_VDD_CORE_L_SHIFT 4
  109. #define OMAP4430_CMD_VDD_CORE_L_MASK (1 << 4)