summaryrefslogtreecommitdiff
path: root/mali_kbase/platform
diff options
context:
space:
mode:
authorSidath Senanayake <sidaths@google.com>2017-09-19 18:23:58 +0200
committerSidath Senanayake <sidaths@google.com>2017-09-19 18:23:58 +0200
commitc19c62718d90e8efa4675528aae6ab6fde13a12f (patch)
tree4601ada4314a2641b2ebdb7073198a5a406085f8 /mali_kbase/platform
parentea23e535ae857c92d45cb11bdd5dba7c27579726 (diff)
downloadgpu-c19c62718d90e8efa4675528aae6ab6fde13a12f.tar.gz
Mali Bifrost DDK r8p0 KMD
Provenance: a0013c522 (collaborate/EAC/b_r8p0) BX304L01B-BU-00000-r8p0-01rel0 BX304L06A-BU-00000-r8p0-01rel0 BX304X07X-BU-00000-r8p0-01rel0 Signed-off-by: Sidath Senanayake <sidaths@google.com> Change-Id: Iab1f0fc8f3602409180629b210c624791be774c5
Diffstat (limited to 'mali_kbase/platform')
-rw-r--r--mali_kbase/platform/Kconfig4
-rw-r--r--mali_kbase/platform/devicetree/Kbuild6
-rw-r--r--mali_kbase/platform/devicetree/mali_kbase_config_devicetree.c11
-rw-r--r--mali_kbase/platform/devicetree/mali_kbase_runtime_pm.c1
-rw-r--r--mali_kbase/platform/mali_kbase_platform_fake.h38
-rw-r--r--mali_kbase/platform/vexpress/Kbuild7
-rw-r--r--mali_kbase/platform/vexpress_1xv7_a57/Kbuild6
-rw-r--r--mali_kbase/platform/vexpress_6xvirtex7_10mhz/Kbuild7
8 files changed, 27 insertions, 53 deletions
diff --git a/mali_kbase/platform/Kconfig b/mali_kbase/platform/Kconfig
index 8fb4e91..38835d3 100644
--- a/mali_kbase/platform/Kconfig
+++ b/mali_kbase/platform/Kconfig
@@ -1,5 +1,5 @@
#
-# (C) COPYRIGHT 2012 ARM Limited. All rights reserved.
+# (C) COPYRIGHT 2012-2013, 2017 ARM Limited. All rights reserved.
#
# This program is free software and is provided to you under the terms of the
# GNU General Public License version 2 as published by the Free Software
@@ -19,6 +19,6 @@
#
# "drivers/gpu/arm/midgard/platform/xxx/Kconfig"
#
-# Where xxx is the platform name is the name set in MALI_PLATFORM_THIRDPARTY_NAME
+# Where xxx is the platform name is the name set in MALI_PLATFORM_NAME
#
diff --git a/mali_kbase/platform/devicetree/Kbuild b/mali_kbase/platform/devicetree/Kbuild
index e888a42..d40d798 100644
--- a/mali_kbase/platform/devicetree/Kbuild
+++ b/mali_kbase/platform/devicetree/Kbuild
@@ -1,5 +1,5 @@
#
-# (C) COPYRIGHT 2012-2016 ARM Limited. All rights reserved.
+# (C) COPYRIGHT 2012-2017 ARM Limited. All rights reserved.
#
# This program is free software and is provided to you under the terms of the
# GNU General Public License version 2 as published by the Free Software
@@ -14,5 +14,5 @@
mali_kbase-y += \
- $(MALI_PLATFORM_THIRDPARTY_DIR)/mali_kbase_config_devicetree.o \
- $(MALI_PLATFORM_THIRDPARTY_DIR)/mali_kbase_runtime_pm.o
+ $(MALI_PLATFORM_DIR)/mali_kbase_config_devicetree.o \
+ $(MALI_PLATFORM_DIR)/mali_kbase_runtime_pm.o
diff --git a/mali_kbase/platform/devicetree/mali_kbase_config_devicetree.c b/mali_kbase/platform/devicetree/mali_kbase_config_devicetree.c
index b2a7c93..29ccc29 100644
--- a/mali_kbase/platform/devicetree/mali_kbase_config_devicetree.c
+++ b/mali_kbase/platform/devicetree/mali_kbase_config_devicetree.c
@@ -1,6 +1,6 @@
/*
*
- * (C) COPYRIGHT 2015 ARM Limited. All rights reserved.
+ * (C) COPYRIGHT 2015, 2017 ARM Limited. All rights reserved.
*
* This program is free software and is provided to you under the terms of the
* GNU General Public License version 2 as published by the Free Software
@@ -29,3 +29,12 @@ struct kbase_platform_config *kbase_get_platform_config(void)
{
return &dummy_platform_config;
}
+
+int kbase_platform_register(void)
+{
+ return 0;
+}
+
+void kbase_platform_unregister(void)
+{
+}
diff --git a/mali_kbase/platform/devicetree/mali_kbase_runtime_pm.c b/mali_kbase/platform/devicetree/mali_kbase_runtime_pm.c
index 50cfb2c..9fe37c8 100644
--- a/mali_kbase/platform/devicetree/mali_kbase_runtime_pm.c
+++ b/mali_kbase/platform/devicetree/mali_kbase_runtime_pm.c
@@ -18,7 +18,6 @@
#include <mali_kbase.h>
#include <mali_kbase_defs.h>
#include <linux/pm_runtime.h>
-#include <linux/suspend.h>
#include "mali_kbase_config_platform.h"
static int pm_callback_power_on(struct kbase_device *kbdev)
diff --git a/mali_kbase/platform/mali_kbase_platform_fake.h b/mali_kbase/platform/mali_kbase_platform_fake.h
deleted file mode 100644
index 01f9dfc..0000000
--- a/mali_kbase/platform/mali_kbase_platform_fake.h
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- *
- * (C) COPYRIGHT 2010-2014 ARM Limited. All rights reserved.
- *
- * This program is free software and is provided to you under the terms of the
- * GNU General Public License version 2 as published by the Free Software
- * Foundation, and any use by you of this program is subject to the terms
- * of such GNU licence.
- *
- * A copy of the licence is included with the program, and can also be obtained
- * from Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- * Boston, MA 02110-1301, USA.
- *
- */
-
-
-
-#ifdef CONFIG_MALI_PLATFORM_FAKE
-
-/**
- * kbase_platform_fake_register - Entry point for fake platform registration
- *
- * This function is called early on in the initialization during execution of
- * kbase_driver_init.
- *
- * Return: 0 to indicate success, non-zero for failure.
- */
-int kbase_platform_fake_register(void);
-
-/**
- * kbase_platform_fake_unregister - Entry point for fake platform unregistration
- *
- * This function is called in the termination during execution of
- * kbase_driver_exit.
- */
-void kbase_platform_fake_unregister(void);
-
-#endif /* CONFIG_MALI_PLATFORM_FAKE */
diff --git a/mali_kbase/platform/vexpress/Kbuild b/mali_kbase/platform/vexpress/Kbuild
index 1caa293..d9d5e90 100644
--- a/mali_kbase/platform/vexpress/Kbuild
+++ b/mali_kbase/platform/vexpress/Kbuild
@@ -1,5 +1,5 @@
#
-# (C) COPYRIGHT 2012-2013, 2016 ARM Limited. All rights reserved.
+# (C) COPYRIGHT 2012-2013, 2016-2017 ARM Limited. All rights reserved.
#
# This program is free software and is provided to you under the terms of the
# GNU General Public License version 2 as published by the Free Software
@@ -14,5 +14,6 @@
mali_kbase-y += \
- $(MALI_PLATFORM_THIRDPARTY_DIR)/mali_kbase_config_vexpress.o \
- $(MALI_PLATFORM_THIRDPARTY_DIR)/mali_kbase_cpu_vexpress.o
+ $(MALI_PLATFORM_DIR)/mali_kbase_config_vexpress.o \
+ $(MALI_PLATFORM_DIR)/mali_kbase_cpu_vexpress.o \
+ mali_kbase_platform_fake.o
diff --git a/mali_kbase/platform/vexpress_1xv7_a57/Kbuild b/mali_kbase/platform/vexpress_1xv7_a57/Kbuild
index 7efe8fa..df87c74 100644
--- a/mali_kbase/platform/vexpress_1xv7_a57/Kbuild
+++ b/mali_kbase/platform/vexpress_1xv7_a57/Kbuild
@@ -1,5 +1,5 @@
#
-# (C) COPYRIGHT 2013-2014, 2016 ARM Limited. All rights reserved.
+# (C) COPYRIGHT 2013-2014, 2016-2017 ARM Limited. All rights reserved.
#
# This program is free software and is provided to you under the terms of the
# GNU General Public License version 2 as published by the Free Software
@@ -13,4 +13,6 @@
#
-mali_kbase-y += $(MALI_PLATFORM_THIRDPARTY_DIR)/mali_kbase_config_vexpress.o
+mali_kbase-y += \
+ $(MALI_PLATFORM_DIR)/mali_kbase_config_vexpress.o \
+ mali_kbase_platform_fake.o
diff --git a/mali_kbase/platform/vexpress_6xvirtex7_10mhz/Kbuild b/mali_kbase/platform/vexpress_6xvirtex7_10mhz/Kbuild
index 1caa293..d9d5e90 100644
--- a/mali_kbase/platform/vexpress_6xvirtex7_10mhz/Kbuild
+++ b/mali_kbase/platform/vexpress_6xvirtex7_10mhz/Kbuild
@@ -1,5 +1,5 @@
#
-# (C) COPYRIGHT 2012-2013, 2016 ARM Limited. All rights reserved.
+# (C) COPYRIGHT 2012-2013, 2016-2017 ARM Limited. All rights reserved.
#
# This program is free software and is provided to you under the terms of the
# GNU General Public License version 2 as published by the Free Software
@@ -14,5 +14,6 @@
mali_kbase-y += \
- $(MALI_PLATFORM_THIRDPARTY_DIR)/mali_kbase_config_vexpress.o \
- $(MALI_PLATFORM_THIRDPARTY_DIR)/mali_kbase_cpu_vexpress.o
+ $(MALI_PLATFORM_DIR)/mali_kbase_config_vexpress.o \
+ $(MALI_PLATFORM_DIR)/mali_kbase_cpu_vexpress.o \
+ mali_kbase_platform_fake.o