diff options
Diffstat (limited to 'drivers/gpu/arm/mali400/r4p0_rel0/platform/exynos3470/exynos4.c')
-rw-r--r-- | drivers/gpu/arm/mali400/r4p0_rel0/platform/exynos3470/exynos4.c | 86 |
1 files changed, 0 insertions, 86 deletions
diff --git a/drivers/gpu/arm/mali400/r4p0_rel0/platform/exynos3470/exynos4.c b/drivers/gpu/arm/mali400/r4p0_rel0/platform/exynos3470/exynos4.c deleted file mode 100644 index 8daffbf5a2f..00000000000 --- a/drivers/gpu/arm/mali400/r4p0_rel0/platform/exynos3470/exynos4.c +++ /dev/null @@ -1,86 +0,0 @@ -/* drivers/gpu/mali400/mali/platform/exynos3470/exynos4.c - * - * Copyright 2011 by S.LSI. Samsung Electronics Inc. - * San#24, Nongseo-Dong, Giheung-Gu, Yongin, Korea - * - * Samsung SoC Mali400 DVFS driver - * - * 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. - */ - -/** - * @file exynos4.c - * Platform specific Mali driver functions for the exynos 4XXX based platforms - */ - -#ifdef CONFIG_PM_RUNTIME -#include <linux/pm_runtime.h> -#endif - -#include <plat/devs.h> -#include "mali_kernel_common.h" -#include "exynos4_pmm.h" - -#define MALI_GP_IRQ EXYNOS4_IRQ_GP_3D -#define MALI_PP0_IRQ EXYNOS4_IRQ_PP0_3D -#define MALI_PP1_IRQ EXYNOS4_IRQ_PP1_3D -#define MALI_PP2_IRQ EXYNOS4_IRQ_PP2_3D -#define MALI_PP3_IRQ EXYNOS4_IRQ_PP3_3D -#define MALI_GP_MMU_IRQ EXYNOS4_IRQ_GPMMU_3D -#define MALI_PP0_MMU_IRQ EXYNOS4_IRQ_PPMMU0_3D -#define MALI_PP1_MMU_IRQ EXYNOS4_IRQ_PPMMU1_3D -#define MALI_PP2_MMU_IRQ EXYNOS4_IRQ_PPMMU2_3D -#define MALI_PP3_MMU_IRQ EXYNOS4_IRQ_PPMMU3_3D - -static struct resource mali_gpu_resources[] = -{ - MALI_GPU_RESOURCES_MALI400_MP4(0x13000000, - MALI_GP_IRQ, MALI_GP_MMU_IRQ, - MALI_PP0_IRQ, MALI_PP0_MMU_IRQ, - MALI_PP1_IRQ, MALI_PP1_MMU_IRQ, - MALI_PP2_IRQ, MALI_PP2_MMU_IRQ, - MALI_PP3_IRQ, MALI_PP3_MMU_IRQ) -}; - -static struct mali_gpu_device_data mali_gpu_data = -{ - .shared_mem_size = 256 * 1024 * 1024, /* 256MB */ - .fb_start = 0x40000000, - .fb_size = 0xb1000000, - .utilization_interval = 100, /* 100ms */ - .utilization_callback = mali_gpu_utilization_handler, -}; - -int mali_platform_device_register(void) -{ - int err; - - MALI_DEBUG_PRINT(4, ("mali_platform_device_register() called\n")); - - /* Connect resources to the device */ - err = platform_device_add_resources(&exynos4_device_g3d, mali_gpu_resources, sizeof(mali_gpu_resources) / sizeof(mali_gpu_resources[0])); - if (0 == err) - { - err = platform_device_add_data(&exynos4_device_g3d, &mali_gpu_data, sizeof(mali_gpu_data)); - if (0 == err) - { - mali_platform_init(&(exynos4_device_g3d.dev)); -#ifdef CONFIG_PM_RUNTIME - pm_runtime_set_autosuspend_delay(&(exynos4_device_g3d.dev), 50); - pm_runtime_use_autosuspend(&(exynos4_device_g3d.dev)); - pm_runtime_enable(&(exynos4_device_g3d.dev)); -#endif - return 0; - } - - } - return err; -} - -void mali_platform_device_unregister(void) -{ - MALI_DEBUG_PRINT(4, ("mali_platform_device_unregister() called\n")); - mali_platform_deinit(&(exynos4_device_g3d.dev)); -} |