statisticsMemoryDefinition.c 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /*
  2. * OMAP3 powerdomain definitions
  3. *
  4. * Copyright (C) 2007-2008, 2011 Texas Instruments, Inc.
  5. * Copyright (C) 2007-2011 Nokia Corporation
  6. *
  7. * Paul Walmsley, Jouni Högander
  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. #include <linux/kernel.h>
  14. #include <linux/init.h>
  15. #include <linux/bug.h>
  16. #include "soc.h"
  17. #include "powerdomain.h"
  18. #include "powerdomains2xxx_3xxx_data.h"
  19. #include "prcm-common.h"
  20. #include "prm2xxx_3xxx.h"
  21. #include "prm-regbits-34xx.h"
  22. #include "cm2xxx_3xxx.h"
  23. #include "cm-regbits-34xx.h"
  24. /*
  25. * 34XX-specific powerdomains, dependencies
  26. */
  27. /*
  28. * Powerdomains
  29. */
  30. static struct powerdomain iva2_pwrdm = {
  31. .name = "iva2_pwrdm",
  32. .prcm_offs = OMAP3430_IVA2_MOD,
  33. .pwrsts = PWRSTS_OFF_RET_ON,
  34. .pwrsts_logic_ret = PWRSTS_OFF_RET,
  35. .banks = 4,
  36. .pwrsts_mem_ret = {
  37. [0] = PWRSTS_OFF_RET,
  38. [1] = PWRSTS_OFF_RET,
  39. [2] = PWRSTS_OFF_RET,
  40. [3] = PWRSTS_OFF_RET,
  41. },
  42. .pwrsts_mem_on = {
  43. [0] = PWRSTS_ON,
  44. [1] = PWRSTS_ON,
  45. [2] = PWRSTS_OFF_ON,
  46. [3] = PWRSTS_ON,
  47. },
  48. .voltdm = { .name = "mpu_iva" },
  49. };
  50. static struct powerdomain mpu_3xxx_pwrdm = {
  51. .name = "mpu_pwrdm",
  52. .prcm_offs = MPU_MOD,
  53. .pwrsts = PWRSTS_OFF_RET_ON,
  54. .pwrsts_logic_ret = PWRSTS_OFF_RET,
  55. .flags = PWRDM_HAS_MPU_QUIRK,
  56. .banks = 1,
  57. .pwrsts_mem_ret = {
  58. [0] = PWRSTS_OFF_RET,
  59. },
  60. .pwrsts_mem_on = {
  61. [0] = PWRSTS_OFF_ON,