c6862539c8ddd20e6de7499625a22d076733e825
[firefly-linux-kernel-4.4.55.git] / drivers / gpu / arm / midgard / backend / gpu / mali_kbase_cache_policy_backend.c
1 /*
2  *
3  * (C) COPYRIGHT 2015-2016 ARM Limited. All rights reserved.
4  *
5  * This program is free software and is provided to you under the terms of the
6  * GNU General Public License version 2 as published by the Free Software
7  * Foundation, and any use by you of this program is subject to the terms
8  * of such GNU licence.
9  *
10  * A copy of the licence is included with the program, and can also be obtained
11  * from Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
12  * Boston, MA  02110-1301, USA.
13  *
14  */
15
16
17
18 #include "backend/gpu/mali_kbase_cache_policy_backend.h"
19 #include <backend/gpu/mali_kbase_device_internal.h>
20
21 void kbase_cache_set_coherency_mode(struct kbase_device *kbdev,
22                 u32 mode)
23 {
24         if (kbase_hw_has_feature(kbdev, BASE_HW_FEATURE_COHERENCY_REG))
25                 kbase_reg_write(kbdev, COHERENCY_ENABLE, mode, NULL);
26 }
27