ctrl_module_wkup_44xx.h 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. /*
  2. * OMAP44xx CTRL_MODULE_WKUP registers and bitfields
  3. *
  4. * Copyright (C) 2009-2010 Texas Instruments, Inc.
  5. *
  6. * Benoit Cousson (b-cousson@ti.com)
  7. * Santosh Shilimkar (santosh.shilimkar@ti.com)
  8. *
  9. * This file is automatically generated from the OMAP hardware databases.
  10. * We respectfully ask that any modifications to this file be coordinated
  11. * with the public linux-omap@vger.kernel.org mailing list and the
  12. * authors above to ensure that the autogeneration scripts are kept
  13. * up-to-date with the file contents.
  14. *
  15. * This program is free software; you can redistribute it and/or modify
  16. * it under the terms of the GNU General Public License version 2 as
  17. * published by the Free Software Foundation.
  18. */
  19. #ifndef __ARCH_ARM_MACH_OMAP2_CTRL_MODULE_WKUP_44XX_H
  20. #define __ARCH_ARM_MACH_OMAP2_CTRL_MODULE_WKUP_44XX_H
  21. /* Base address */
  22. #define OMAP4_CTRL_MODULE_WKUP 0x4a30c000
  23. /* Registers offset */
  24. #define OMAP4_CTRL_MODULE_WKUP_IP_REVISION 0x0000
  25. #define OMAP4_CTRL_MODULE_WKUP_IP_HWINFO 0x0004
  26. #define OMAP4_CTRL_MODULE_WKUP_IP_SYSCONFIG 0x0010
  27. #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_0 0x0460
  28. #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_1 0x0464
  29. #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_2 0x0468
  30. #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_3 0x046c
  31. #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_4 0x0470
  32. #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_5 0x0474
  33. #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_6 0x0478
  34. #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_7 0x047c
  35. #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_8 0x0480
  36. #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_9 0x0484
  37. #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_10 0x0488
  38. #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_11 0x048c
  39. #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_12 0x0490
  40. #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_13 0x0494
  41. #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_14 0x0498
  42. #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_15 0x049c
  43. #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_16 0x04a0
  44. #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_17 0x04a4
  45. #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_18 0x04a8
  46. #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_19 0x04ac
  47. #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_20 0x04b0
  48. #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_21 0x04b4
  49. #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_22 0x04b8
  50. #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_23 0x04bc
  51. #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_24 0x04c0
  52. #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_25 0x04c4
  53. #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_26 0x04c8
  54. #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_27 0x04cc
  55. #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_28 0x04d0
  56. #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_29 0x04d4
  57. #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_30 0x04d8
  58. #define OMAP4_CTRL_MODULE_WKUP_CONF_DEBUG_SEL_TST_31 0x04dc
  59. /* Registers shifts and masks */
  60. /* IP_REVISION */
  61. #define OMAP4_IP_REV_SCHEME_SHIFT 30
  62. #define OMAP4_IP_REV_SCHEME_MASK (0x3 << 30)
  63. #define OMAP4_IP_REV_FUNC_SHIFT 16
  64. #define OMAP4_IP_REV_FUNC_MASK (0xfff << 16)
  65. #define OMAP4_IP_REV_RTL_SHIFT 11
  66. #define OMAP4_IP_REV_RTL_MASK (0x1f << 11)
  67. #define OMAP4_IP_REV_MAJOR_SHIFT 8
  68. #define OMAP4_IP_REV_MAJOR_MASK (0x7 << 8)
  69. #define OMAP4_IP_REV_CUSTOM_SHIFT 6
  70. #define OMAP4_IP_REV_CUSTOM_MASK (0x3 << 6)
  71. #define OMAP4_IP_REV_MINOR_SHIFT 0
  72. #define OMAP4_IP_REV_MINOR_MASK (0x3f << 0)
  73. /* IP_HWINFO */
  74. #define OMAP4_IP_HWINFO_SHIFT 0
  75. #define OMAP4_IP_HWINFO_MASK (0xffffffff << 0)
  76. /* IP_SYSCONFIG */
  77. #define OMAP4_IP_SYSCONFIG_IDLEMODE_SHIFT 2
  78. #define OMAP4_IP_SYSCONFIG_IDLEMODE_MASK (0x3 << 2)
  79. /* CONF_DEBUG_SEL_TST_0 */
  80. #define OMAP4_WKUP_MODE_SHIFT 0
  81. #define OMAP4_WKUP_MODE_MASK (1 << 0)
  82. #endif