drm/nv50: remove some unnecessary PDISPLAY init
authorBen Skeggs <bskeggs@redhat.com>
Mon, 18 Oct 2010 02:34:04 +0000 (12:34 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 3 Dec 2010 05:06:29 +0000 (15:06 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nv50_display.c

index f624c611ddeaf39cb1c46010d7da30e4461c35ad..7ac87efb791f66f2ff02e6f822b66a71e8dc30b0 100644 (file)
@@ -218,9 +218,9 @@ nv50_display_init(struct drm_device *dev)
        struct nouveau_gpio_engine *pgpio = &dev_priv->engine.gpio;
        struct nouveau_channel *evo = dev_priv->evo;
        struct drm_connector *connector;
-       uint32_t val, ram_amount;
-       uint64_t start;
        int ret, i;
+       u64 start;
+       u32 val;
 
        NV_DEBUG_KMS(dev, "\n");
 
@@ -262,17 +262,6 @@ nv50_display_init(struct drm_device *dev)
                nv_wr32(dev, NV50_PDISPLAY_DAC_CLK_CTRL1(i), 0x00000001);
        }
 
-       /* This used to be in crtc unblank, but seems out of place there. */
-       nv_wr32(dev, NV50_PDISPLAY_UNK_380, 0);
-       /* RAM is clamped to 256 MiB. */
-       ram_amount = dev_priv->vram_size;
-       NV_DEBUG_KMS(dev, "ram_amount %d\n", ram_amount);
-       if (ram_amount > 256*1024*1024)
-               ram_amount = 256*1024*1024;
-       nv_wr32(dev, NV50_PDISPLAY_RAM_AMOUNT, ram_amount - 1);
-       nv_wr32(dev, NV50_PDISPLAY_UNK_388, 0x150000);
-       nv_wr32(dev, NV50_PDISPLAY_UNK_38C, 0);
-
        /* The precise purpose is unknown, i suspect it has something to do
         * with text mode.
         */