I tried to build the driver as mentioned in BSP (Low-level Power Management (PM) Driver). But its showing warning ???
Unable to include the mach/irqs.h. so its showing warning
unknown symbol mxc_cpu_lp_set()
unknown symbol suspend_in_iram()
unknown symbol cpu_do_idle()
Added to interrupt code like below
void __iomem *sdclk_iomux_addr = IO_ADDRESS(IOMUXC_BASE_ADDR + 0x4b8);
u32 * wake_src;
mxc_get_wake_irq(&wake_src);
if ( !wake_src[0] && !wake_src[1] && !wake_src[2] && !wake_src[3] )
{
printk(KERN_ERR "No sources enabled for wake-up! Sleep abort.\n");
return -EINVAL;
}
printk("inside gpio shutdown interrupt\n");
input_report_shutdown(dev,BTN_0,EV_SHUTDOWN);
input_sync(dev);
if (gpc_dvfs_clk == NULL)
gpc_dvfs_clk = clk_get(NULL, "gpc_dvfs_clk");
clk_enable(gpc_dvfs_clk);
mxc_cpu_lp_set(STOP_POWER_OFF);
cpu_do_idle();
local_flush_tlb_all();
flush_cache_all();
/* Run the suspend code from iRAM. */
suspend_in_iram(sdclk_iomux_addr);
/*clear the EMPGC0/1 bits */
__raw_writel(0, MXC_SRPG_EMPGC0_SRPGCR);
__raw_writel(0, MXC_SRPG_EMPGC1_SRPGCR);
clk_disable(gpc_dvfs_clk);
return IRQ_HANDLED;
I want to do any changes in configuration apart from mentioned in BSP or any other changes need. Can anyone suggest
Thanks before,
Regards,
ARUN