Kconfig 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. #
  2. # (C) COPYRIGHT 2012-2015 ARM Limited. All rights reserved.
  3. #
  4. # This program is free software and is provided to you under the terms of the
  5. # GNU General Public License version 2 as published by the Free Software
  6. # Foundation, and any use by you of this program is subject to the terms
  7. # of such GNU licence.
  8. #
  9. # A copy of the licence is included with the program, and can also be obtained
  10. # from Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  11. # Boston, MA 02110-1301, USA.
  12. #
  13. #
  14. menuconfig MALI_MIDGARD
  15. tristate "Mali Midgard series support"
  16. select GPU_TRACEPOINTS if ANDROID
  17. default n
  18. help
  19. Enable this option to build support for a ARM Mali Midgard GPU.
  20. To compile this driver as a module, choose M here:
  21. this will generate a single module, called mali_kbase.
  22. config MALI_MIDGARD_DVFS
  23. bool "Enable legacy DVFS"
  24. depends on MALI_MIDGARD && !MALI_DEVFREQ && !MALI_PLATFORM_DEVICETREE
  25. default n
  26. help
  27. Choose this option to enable legacy DVFS in the Mali Midgard DDK.
  28. config MALI_MIDGARD_ENABLE_TRACE
  29. bool "Enable kbase tracing"
  30. depends on MALI_MIDGARD
  31. default n
  32. help
  33. Enables tracing in kbase. Trace log available through
  34. the "mali_trace" debugfs file, when the CONFIG_DEBUG_FS is enabled
  35. config MALI_DEVFREQ
  36. bool "devfreq support for Mali"
  37. depends on MALI_MIDGARD && PM_DEVFREQ
  38. help
  39. Support devfreq for Mali.
  40. Using the devfreq framework and, by default, the simpleondemand
  41. governor, the frequency of Mali will be dynamically selected from the
  42. available OPPs.
  43. config MALI_DMA_FENCE
  44. bool "DMA_BUF fence support for Mali (EXPERIMENTAL)"
  45. depends on MALI_MIDGARD && !KDS
  46. default n
  47. help
  48. Support DMA_BUF fences for Mali.
  49. This option should only be enabled if KDS is not present and
  50. the Linux Kernel has built in support for DMA_BUF fences.
  51. # MALI_EXPERT configuration options
  52. menuconfig MALI_EXPERT
  53. depends on MALI_MIDGARD
  54. bool "Enable Expert Settings"
  55. default n
  56. help
  57. Enabling this option and modifying the default settings may produce a driver with performance or
  58. other limitations.
  59. config MALI_PRFCNT_SET_SECONDARY
  60. bool "Use secondary set of performance counters"
  61. depends on MALI_MIDGARD && MALI_EXPERT
  62. default n
  63. help
  64. Select this option to use secondary set of performance counters. Kernel
  65. features that depend on an access to the primary set of counters may
  66. become unavailable. Enabling this option will prevent power management
  67. from working optimally and may cause instrumentation tools to return
  68. bogus results.
  69. If unsure, say N.
  70. config MALI_DEBUG_SHADER_SPLIT_FS
  71. bool "Allow mapping of shader cores via sysfs"
  72. depends on MALI_MIDGARD && MALI_EXPERT
  73. default n
  74. help
  75. Select this option to provide a sysfs entry for runtime configuration of shader
  76. core affinity masks.
  77. choice
  78. prompt "Platform configuration"
  79. depends on MALI_MIDGARD && MALI_EXPERT
  80. default MALI_PLATFORM_DEVICETREE
  81. help
  82. Select the SOC platform that contains a Mali Midgard GPU
  83. config MALI_PLATFORM_DEVICETREE
  84. bool "Device Tree platform"
  85. depends on OF
  86. help
  87. Select this option to use Device Tree with the Mali driver.
  88. When using this option the Mali driver will get the details of the
  89. GPU hardware from the Device Tree. This means that the same driver
  90. binary can run on multiple platforms as long as all the GPU hardware
  91. details are described in the device tree.
  92. Device Tree is the recommended method for the Mali driver platform
  93. integration.
  94. config MALI_PLATFORM_VEXPRESS
  95. depends on ARCH_VEXPRESS && (ARCH_VEXPRESS_CA9X4 || ARCH_VEXPRESS_CA15X4)
  96. bool "Versatile Express"
  97. config MALI_PLATFORM_VEXPRESS_VIRTEX7_40MHZ
  98. depends on ARCH_VEXPRESS && (ARCH_VEXPRESS_CA9X4 || ARCH_VEXPRESS_CA15X4)
  99. bool "Versatile Express w/Virtex7 @ 40Mhz"
  100. config MALI_PLATFORM_GOLDFISH
  101. depends on ARCH_GOLDFISH
  102. bool "Android Goldfish virtual CPU"
  103. config MALI_PLATFORM_PBX
  104. depends on ARCH_REALVIEW && REALVIEW_EB_A9MP && MACH_REALVIEW_PBX
  105. bool "Realview PBX-A9"
  106. config MALI_PLATFORM_THIRDPARTY
  107. bool "Third Party Platform"
  108. endchoice
  109. config MALI_PLATFORM_THIRDPARTY_NAME
  110. depends on MALI_MIDGARD && MALI_PLATFORM_THIRDPARTY && MALI_EXPERT
  111. string "Third party platform name"
  112. help
  113. Enter the name of a third party platform that is supported. The third part configuration
  114. file must be in midgard/config/tpip/mali_kbase_config_xxx.c where xxx is the name
  115. specified here.
  116. config MALI_DEBUG
  117. bool "Debug build"
  118. depends on MALI_MIDGARD && MALI_EXPERT
  119. default n
  120. help
  121. Select this option for increased checking and reporting of errors.
  122. config MALI_TRACE_TIMELINE
  123. bool "Timeline tracing"
  124. depends on MALI_MIDGARD && MALI_EXPERT
  125. default n
  126. help
  127. Enables timeline tracing through the kernel tracepoint system.
  128. config MALI_SYSTEM_TRACE
  129. bool "Enable system event tracing support"
  130. depends on MALI_MIDGARD && MALI_EXPERT
  131. default n
  132. help
  133. Choose this option to enable system trace events for each
  134. kbase event. This is typically used for debugging but has
  135. minimal overhead when not in use. Enable only if you know what
  136. you are doing.
  137. source "drivers/gpu/arm/midgard/platform/Kconfig"