Revert "[COMMON] g2d: disable sharabiltiy feature on g2d"
authorhyesoo.yu <hyesoo.yu@samsung.com>
Tue, 14 Nov 2017 10:00:55 +0000 (19:00 +0900)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:22:15 +0000 (20:22 +0300)
This reverts commit 591b3c1c10af821c54eab5b72121e99ffa6c4772.

Change-Id: I59dc83d3660c35b06b4221725cf223574534a66f
Signed-off-by: hyesoo.yu <hyesoo.yu@samsung.com>
drivers/gpu/exynos/g2d/g2d.h
drivers/gpu/exynos/g2d/g2d_drv.c

index 9c9275af51dcbf75d3ed31f2cd4f2e96e949b3d5..afb69d2820ae70481efca082cab45eb72e38c9ca 100644 (file)
@@ -79,7 +79,6 @@ struct g2d_device {
        struct device           *dev;
        struct clk              *clock;
        void __iomem            *reg;
-       void __iomem            *sysreg;
 
        u64                     fence_context;
        atomic_t                fence_timeline;
index fd5c7f8d0639f7e5dc4f599d1b77fabac14b9eea..45afe0c1964789750b49f237280e19ee25ec222f 100644 (file)
@@ -768,8 +768,6 @@ static int g2d_probe(struct platform_device *pdev)
        if (IS_ERR(g2d_dev->reg))
                return PTR_ERR(g2d_dev->reg);
 
-       g2d_dev->sysreg = ioremap(0x17610000, SZ_4K);
-
        res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
        if (!res) {
                dev_err(&pdev->dev, "Failed to get IRQ resource");
@@ -912,13 +910,8 @@ static int g2d_remove(struct platform_device *pdev)
 #ifdef CONFIG_PM
 static int g2d_runtime_resume(struct device *dev)
 {
-       struct g2d_device *g2d_dev = dev_get_drvdata(dev);
-
        g2d_stamp_task(NULL, G2D_STAMP_STATE_RUNTIME_PM, 0);
 
-       /* clear [0:12] bit from SHARABILITY_CTRL */
-       writel((readl(g2d_dev->sysreg + 0x408) & ~0x1FFF), g2d_dev->sysreg + 0x408);
-
        return 0;
 }