summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoonyoung Shim <jy0922.shim@samsung.com>2014-11-06 04:55:17 (GMT)
committerChanho Park <chanho61.park@samsung.com>2014-11-18 03:01:18 (GMT)
commit3dbd1f0c13bcc24fce8be1581faca7a3f98db67c (patch)
tree358b903ace8bd505c3b7e868d1e892e0f4597264
parent18c24520a6ebc94e217d06ad84276f666e13ec59 (diff)
downloadlinux-3.10-3dbd1f0c13bcc24fce8be1581faca7a3f98db67c.zip
linux-3.10-3dbd1f0c13bcc24fce8be1581faca7a3f98db67c.tar.gz
linux-3.10-3dbd1f0c13bcc24fce8be1581faca7a3f98db67c.tar.bz2
gpu: arm: mali400: add exynos3250 support for R4P0_REL0
This is based on drivers/gpu/arm/mali400/mali/platform/exynos4/exynos4.c Change-Id: Ib030f2463648983f3855d827d022c15ad3a76ab9 Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
-rw-r--r--drivers/gpu/arm/mali400/mali/platform/exynos4/exynos4.c2
-rw-r--r--drivers/gpu/arm/mali400/r4p0_rel0/platform/exynos/exynos.c12
2 files changed, 13 insertions, 1 deletions
diff --git a/drivers/gpu/arm/mali400/mali/platform/exynos4/exynos4.c b/drivers/gpu/arm/mali400/mali/platform/exynos4/exynos4.c
index f13116b..f534411 100644
--- a/drivers/gpu/arm/mali400/mali/platform/exynos4/exynos4.c
+++ b/drivers/gpu/arm/mali400/mali/platform/exynos4/exynos4.c
@@ -104,7 +104,7 @@ static const struct mali_exynos_dvfs_step mali_exynos_dvfs_step_4x12_prime[] = {
* Variants
*/
-static const struct mali_exynos_variant mali_variant_3250= {
+static const struct mali_exynos_variant mali_variant_3250 = {
.steps = mali_exynos_dvfs_step_3250,
.nr_steps = ARRAY_SIZE(mali_exynos_dvfs_step_3250),
.has_smmuclk = true,
diff --git a/drivers/gpu/arm/mali400/r4p0_rel0/platform/exynos/exynos.c b/drivers/gpu/arm/mali400/r4p0_rel0/platform/exynos/exynos.c
index d2ce06e7..859ee36 100644
--- a/drivers/gpu/arm/mali400/r4p0_rel0/platform/exynos/exynos.c
+++ b/drivers/gpu/arm/mali400/r4p0_rel0/platform/exynos/exynos.c
@@ -76,6 +76,10 @@ static struct mali_exynos_drvdata *mali;
#define MALI_DVFS_STEP(freq, voltage, down, up) \
{freq, voltage, (256 * down) / 100, (256 * up) / 100}
+static const struct mali_exynos_dvfs_step mali_exynos_dvfs_step_3250[] = {
+ MALI_DVFS_STEP(134, 0, 0, 100)
+};
+
static const struct mali_exynos_dvfs_step mali_exynos_dvfs_step_4210[] = {
MALI_DVFS_STEP(160, 950000, 0, 90),
MALI_DVFS_STEP(266, 1050000, 85, 100)
@@ -100,6 +104,12 @@ static const struct mali_exynos_dvfs_step mali_exynos_dvfs_step_4x12_prime[] = {
* Variants
*/
+static const struct mali_exynos_variant mali_variant_3250 = {
+ .steps = mali_exynos_dvfs_step_3250,
+ .nr_steps = ARRAY_SIZE(mali_exynos_dvfs_step_3250),
+ .has_smmuclk = true,
+};
+
static const struct mali_exynos_variant mali_variant_4210 = {
.steps = mali_exynos_dvfs_step_4210,
.nr_steps = ARRAY_SIZE(mali_exynos_dvfs_step_4210),
@@ -116,6 +126,8 @@ static const struct mali_exynos_variant mali_variant_4x12_prime = {
};
const struct of_device_id mali_of_matches[] = {
+ { .compatible = "samsung,exynos3250-g3d",
+ .data = &mali_variant_3250, },
{ .compatible = "samsung,exynos4210-g3d",
.data = &mali_variant_4210, },
{ .compatible = "samsung,exynos4x12-g3d",