~ubuntu-branches/ubuntu/maverick/linux-backports-modules-2.6.32/maverick

« back to all changes in this revision

Viewing changes to updates/nouveau/nouveau/nv40_mc.c

  • Committer: Bazaar Package Importer
  • Author(s): Andy Whitcroft, Andy Whitcroft
  • Date: 2010-02-04 23:15:51 UTC
  • Revision ID: james.westby@ubuntu.com-20100204231551-vjz5pkvxclukjxm1
Tags: 2.6.32-12.1
[ Andy Whitcroft ]

* initial LBM for lucid
* drop generated files
* printchanges -- rebase tree does not have stable tags use changelog
* printenv -- add revisions to printenv output
* formally rename compat-wireless to linux-backports-modules-wireless
* Update to compat-wireless-2.6.33-rc5
* update nouveau to mainline 2.6.33-rc4
* add new LBM package for nouveau
* nouveau -- fix major numbers and proc entry names
* fix up firmware installs for -wireless
* clean up UPDATE-NOVEAU
* update Nouveau to v2.6.33-rc6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include "drmP.h"
 
2
#include "drm.h"
 
3
#include "nouveau_drv.h"
 
4
#include "nouveau_drm.h"
 
5
 
 
6
int
 
7
nv40_mc_init(struct drm_device *dev)
 
8
{
 
9
        struct drm_nouveau_private *dev_priv = dev->dev_private;
 
10
        uint32_t tmp;
 
11
 
 
12
        /* Power up everything, resetting each individual unit will
 
13
         * be done later if needed.
 
14
         */
 
15
        nv_wr32(dev, NV03_PMC_ENABLE, 0xFFFFFFFF);
 
16
 
 
17
        switch (dev_priv->chipset) {
 
18
        case 0x44:
 
19
        case 0x46: /* G72 */
 
20
        case 0x4e:
 
21
        case 0x4c: /* C51_G7X */
 
22
                tmp = nv_rd32(dev, NV40_PFB_020C);
 
23
                nv_wr32(dev, NV40_PMC_1700, tmp);
 
24
                nv_wr32(dev, NV40_PMC_1704, 0);
 
25
                nv_wr32(dev, NV40_PMC_1708, 0);
 
26
                nv_wr32(dev, NV40_PMC_170C, tmp);
 
27
                break;
 
28
        default:
 
29
                break;
 
30
        }
 
31
 
 
32
        return 0;
 
33
}
 
34
 
 
35
void
 
36
nv40_mc_takedown(struct drm_device *dev)
 
37
{
 
38
}