averageDataMemoryDefinition.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /*
  2. * OMAP44xx CM1 instance offset macros
  3. *
  4. * Copyright (C) 2009-2011 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. * XXX This file needs to be updated to align on one of "OMAP4", "OMAP44XX",
  22. * or "OMAP4430".
  23. */
  24. #ifndef __ARCH_ARM_MACH_OMAP2_CM1_44XX_H
  25. #define __ARCH_ARM_MACH_OMAP2_CM1_44XX_H
  26. /* CM1 base address */
  27. #define OMAP4430_CM1_BASE 0x4a004000
  28. #define OMAP44XX_CM1_REGADDR(inst, reg) \
  29. OMAP2_L4_IO_ADDRESS(OMAP4430_CM1_BASE + (inst) + (reg))
  30. /* CM1 instances */
  31. #define OMAP4430_CM1_OCP_SOCKET_INST 0x0000
  32. #define OMAP4430_CM1_CKGEN_INST 0x0100
  33. #define OMAP4430_CM1_MPU_INST 0x0300
  34. #define OMAP4430_CM1_TESLA_INST 0x0400
  35. #define OMAP4430_CM1_ABE_INST 0x0500
  36. #define OMAP4430_CM1_RESTORE_INST 0x0e00
  37. #define OMAP4430_CM1_INSTR_INST 0x0f00
  38. /* CM1 clockdomain register offsets (from instance start) */
  39. #define OMAP4430_CM1_MPU_MPU_CDOFFS 0x0000
  40. #define OMAP4430_CM1_TESLA_TESLA_CDOFFS 0x0000
  41. #define OMAP4430_CM1_ABE_ABE_CDOFFS 0x0000
  42. /* CM1 */
  43. /* CM1.OCP_SOCKET_CM1 register offsets */
  44. #define OMAP4_REVISION_CM1_OFFSET 0x0000
  45. #define OMAP4430_REVISION_CM1 OMAP44XX_CM1_REGADDR(OMAP4430_CM1_OCP_SOCKET_INST, 0x0000)
  46. #define OMAP4_CM_CM1_PROFILING_CLKCTRL_OFFSET 0x0040
  47. #define OMAP4430_CM_CM1_PROFILING_CLKCTRL OMAP44XX_CM1_REGADDR(OMAP4430_CM1_OCP_SOCKET_INST, 0x0040)
  48. /* CM1.CKGEN_CM1 register offsets */
  49. #define OMAP4_CM_CLKSEL_CORE_OFFSET 0x0000
  50. #define OMAP4430_CM_CLKSEL_CORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_CKGEN_INST, 0x0000)
  51. #define OMAP4_CM_CLKSEL_ABE_OFFSET 0x0008
  52. #define OMAP4430_CM_CLKSEL_ABE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_CKGEN_INST, 0x0008)
  53. #define OMAP4_CM_DLL_CTRL_OFFSET 0x0010
  54. #define OMAP4430_CM_DLL_CTRL OMAP44XX_CM1_REGADDR(OMAP4430_CM1_CKGEN_INST, 0x0010)
  55. #define OMAP4_CM_CLKMODE_DPLL_CORE_OFFSET 0x0020
  56. #define OMAP4430_CM_CLKMODE_DPLL_CORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_CKGEN_INST, 0x0020)
  57. #define OMAP4_CM_IDLEST_DPLL_CORE_OFFSET 0x0024
  58. #define OMAP4430_CM_IDLEST_DPLL_CORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_CKGEN_INST, 0x0024)
  59. #define OMAP4_CM_AUTOIDLE_DPLL_CORE_OFFSET 0x0028
  60. #define OMAP4430_CM_AUTOIDLE_DPLL_CORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_CKGEN_INST, 0x0028)
  61. #define OMAP4_CM_CLKSEL_DPLL_CORE_OFFSET 0x002c
  62. #define OMAP4430_CM_CLKSEL_DPLL_CORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_CKGEN_INST, 0x002c)
  63. #define OMAP4_CM_DIV_M2_DPLL_CORE_OFFSET 0x0030
  64. #define OMAP4430_CM_DIV_M2_DPLL_CORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_CKGEN_INST, 0x0030)
  65. #define OMAP4_CM_DIV_M3_DPLL_CORE_OFFSET 0x0034
  66. #define OMAP4430_CM_DIV_M3_DPLL_CORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_CKGEN_INST, 0x0034)
  67. #define OMAP4_CM_DIV_M4_DPLL_CORE_OFFSET 0x0038
  68. #define OMAP4430_CM_DIV_M4_DPLL_CORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_CKGEN_INST, 0x0038)
  69. #define OMAP4_CM_DIV_M5_DPLL_CORE_OFFSET 0x003c
  70. #define OMAP4430_CM_DIV_M5_DPLL_CORE OMAP44XX_CM1_REGADDR(OMAP4430_CM1_CKGEN_INST, 0x003c)