i2c-eg20t: change timeout value 50msec to 1000msec
[zen-stable.git] / drivers / gpu / drm / nouveau / nv40_mc.c
blob03c0d4c3f3558314bdce37769b9840d03928b93c
1 #include "drmP.h"
2 #include "drm.h"
3 #include "nouveau_drv.h"
4 #include "nouveau_drm.h"
6 int
7 nv40_mc_init(struct drm_device *dev)
9 /* Power up everything, resetting each individual unit will
10 * be done later if needed.
12 nv_wr32(dev, NV03_PMC_ENABLE, 0xFFFFFFFF);
14 if (nv44_graph_class(dev)) {
15 u32 tmp = nv_rd32(dev, NV04_PFB_FIFO_DATA);
16 nv_wr32(dev, NV40_PMC_1700, tmp);
17 nv_wr32(dev, NV40_PMC_1704, 0);
18 nv_wr32(dev, NV40_PMC_1708, 0);
19 nv_wr32(dev, NV40_PMC_170C, tmp);
22 return 0;
25 void
26 nv40_mc_takedown(struct drm_device *dev)