summaryrefslogtreecommitdiff
path: root/drivers/gpu/arm/midgard/platform/vexpress/mali_kbase_cpu_vexpress.h
diff options
context:
space:
mode:
authorJacob Chen <jacob2.chen@rock-chips.com>2016-10-11 15:41:30 +0800
committerJacob Chen <jacob2.chen@rock-chips.com>2016-10-11 15:41:30 +0800
commitcde3c3fdf278bbf3edc895667a65c0cc16daee0c (patch)
tree32ae79e06d11d677cee0318e2ef5b990d0cbe88e /drivers/gpu/arm/midgard/platform/vexpress/mali_kbase_cpu_vexpress.h
parentf27d1ca8e35893191bb344bb461d9f5f20be5ae7 (diff)
MALI: rockchip: upgrade midgard DDK to r9p0-05rel0release-20161011
Change-Id: Ie46489734268edac2db7508ed6976fc8b72c2f06 Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
Diffstat (limited to 'drivers/gpu/arm/midgard/platform/vexpress/mali_kbase_cpu_vexpress.h')
-rw-r--r--drivers/gpu/arm/midgard/platform/vexpress/mali_kbase_cpu_vexpress.h26
1 files changed, 18 insertions, 8 deletions
diff --git a/drivers/gpu/arm/midgard/platform/vexpress/mali_kbase_cpu_vexpress.h b/drivers/gpu/arm/midgard/platform/vexpress/mali_kbase_cpu_vexpress.h
index da865698133a..ef9bfd721618 100644
--- a/drivers/gpu/arm/midgard/platform/vexpress/mali_kbase_cpu_vexpress.h
+++ b/drivers/gpu/arm/midgard/platform/vexpress/mali_kbase_cpu_vexpress.h
@@ -1,6 +1,6 @@
/*
*
- * (C) COPYRIGHT 2012-2013, 2015-2016 ARM Limited. All rights reserved.
+ * (C) COPYRIGHT 2012-2013, 2015 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
@@ -26,13 +26,23 @@
int kbase_get_vexpress_cpu_clock_speed(u32 *cpu_clock);
/**
- * Get the minimum GPU frequency for the attached logic tile
- */
-u32 kbase_get_platform_min_freq(void);
-
-/**
- * Get the maximum GPU frequency for the attached logic tile
+ * kbase_get_platform_logic_tile_type - determines which LogicTile type
+ * is used by Versatile Express
+ *
+ * When platform_config build parameter is specified as vexpress, i.e.,
+ * platform_config=vexpress, GPU frequency may vary dependent on the
+ * particular platform. The GPU frequency depends on the LogicTile type.
+ *
+ * This function is called by kbase_common_device_init to determine
+ * which LogicTile type is used by the platform by reading the HBI value
+ * of the daughterboard which holds the LogicTile:
+ *
+ * 0x192 HBI0192 Virtex-5
+ * 0x217 HBI0217 Virtex-6
+ * 0x247 HBI0247 Virtex-7
+ *
+ * Return: HBI value of the logic tile daughterboard, zero if not accessible
*/
-u32 kbase_get_platform_max_freq(void);
+u32 kbase_get_platform_logic_tile_type(void);
#endif /* _KBASE_CPU_VEXPRESS_H_ */