config.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. /*
  2. * Copyright (C) 2010-2011 ARM Limited. All rights reserved.
  3. *
  4. * This program is free software and is provided to you under the terms of the GNU General Public License version 2
  5. * as published by the Free Software Foundation, and any use by you of this program is subject to the terms of such GNU licence.
  6. *
  7. * A copy of the licence is included with the program, and can also be obtained from Free Software
  8. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  9. */
  10. #ifndef __ARCH_CONFIG_H__
  11. #define __ARCH_CONFIG_H__
  12. /* Configuration for the PB platform with ZBT memory enabled */
  13. static _mali_osk_resource_t arch_configuration [] =
  14. {
  15. {
  16. .type = MALI400GP,
  17. .description = "Mali-400 GP",
  18. .base = 0xC0000000,
  19. .irq = -1,
  20. .mmu_id = 1
  21. },
  22. {
  23. .type = MALI400PP,
  24. .base = 0xc0008000,
  25. .irq = -1,
  26. .description = "Mali-400 PP 0",
  27. .mmu_id = 2
  28. },
  29. {
  30. .type = MALI400PP,
  31. .base = 0xc000A000,
  32. .irq = -1,
  33. .description = "Mali-400 PP 1",
  34. .mmu_id = 3
  35. },
  36. {
  37. .type = MALI400PP,
  38. .base = 0xc000C000,
  39. .irq = -1,
  40. .description = "Mali-400 PP 2",
  41. .mmu_id = 4
  42. },
  43. {
  44. .type = MMU,
  45. .base = 0xC0003000,
  46. .irq = 102,
  47. .description = "Mali-400 MMU for GP",
  48. .mmu_id = 1
  49. },
  50. {
  51. .type = MMU,
  52. .base = 0xC0004000,
  53. .irq = 102,
  54. .description = "Mali-400 MMU for PP 0",
  55. .mmu_id = 2
  56. },
  57. {
  58. .type = MMU,
  59. .base = 0xC0005000,
  60. .irq = 102,
  61. .description = "Mali-400 MMU for PP 1",
  62. .mmu_id = 3
  63. },
  64. {
  65. .type = MMU,
  66. .base = 0xC0006000,
  67. .irq = 102,
  68. .description = "Mali-400 MMU for PP 2",
  69. .mmu_id = 4
  70. },
  71. {
  72. .type = MEMORY,
  73. .description = "Mali SDRAM remapped to baseboard",
  74. .cpu_usage_adjust = -0x50000000,
  75. .alloc_order = 0, /* Highest preference for this memory */
  76. .base = 0xD0000000,
  77. .size = 0x10000000,
  78. .flags = _MALI_CPU_WRITEABLE | _MALI_CPU_READABLE | _MALI_PP_READABLE | _MALI_PP_WRITEABLE |_MALI_GP_READABLE | _MALI_GP_WRITEABLE
  79. },
  80. {
  81. .type = MEMORY,
  82. .description = "Mali ZBT",
  83. .alloc_order = 5, /* Medium preference for this memory */
  84. .base = 0xe1000000,
  85. .size = 0x01000000,
  86. .flags = _MALI_CPU_WRITEABLE | _MALI_CPU_READABLE | _MALI_PP_READABLE | _MALI_PP_WRITEABLE |_MALI_GP_READABLE | _MALI_GP_WRITEABLE
  87. },
  88. {
  89. .type = MEM_VALIDATION,
  90. .description = "Framebuffer",
  91. .base = 0xe0000000,
  92. .size = 0x01000000,
  93. .flags = _MALI_CPU_WRITEABLE | _MALI_CPU_READABLE | _MALI_PP_WRITEABLE | _MALI_PP_READABLE
  94. },
  95. {
  96. .type = MALI400L2,
  97. .base = 0xC0001000,
  98. .description = "Mali-400 L2 cache"
  99. },
  100. };
  101. #endif /* __ARCH_CONFIG_H__ */