PD #000001: revert illegal checkin
authorKasin Lee <kasin.li@amlogic.com>
Fri, 11 Jul 2014 17:51:09 +0000 (01:51 +0800)
committerKasin Lee <kasin.li@amlogic.com>
Fri, 11 Jul 2014 17:51:09 +0000 (01:51 +0800)
mali/common/mali_pmu.c

index 316519e0ddf6a4cec33187f37455cdf33c94933a..ea31f3ccb763db51717fe6c4f4b8dcd85913260e 100755 (executable)
@@ -155,6 +155,7 @@ static _mali_osk_errcode_t mali_pmu_power_up_internal(struct mali_pmu_core *pmu,
 #else
        for (current_domain = 1; current_domain <= pmu->registered_cores_mask; current_domain <<= 1) {
                if (current_domain & mask & stat) {
+                       mali_hw_core_register_write_relaxed(&pmu->hw_core, PMU_REG_ADDR_MGMT_SW_DELAY, 0xff);
                        mali_hw_core_register_write(&pmu->hw_core, PMU_REG_ADDR_MGMT_POWER_UP, current_domain);
 
                        err = mali_pmu_wait_for_command_finish(pmu);
@@ -163,6 +164,7 @@ static _mali_osk_errcode_t mali_pmu_power_up_internal(struct mali_pmu_core *pmu,
                        }
                }
        }
+       mali_hw_core_register_write_relaxed(&pmu->hw_core, PMU_REG_ADDR_MGMT_SW_DELAY, pmu->switch_delay);
 #endif
 
 #if defined(DEBUG)