3 #include "nouveau_drv.h"
4 #include "nouveau_drm.h"
7 nv40_mc_init(struct drm_device
*dev
)
9 struct drm_nouveau_private
*dev_priv
= dev
->dev_private
;
12 /* Power up everything, resetting each individual unit will
13 * be done later if needed.
15 nv_wr32(dev
, NV03_PMC_ENABLE
, 0xFFFFFFFF);
17 switch (dev_priv
->chipset
) {
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
);
36 nv40_mc_takedown(struct drm_device
*dev
)