prm-regbits-44xx.h 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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. #define OMAP4430_C2C_RST_SHIFT 10
  24. #define OMAP4430_CMDRA_VDD_CORE_L_MASK (0xff << 0)
  25. #define OMAP4430_CMDRA_VDD_IVA_L_MASK (0xff << 8)
  26. #define OMAP4430_CMDRA_VDD_MPU_L_MASK (0xff << 16)
  27. #define OMAP4430_DATA_SHIFT 16
  28. #define OMAP4430_ERRORGAIN_MASK (0xff << 16)
  29. #define OMAP4430_ERROROFFSET_MASK (0xff << 24)
  30. #define OMAP4430_EXTERNAL_WARM_RST_SHIFT 5
  31. #define OMAP4430_FORCEUPDATE_MASK (1 << 1)
  32. #define OMAP4430_GLOBAL_COLD_RST_SHIFT 0
  33. #define OMAP4430_GLOBAL_WARM_SW_RST_SHIFT 1
  34. #define OMAP4430_GLOBAL_WUEN_MASK (1 << 16)
  35. #define OMAP4430_HSMCODE_MASK (0x7 << 0)
  36. #define OMAP4430_SRMODEEN_MASK (1 << 4)
  37. #define OMAP4430_HSMODEEN_MASK (1 << 3)
  38. #define OMAP4430_HSSCLL_SHIFT 24
  39. #define OMAP4430_ICEPICK_RST_SHIFT 9
  40. #define OMAP4430_INITVDD_MASK (1 << 2)
  41. #define OMAP4430_INITVOLTAGE_MASK (0xff << 8)
  42. #define OMAP4430_LASTPOWERSTATEENTERED_SHIFT 24
  43. #define OMAP4430_LASTPOWERSTATEENTERED_MASK (0x3 << 24)
  44. #define OMAP4430_LOGICRETSTATE_SHIFT 2
  45. #define OMAP4430_LOGICRETSTATE_MASK (1 << 2)
  46. #define OMAP4430_LOGICSTATEST_SHIFT 2
  47. #define OMAP4430_LOGICSTATEST_MASK (1 << 2)
  48. #define OMAP4430_LOSTCONTEXT_DFF_MASK (1 << 0)
  49. #define OMAP4430_LOSTMEM_AESSMEM_MASK (1 << 8)
  50. #define OMAP4430_LOWPOWERSTATECHANGE_SHIFT 4
  51. #define OMAP4430_LOWPOWERSTATECHANGE_MASK (1 << 4)
  52. #define OMAP4430_MPU_SECURITY_VIOL_RST_SHIFT 2
  53. #define OMAP4430_MPU_WDT_RST_SHIFT 3
  54. #define OMAP4430_OCP_NRET_BANK_ONSTATE_MASK (0x3 << 24)
  55. #define OMAP4430_OCP_NRET_BANK_RETSTATE_MASK (1 << 12)
  56. #define OMAP4430_OCP_NRET_BANK_STATEST_MASK (0x3 << 12)
  57. #define OMAP4430_OFF_SHIFT 0
  58. #define OMAP4430_ON_SHIFT 24
  59. #define OMAP4430_ON_MASK (0xff << 24)
  60. #define OMAP4430_ONLP_SHIFT 16
  61. #define OMAP4430_RAMP_DOWN_COUNT_SHIFT 16
  62. #define OMAP4430_RAMP_UP_COUNT_SHIFT 0
  63. #define OMAP4430_RAMP_UP_PRESCAL_SHIFT 8
  64. #define OMAP4430_REGADDR_SHIFT 8
  65. #define OMAP4430_RET_SHIFT 8
  66. #define OMAP4430_RST_GLOBAL_WARM_SW_MASK (1 << 0)
  67. #define OMAP4430_SA_VDD_CORE_L_SHIFT 0
  68. #define OMAP4430_SA_VDD_CORE_L_0_6_MASK (0x7f << 0)
  69. #define OMAP4430_SA_VDD_IVA_L_SHIFT 8
  70. #define OMAP4430_SA_VDD_IVA_L_PRM_VC_SMPS_SA_MASK (0x7f << 8)
  71. #define OMAP4430_SA_VDD_MPU_L_SHIFT 16
  72. #define OMAP4430_SA_VDD_MPU_L_PRM_VC_SMPS_SA_MASK (0x7f << 16)
  73. #define OMAP4430_SCLH_SHIFT 0
  74. #define OMAP4430_SCLL_SHIFT 8
  75. #define OMAP4430_SECURE_WDT_RST_SHIFT 4
  76. #define OMAP4430_SLAVEADDR_SHIFT 0
  77. #define OMAP4430_SMPSWAITTIMEMAX_SHIFT 8
  78. #define OMAP4430_SMPSWAITTIMEMIN_SHIFT 8
  79. #define OMAP4430_TIMEOUT_SHIFT 0
  80. #define OMAP4430_TIMEOUTEN_MASK (1 << 3)
  81. #define OMAP4430_VALID_MASK (1 << 24)
  82. #define OMAP4430_VDDMAX_SHIFT 24
  83. #define OMAP4430_VDDMIN_SHIFT 16
  84. #define OMAP4430_VDD_CORE_VOLT_MGR_RST_SHIFT 8
  85. #define OMAP4430_VDD_IVA_VOLT_MGR_RST_SHIFT 7
  86. #define OMAP4430_VDD_MPU_VOLT_MGR_RST_SHIFT 6
  87. #define OMAP4430_VOLRA_VDD_CORE_L_MASK (0xff << 0)
  88. #define OMAP4430_VOLRA_VDD_IVA_L_MASK (0xff << 8)
  89. #define OMAP4430_VOLRA_VDD_MPU_L_MASK (0xff << 16)
  90. #define OMAP4430_VPENABLE_MASK (1 << 0)
  91. #define OMAP4430_VPVOLTAGE_MASK (0xff << 0)
  92. #define OMAP4430_VP_CORE_TRANXDONE_ST_MASK (1 << 21)
  93. #define OMAP4430_VP_IVA_TRANXDONE_ST_MASK (1 << 29)
  94. #define OMAP4430_VP_MPU_TRANXDONE_ST_MASK (1 << 5)
  95. #define OMAP4430_VSTEPMAX_SHIFT 0
  96. #define OMAP4430_VSTEPMIN_SHIFT 0
  97. #define OMAP4430_WUCLK_CTRL_MASK (1 << 8)
  98. #define OMAP4430_WUCLK_STATUS_SHIFT 9
  99. #define OMAP4430_WUCLK_STATUS_MASK (1 << 9)
  100. #endif