diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2010-10-17 22:34:04 -0400 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2010-12-03 00:06:29 -0500 |
commit | cbb4b608b603c7fba4c1cf5b298d1aa23d3fdd22 (patch) | |
tree | 906a2dbae3037cd114a035f223e0a4ae9953e718 /drivers/gpu/drm/nouveau/nv50_display.c | |
parent | 9acc8100cb14b91d446a482fdd0cf7e3ccbcf930 (diff) |
drm/nv50: remove some unnecessary PDISPLAY init
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nv50_display.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nv50_display.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/drivers/gpu/drm/nouveau/nv50_display.c b/drivers/gpu/drm/nouveau/nv50_display.c index f624c611ddea..7ac87efb791f 100644 --- a/drivers/gpu/drm/nouveau/nv50_display.c +++ b/drivers/gpu/drm/nouveau/nv50_display.c | |||
@@ -218,9 +218,9 @@ nv50_display_init(struct drm_device *dev) | |||
218 | struct nouveau_gpio_engine *pgpio = &dev_priv->engine.gpio; | 218 | struct nouveau_gpio_engine *pgpio = &dev_priv->engine.gpio; |
219 | struct nouveau_channel *evo = dev_priv->evo; | 219 | struct nouveau_channel *evo = dev_priv->evo; |
220 | struct drm_connector *connector; | 220 | struct drm_connector *connector; |
221 | uint32_t val, ram_amount; | ||
222 | uint64_t start; | ||
223 | int ret, i; | 221 | int ret, i; |
222 | u64 start; | ||
223 | u32 val; | ||
224 | 224 | ||
225 | NV_DEBUG_KMS(dev, "\n"); | 225 | NV_DEBUG_KMS(dev, "\n"); |
226 | 226 | ||
@@ -262,17 +262,6 @@ nv50_display_init(struct drm_device *dev) | |||
262 | nv_wr32(dev, NV50_PDISPLAY_DAC_CLK_CTRL1(i), 0x00000001); | 262 | nv_wr32(dev, NV50_PDISPLAY_DAC_CLK_CTRL1(i), 0x00000001); |
263 | } | 263 | } |
264 | 264 | ||
265 | /* This used to be in crtc unblank, but seems out of place there. */ | ||
266 | nv_wr32(dev, NV50_PDISPLAY_UNK_380, 0); | ||
267 | /* RAM is clamped to 256 MiB. */ | ||
268 | ram_amount = dev_priv->vram_size; | ||
269 | NV_DEBUG_KMS(dev, "ram_amount %d\n", ram_amount); | ||
270 | if (ram_amount > 256*1024*1024) | ||
271 | ram_amount = 256*1024*1024; | ||
272 | nv_wr32(dev, NV50_PDISPLAY_RAM_AMOUNT, ram_amount - 1); | ||
273 | nv_wr32(dev, NV50_PDISPLAY_UNK_388, 0x150000); | ||
274 | nv_wr32(dev, NV50_PDISPLAY_UNK_38C, 0); | ||
275 | |||
276 | /* The precise purpose is unknown, i suspect it has something to do | 265 | /* The precise purpose is unknown, i suspect it has something to do |
277 | * with text mode. | 266 | * with text mode. |
278 | */ | 267 | */ |