MALI: midgard: RK: add separate src dir of Midgard driver for RK Linux device
[firefly-linux-kernel-4.4.55.git] / drivers / gpu / arm / midgard_for_linux / backend / gpu / Kbuild
1 #
2 # (C) COPYRIGHT 2014 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
15 # add default config for RK Linux device for absence of Kconfig.
16 include drivers/gpu/arm/midgard_for_linux/default_config.mk
17
18 BACKEND += \
19         backend/gpu/mali_kbase_cache_policy_backend.c \
20         backend/gpu/mali_kbase_device_hw.c \
21         backend/gpu/mali_kbase_gpu.c \
22         backend/gpu/mali_kbase_gpuprops_backend.c \
23         backend/gpu/mali_kbase_debug_job_fault_backend.c \
24         backend/gpu/mali_kbase_irq_linux.c \
25         backend/gpu/mali_kbase_instr_backend.c \
26         backend/gpu/mali_kbase_jm_as.c \
27         backend/gpu/mali_kbase_jm_hw.c \
28         backend/gpu/mali_kbase_jm_rb.c \
29         backend/gpu/mali_kbase_js_affinity.c \
30         backend/gpu/mali_kbase_js_backend.c \
31         backend/gpu/mali_kbase_mmu_hw_direct.c \
32         backend/gpu/mali_kbase_pm_backend.c \
33         backend/gpu/mali_kbase_pm_driver.c \
34         backend/gpu/mali_kbase_pm_metrics.c \
35         backend/gpu/mali_kbase_pm_ca.c \
36         backend/gpu/mali_kbase_pm_ca_fixed.c \
37         backend/gpu/mali_kbase_pm_always_on.c \
38         backend/gpu/mali_kbase_pm_coarse_demand.c \
39         backend/gpu/mali_kbase_pm_demand.c \
40         backend/gpu/mali_kbase_pm_policy.c \
41         backend/gpu/mali_kbase_time.c
42
43 ifeq ($(MALI_CUSTOMER_RELEASE),0)
44 BACKEND += \
45         backend/gpu/mali_kbase_pm_ca_random.c \
46         backend/gpu/mali_kbase_pm_demand_always_powered.c \
47         backend/gpu/mali_kbase_pm_fast_start.c
48 endif
49
50 ifeq ($(CONFIG_MALI_DEVFREQ),y)
51 BACKEND += backend/gpu/mali_kbase_devfreq.c
52 endif
53
54 ifeq ($(CONFIG_MALI_NO_MALI),y)
55         # Dummy model
56         BACKEND += backend/gpu/mali_kbase_model_dummy.c
57         BACKEND += backend/gpu/mali_kbase_model_linux.c
58         # HW error simulation
59         BACKEND += backend/gpu/mali_kbase_model_error_generator.c
60 endif
61
62 ifeq ($(CONFIG_DEVFREQ_THERMAL),y)
63         BACKEND += backend/gpu/mali_kbase_power_model_simple.c
64 endif