static int cmx2xx_suspend(struct sys_device *dev, pm_message_t state) { cmx2xx_pci_suspend(); /* save MSC registers */ sleep_save_msc[0] = MSC0; sleep_save_msc[1] = MSC1; sleep_save_msc[2] = MSC2; /* setup power saving mode registers */ PCFR = 0x0; PSLR = 0xff400000; PMCR = 0x00000005; PWER = 0x80000000; PFER = 0x00000000; PRER = 0x00000000; PGSR0 = 0xC0018800; PGSR1 = 0x004F0002; PGSR2 = 0x6021C000; PGSR3 = 0x00020000; return 0; }
static int cmx2xx_suspend(void) { cmx2xx_pci_suspend(); /* save MSC registers */ sleep_save_msc[0] = __raw_readl(MSC0); sleep_save_msc[1] = __raw_readl(MSC1); sleep_save_msc[2] = __raw_readl(MSC2); /* setup power saving mode registers */ PCFR = 0x0; PSLR = 0xff400000; PMCR = 0x00000005; PWER = 0x80000000; PFER = 0x00000000; PRER = 0x00000000; PGSR0 = 0xC0018800; PGSR1 = 0x004F0002; PGSR2 = 0x6021C000; PGSR3 = 0x00020000; return 0; }