3 * (C) COPYRIGHT 2015-2016 ARM Limited. All rights reserved.
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
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.
18 #include "backend/gpu/mali_kbase_cache_policy_backend.h"
19 #include <backend/gpu/mali_kbase_device_internal.h>
21 void kbase_cache_set_coherency_mode(struct kbase_device *kbdev,
24 kbdev->current_gpu_coherency_mode = mode;
26 if (kbase_hw_has_feature(kbdev, BASE_HW_FEATURE_COHERENCY_REG))
27 kbase_reg_write(kbdev, COHERENCY_ENABLE, mode, NULL);