config.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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 = MMU,
  38. .base = 0xC0003000,
  39. .irq = -1,
  40. .description = "Mali-400 MMU for GP",
  41. .mmu_id = 1
  42. },
  43. {
  44. .type = MMU,
  45. .base = 0xC0004000,
  46. .irq = -1,
  47. .description = "Mali-400 MMU for PP 0",
  48. .mmu_id = 2
  49. },
  50. {
  51. .type = MMU,
  52. .base = 0xC0005000,
  53. .irq = -1,
  54. .description = "Mali-400 MMU for PP 1",
  55. .mmu_id = 3
  56. },
  57. {
  58. .type = MEMORY,
  59. .description = "Mali SDRAM remapped to baseboard",
  60. .cpu_usage_adjust = -0x50000000,
  61. .alloc_order = 0, /* Highest preference for this memory */
  62. .base = 0xD0000000,
  63. .size = 0x10000000,
  64. .flags = _MALI_CPU_WRITEABLE | _MALI_CPU_READABLE | _MALI_PP_READABLE | _MALI_PP_WRITEABLE |_MALI_GP_READABLE | _MALI_GP_WRITEABLE
  65. },
  66. {
  67. .type = MEMORY,
  68. .description = "Mali ZBT",
  69. .alloc_order = 5, /* Medium preference for this memory */
  70. .base = 0xe1000000,
  71. .size = 0x01000000,
  72. .flags = _MALI_CPU_WRITEABLE | _MALI_CPU_READABLE | _MALI_PP_READABLE | _MALI_PP_WRITEABLE |_MALI_GP_READABLE | _MALI_GP_WRITEABLE
  73. },
  74. {
  75. .type = MEM_VALIDATION,
  76. .description = "Framebuffer",
  77. .base = 0xe0000000,
  78. .size = 0x01000000,
  79. .flags = _MALI_CPU_WRITEABLE | _MALI_CPU_READABLE | _MALI_PP_WRITEABLE | _MALI_PP_READABLE
  80. },
  81. {
  82. .type = MALI400L2,
  83. .base = 0xC0001000,
  84. .description = "Mali-400 L2 cache"
  85. },
  86. };
  87. #endif /* __ARCH_CONFIG_H__ */