config.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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 = PMU,
  17. .description = "Mali-300 PMU",
  18. .base = 0xC0002000,
  19. .irq = -1,
  20. .mmu_id = 0
  21. },
  22. {
  23. .type = MALI300GP,
  24. .description = "Mali-300 GP",
  25. .base = 0xC0000000,
  26. .irq = -1,
  27. .mmu_id = 1
  28. },
  29. {
  30. .type = MALI300PP,
  31. .base = 0xc0008000,
  32. .irq = -1,
  33. .description = "Mali-300 PP",
  34. .mmu_id = 2
  35. },
  36. {
  37. .type = MMU,
  38. .base = 0xC0003000,
  39. .irq = -1,
  40. .description = "Mali-300 MMU for GP",
  41. .mmu_id = 1
  42. },
  43. {
  44. .type = MMU,
  45. .base = 0xC0004000,
  46. .irq = -1,
  47. .description = "Mali-300 MMU for PP",
  48. .mmu_id = 2
  49. },
  50. {
  51. .type = MEMORY,
  52. .description = "Mali SDRAM remapped to baseboard",
  53. .cpu_usage_adjust = -0x50000000,
  54. .alloc_order = 0, /* Highest preference for this memory */
  55. .base = 0xD0000000,
  56. .size = 0x10000000,
  57. .flags = _MALI_CPU_WRITEABLE | _MALI_CPU_READABLE | _MALI_PP_READABLE | _MALI_PP_WRITEABLE |_MALI_GP_READABLE | _MALI_GP_WRITEABLE
  58. },
  59. {
  60. .type = MEMORY,
  61. .description = "Mali ZBT",
  62. .alloc_order = 5, /* Medium preference for this memory */
  63. .base = 0xe1000000,
  64. .size = 0x01000000,
  65. .flags = _MALI_CPU_WRITEABLE | _MALI_CPU_READABLE | _MALI_PP_READABLE | _MALI_PP_WRITEABLE |_MALI_GP_READABLE | _MALI_GP_WRITEABLE
  66. },
  67. {
  68. .type = MEM_VALIDATION,
  69. .description = "Framebuffer",
  70. .base = 0xe0000000,
  71. .size = 0x01000000,
  72. .flags = _MALI_CPU_WRITEABLE | _MALI_CPU_READABLE | _MALI_PP_WRITEABLE | _MALI_PP_READABLE
  73. },
  74. {
  75. .type = MALI300L2,
  76. .base = 0xC0001000,
  77. .description = "Mali-300 L2 cache"
  78. },
  79. };
  80. #endif /* __ARCH_CONFIG_H__ */