13 #include <linux/module.h>
18 #include <asm/cacheflush.h>
19 #include <asm/delay.h>
23 #include <mach/sram.h>
28 #define DEEPSLEEP_SLEEPCOUNT_MASK 0xFFFF
33 static void davinci_sram_push(
void *
dest,
void *
src,
unsigned int size)
39 static void davinci_pm_suspend(
void)
65 davinci_sram_suspend(pdata);
105 davinci_pm_suspend();
115 .enter = davinci_pm_enter,
121 pdata = pdev->
dev.platform_data;
123 dev_err(&pdev->
dev,
"cannot get platform data\n");
128 if (!davinci_sram_suspend) {
129 dev_err(&pdev->
dev,
"cannot allocate SRAM memory\n");
134 davinci_cpu_suspend_sz);
143 sram_free(davinci_sram_suspend, davinci_cpu_suspend_sz);
149 .name =
"pm-davinci",
152 .remove =
__exit_p(davinci_pm_remove),