Add debug message for wait mode to check it was enabled or not.
it will easy to get the wait mode status from this info
e.g, if wait mode is enabled, there are below info from console:
wait mode is enabled for i.MX6
Signed-off-by: Lin Fuzhen <fuzhen.lin@freescale.com>
if ((mx6q_revision() > IMX_CHIP_REVISION_1_1) ||
(mx6dl_revision() > IMX_CHIP_REVISION_1_0))
arm_mem_clked_in_wait = true;
- else
+ else {
enable_wait_mode = false;
+ pr_info("wait mode is disabled due to ipg clock is too low\n");
+ }
}
if (div == 0)
extern void mx6_init_irq(void);
extern unsigned int gpc_wake_irq[4];
+extern bool enable_wait_mode;
static struct device *pm_dev;
struct clk *gpc_dvfs_clk;
static void __iomem *scu_base;
pr_info("Static Power Management for Freescale i.MX6\n");
+ pr_info("wait mode is %s for i.MX6\n", enable_wait_mode ?
+ "enabled" : "disabled");
+
if (platform_driver_register(&mx6_pm_driver) != 0) {
printk(KERN_ERR "mx6_pm_driver register failed\n");
return -ENODEV;