From: Joonyoung Shim Date: Thu, 19 May 2016 09:44:30 +0000 (+0900) Subject: gpu: arm: midgard: r12p0_04rel0: add exynos5433 platform files X-Git-Tag: submit/tizen/20160810.050017~94 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d31eecba4073e765a21afe87b7206a05aab9718f;p=platform%2Fkernel%2Flinux-exynos.git gpu: arm: midgard: r12p0_04rel0: add exynos5433 platform files We should check more clock and regulator for DVFS. Signed-off-by: Joonyoung Shim Signed-off-by: Sylwester Nawrocki [jy0922.shim: apply to midgard r12p0_04rel0 with removing some codes] --- diff --git a/drivers/gpu/arm/midgard/r12p0_04rel0/platform/exynos5433/Kbuild b/drivers/gpu/arm/midgard/r12p0_04rel0/platform/exynos5433/Kbuild new file mode 100644 index 000000000000..10c50550e5da --- /dev/null +++ b/drivers/gpu/arm/midgard/r12p0_04rel0/platform/exynos5433/Kbuild @@ -0,0 +1 @@ +obj-y += exynos5433.o diff --git a/drivers/gpu/arm/midgard/r12p0_04rel0/platform/exynos5433/exynos5433.c b/drivers/gpu/arm/midgard/r12p0_04rel0/platform/exynos5433/exynos5433.c new file mode 100644 index 000000000000..59e41477f103 --- /dev/null +++ b/drivers/gpu/arm/midgard/r12p0_04rel0/platform/exynos5433/exynos5433.c @@ -0,0 +1,22 @@ +/* + * Copyright (C) 2016 Samsung Electronics Co.Ltd + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + +#include + +int kbase_platform_early_init(void) +{ + /* Nothing needed at this stage */ + return 0; +} + +static struct kbase_platform_config dummy_platform_config; + +struct kbase_platform_config *kbase_get_platform_config(void) +{ + return &dummy_platform_config; +} diff --git a/drivers/gpu/arm/midgard/r12p0_04rel0/platform/exynos5433/mali_kbase_config_platform.h b/drivers/gpu/arm/midgard/r12p0_04rel0/platform/exynos5433/mali_kbase_config_platform.h new file mode 100644 index 000000000000..0104a4825a28 --- /dev/null +++ b/drivers/gpu/arm/midgard/r12p0_04rel0/platform/exynos5433/mali_kbase_config_platform.h @@ -0,0 +1,52 @@ +/* + * Copyright (C) 2016 Samsung Electronics Co.Ltd + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + +/** + * Maximum frequency GPU will be clocked at. Given in kHz. + * This must be specified as there is no default value. + * + * Attached value: number in kHz + * Default value: NA + */ +#define GPU_FREQ_KHZ_MAX 700000 + +/** + * Minimum frequency GPU will be clocked at. Given in kHz. + * This must be specified as there is no default value. + * + * Attached value: number in kHz + * Default value: NA + */ +#define GPU_FREQ_KHZ_MIN 160000 + +/** + * GPU_SPEED_FUNC - A pointer to a function that calculates the GPU clock + * + * GPU clock speed of the platform in MHz - see kbase_gpu_clk_speed_func + * for the function prototype. + * + * Attached value: A kbase_gpu_clk_speed_func. + * Default Value: NA + */ +#define GPU_SPEED_FUNC (NULL) + +/** + * Power management configuration + * + * Attached value: pointer to @ref kbase_pm_callback_conf + * Default value: See @ref kbase_pm_callback_conf + */ +#define POWER_MANAGEMENT_CALLBACKS (NULL) + +/** + * Platform specific configuration functions + * + * Attached value: pointer to @ref kbase_platform_funcs_conf + * Default value: See @ref kbase_platform_funcs_conf + */ +#define PLATFORM_FUNCS (NULL)