diff options
Diffstat (limited to 'firmware/target/arm/imx31/dvfs_dptc-imx31.c')
-rw-r--r-- | firmware/target/arm/imx31/dvfs_dptc-imx31.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/firmware/target/arm/imx31/dvfs_dptc-imx31.c b/firmware/target/arm/imx31/dvfs_dptc-imx31.c index aa8d0f52fb..555e030af5 100644 --- a/firmware/target/arm/imx31/dvfs_dptc-imx31.c +++ b/firmware/target/arm/imx31/dvfs_dptc-imx31.c | |||
@@ -612,6 +612,22 @@ void dvfs_dptc_stop(void) | |||
612 | } | 612 | } |
613 | 613 | ||
614 | 614 | ||
615 | /* Mask the DVFS interrupt without affecting running status */ | ||
616 | void dvfs_int_mask(bool mask) | ||
617 | { | ||
618 | if (mask) | ||
619 | { | ||
620 | /* Just disable, not running = already disabled */ | ||
621 | avic_mask_int(INT_CCM_DVFS); | ||
622 | } | ||
623 | else if (dvfs_running) | ||
624 | { | ||
625 | /* DVFS is running; unmask it */ | ||
626 | avic_unmask_int(INT_CCM_DVFS); | ||
627 | } | ||
628 | } | ||
629 | |||
630 | |||
615 | /* Set a signal load tracking weight */ | 631 | /* Set a signal load tracking weight */ |
616 | void dvfs_set_lt_weight(enum DVFS_LT_SIGS index, unsigned long value) | 632 | void dvfs_set_lt_weight(enum DVFS_LT_SIGS index, unsigned long value) |
617 | { | 633 | { |