@@ -35,6 +35,7 @@
#include <plat/clock.h>
#include <plat/common.h>
#include <plat/voltage.h>
+#include <plat/smartreflex.h>
#include "prm-regbits-34xx.h"
#include "prm44xx.h"
@@ -1730,6 +1731,9 @@ int omap_voltage_scale(struct voltagedomain *voltdm, unsigned long volt)
return -EINVAL;
}
+ /* Disable smartreflex module across voltage and frequency scaling */
+ omap_smartreflex_disable(voltdm);
+
if (curr_volt == volt) {
is_volt_scaled = 1;
} else if (curr_volt < volt) {
@@ -1764,6 +1768,9 @@ int omap_voltage_scale(struct voltagedomain *voltdm, unsigned long volt)
mutex_unlock(&vdd->scaling_mutex);
+ /* Enable Smartreflex module */
+ omap_smartreflex_enable(voltdm);
+
/* Scale dependent vdds */
scale_dep_vdd(vdd);