diff options
Diffstat (limited to 'firmware/target/arm/imx31/dvfs_dptc-imx31.c')
-rw-r--r-- | firmware/target/arm/imx31/dvfs_dptc-imx31.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/firmware/target/arm/imx31/dvfs_dptc-imx31.c b/firmware/target/arm/imx31/dvfs_dptc-imx31.c index cae9a384c9..129e47d55e 100644 --- a/firmware/target/arm/imx31/dvfs_dptc-imx31.c +++ b/firmware/target/arm/imx31/dvfs_dptc-imx31.c | |||
@@ -571,14 +571,15 @@ static void dptc_stop(void) | |||
571 | 571 | ||
572 | if (dptc_running) | 572 | if (dptc_running) |
573 | { | 573 | { |
574 | dptc_running = false; | ||
575 | |||
574 | /* Disable DPTC and mask interrupt. */ | 576 | /* Disable DPTC and mask interrupt. */ |
575 | CCM_PMCR0 = (CCM_PMCR0 & ~CCM_PMCR0_DPTEN) | CCM_PMCR0_PTVAIM; | 577 | CCM_PMCR0 = (CCM_PMCR0 & ~CCM_PMCR0_DPTEN) | CCM_PMCR0_PTVAIM; |
576 | avic_disable_int(INT_CCM_CLK); | 578 | avic_disable_int(INT_CCM_CLK); |
577 | dptc_running = false; | ||
578 | } | ||
579 | 579 | ||
580 | /* Go back to default working point. */ | 580 | /* Go back to default working point. */ |
581 | dptc_new_wp(DPTC_WP_DEFAULT); | 581 | dptc_new_wp(DPTC_WP_DEFAULT); |
582 | } | ||
582 | 583 | ||
583 | restore_irq(oldlevel); | 584 | restore_irq(oldlevel); |
584 | 585 | ||