update gpu driver to 2010.2.5.3.2
[firefly-linux-kernel-4.4.55.git] / drivers / staging / rk29 / vivante / arch / XAQ2 / hal / kernel / gc_hal_kernel_hardware.c
index edf347193315ffc81d12738a20dc28fb6643eeff..d860930e830d4938e19673b6c9c6c4c515ce4e37 100644 (file)
@@ -126,6 +126,8 @@ _IdentifyHardware(
 
         /* Disable fast clear flush on some specific cores. */
         if (((*ChipModel == gcv600) && (*ChipRevision == 0x4302))
+/*        ||  ((*ChipModel == gcv530) && (*ChipRevision == 0x4303))
+               ||      ((*ChipModel == gcv800) && (*ChipRevision == 0x4301)) */
         )
         {
             *ChipMinorFeatures0 = ((((gctUINT32) (*ChipMinorFeatures0)) & ~(((gctUINT32) (((gctUINT32) ((((1 ? 6:6) - (0 ? 6:6) + 1) == 32) ? ~0 : (~(~0 << ((1 ? 6:6) - (0 ? 6:6) + 1))))))) << (0 ? 6:6))) | (((gctUINT32) (0x0 & ((gctUINT32) ((((1 ? 6:6) - (0 ? 6:6) + 1) == 32) ? ~0 : (~(~0 << ((1 ? 6:6) - (0 ? 6:6) + 1))))))) << (0 ? 6:6)));
@@ -317,6 +319,10 @@ gckHARDWARE_Construct(
     gcmkVERIFY_OBJECT(Os, gcvOBJ_OS);
     gcmkVERIFY_ARGUMENT(Hardware != gcvNULL);
 
+    /* Enable the GPU. */
+    gcmkONERROR(gckOS_SetGPUPower(Os, gcvTRUE, gcvTRUE));
+    gcmkONERROR(gckOS_WriteRegister(Os, 0x00000, 0));
+
     /* Identify the hardware. */
     gcmkONERROR(_IdentifyHardware(Os,
                                   &chipModel,