summaryrefslogtreecommitdiff
path: root/arch/arm/mach-imx/common.h
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2017-03-06 17:44:22 -0800
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2017-04-03 15:13:48 +0200
commit70f901b01c4ac4dfe741f91b76967a433674a37d (patch)
tree06af5ec814e5ffcfd86d436f9e359d4c0b4918f9 /arch/arm/mach-imx/common.h
parent3e92301d12417baf5ed424da3a64081243eda2c2 (diff)
ARM: imx: busfreq: initialize M4 frequency depending boot state
Set low frequency state in case M4 start with 24MHz. This makes sure that Linux is aware of the M4 state and makes sure the bus frequency is not accidentally increased during suspend (bus_freq_pm_notify). Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Diffstat (limited to 'arch/arm/mach-imx/common.h')
-rw-r--r--arch/arm/mach-imx/common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/common.h b/arch/arm/mach-imx/common.h
index c26801af32ae..d933ddf34300 100644
--- a/arch/arm/mach-imx/common.h
+++ b/arch/arm/mach-imx/common.h
@@ -93,8 +93,10 @@ bool imx_mu_is_m4_in_stop(void);
void imx_mu_set_m4_run_mode(void);
#ifdef CONFIG_HAVE_IMX_MU
int imx_mu_lpm_ready(bool ready);
+void imx_mu_set_m4_low_freq(void);
#else
static inline int imx_mu_lpm_ready(bool ready) { return 0; }
+static inline void imx_mu_set_m4_low_freq(void) { }
#endif
enum mxc_cpu_pwr_mode {