memoryDefinitionAgingAnalysisData.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. /*
  2. * OMAP3430 Power/Reset Management register bits
  3. *
  4. * Copyright (C) 2007-2008 Texas Instruments, Inc.
  5. * Copyright (C) 2007-2008 Nokia Corporation
  6. *
  7. * Written by Paul Walmsley
  8. *
  9. * This program is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License version 2 as
  11. * published by the Free Software Foundation.
  12. */
  13. #ifndef __ARCH_ARM_MACH_OMAP2_PRM_REGBITS_34XX_H
  14. #define __ARCH_ARM_MACH_OMAP2_PRM_REGBITS_34XX_H
  15. #include "prm3xxx.h"
  16. /* Shared register bits */
  17. /* PRM_VC_CMD_VAL_0, PRM_VC_CMD_VAL_1 shared bits */
  18. #define OMAP3430_ON_SHIFT 24
  19. #define OMAP3430_ON_MASK (0xff << 24)
  20. #define OMAP3430_ONLP_SHIFT 16
  21. #define OMAP3430_ONLP_MASK (0xff << 16)
  22. #define OMAP3430_RET_SHIFT 8
  23. #define OMAP3430_RET_MASK (0xff << 8)
  24. #define OMAP3430_OFF_SHIFT 0
  25. #define OMAP3430_OFF_MASK (0xff << 0)
  26. /* PRM_VP1_CONFIG, PRM_VP2_CONFIG shared bits */
  27. #define OMAP3430_ERROROFFSET_SHIFT 24
  28. #define OMAP3430_ERROROFFSET_MASK (0xff << 24)
  29. #define OMAP3430_ERRORGAIN_SHIFT 16
  30. #define OMAP3430_ERRORGAIN_MASK (0xff << 16)
  31. #define OMAP3430_INITVOLTAGE_SHIFT 8
  32. #define OMAP3430_INITVOLTAGE_MASK (0xff << 8)
  33. #define OMAP3430_TIMEOUTEN_MASK (1 << 3)
  34. #define OMAP3430_INITVDD_MASK (1 << 2)
  35. #define OMAP3430_FORCEUPDATE_MASK (1 << 1)
  36. #define OMAP3430_VPENABLE_MASK (1 << 0)
  37. /* PRM_VP1_VSTEPMIN, PRM_VP2_VSTEPMIN shared bits */
  38. #define OMAP3430_SMPSWAITTIMEMIN_SHIFT 8
  39. #define OMAP3430_SMPSWAITTIMEMIN_MASK (0xffff << 8)
  40. #define OMAP3430_VSTEPMIN_SHIFT 0
  41. #define OMAP3430_VSTEPMIN_MASK (0xff << 0)
  42. /* PRM_VP1_VSTEPMAX, PRM_VP2_VSTEPMAX shared bits */
  43. #define OMAP3430_SMPSWAITTIMEMAX_SHIFT 8
  44. #define OMAP3430_SMPSWAITTIMEMAX_MASK (0xffff << 8)
  45. #define OMAP3430_VSTEPMAX_SHIFT 0
  46. #define OMAP3430_VSTEPMAX_MASK (0xff << 0)
  47. /* PRM_VP1_VLIMITTO, PRM_VP2_VLIMITTO shared bits */
  48. #define OMAP3430_VDDMAX_SHIFT 24
  49. #define OMAP3430_VDDMAX_MASK (0xff << 24)
  50. #define OMAP3430_VDDMIN_SHIFT 16
  51. #define OMAP3430_VDDMIN_MASK (0xff << 16)
  52. #define OMAP3430_TIMEOUT_SHIFT 0
  53. #define OMAP3430_TIMEOUT_MASK (0xffff << 0)
  54. /* PRM_VP1_VOLTAGE, PRM_VP2_VOLTAGE shared bits */
  55. #define OMAP3430_VPVOLTAGE_SHIFT 0
  56. #define OMAP3430_VPVOLTAGE_MASK (0xff << 0)
  57. /* PRM_VP1_STATUS, PRM_VP2_STATUS shared bits */
  58. #define OMAP3430_VPINIDLE_MASK (1 << 0)
  59. /* PM_WKDEP_IVA2, PM_WKDEP_MPU shared bits */
  60. #define OMAP3430_EN_PER_SHIFT 7
  61. #define OMAP3430_EN_PER_MASK (1 << 7)
  62. /* PM_PWSTCTRL_IVA2, PM_PWSTCTRL_MPU, PM_PWSTCTRL_CORE shared bits */
  63. #define OMAP3430_MEMORYCHANGE_MASK (1 << 3)
  64. /* PM_PWSTST_IVA2, PM_PWSTST_CORE shared bits */
  65. #define OMAP3430_LOGICSTATEST_MASK (1 << 2)
  66. /* PM_PREPWSTST_IVA2, PM_PREPWSTST_CORE shared bits */
  67. #define OMAP3430_LASTLOGICSTATEENTERED_MASK (1 << 2)
  68. /*
  69. * PM_PREPWSTST_IVA2, PM_PREPWSTST_MPU, PM_PREPWSTST_CORE,
  70. * PM_PREPWSTST_GFX, PM_PREPWSTST_DSS, PM_PREPWSTST_CAM,
  71. * PM_PREPWSTST_PER, PM_PREPWSTST_NEON shared bits
  72. */
  73. #define OMAP3430_LASTPOWERSTATEENTERED_SHIFT 0
  74. #define OMAP3430_LASTPOWERSTATEENTERED_MASK (0x3 << 0)
  75. /* PRM_IRQSTATUS_IVA2, PRM_IRQSTATUS_MPU shared bits */
  76. #define OMAP3430_WKUP_ST_MASK (1 << 0)
  77. /* PRM_IRQENABLE_IVA2, PRM_IRQENABLE_MPU shared bits */
  78. #define OMAP3430_WKUP_EN_MASK (1 << 0)
  79. /* PM_MPUGRPSEL1_CORE, PM_IVA2GRPSEL1_CORE shared bits */
  80. #define OMAP3430_GRPSEL_MMC2_MASK (1 << 25)
  81. #define OMAP3430_GRPSEL_MMC1_MASK (1 << 24)
  82. #define OMAP3430_GRPSEL_MCSPI4_MASK (1 << 21)
  83. #define OMAP3430_GRPSEL_MCSPI3_MASK (1 << 20)
  84. #define OMAP3430_GRPSEL_MCSPI2_MASK (1 << 19)
  85. #define OMAP3430_GRPSEL_MCSPI1_MASK (1 << 18)