Lines Matching +full:sleep +full:- +full:map

1 // SPDX-License-Identifier: GPL-2.0
42 out_8(&gpiow->wkup_gpioe, in_8(&gpiow->wkup_gpioe) | (1 << pin)); in mpc52xx_set_wakeup_gpio()
44 out_8(&gpiow->wkup_ddr, in_8(&gpiow->wkup_ddr) & ~(1 << pin)); in mpc52xx_set_wakeup_gpio()
45 /* enable deep sleep interrupt */ in mpc52xx_set_wakeup_gpio()
46 out_8(&gpiow->wkup_inten, in_8(&gpiow->wkup_inten) | (1 << pin)); in mpc52xx_set_wakeup_gpio()
48 tmp = in_be16(&gpiow->wkup_itype); in mpc52xx_set_wakeup_gpio()
51 out_be16(&gpiow->wkup_itype, tmp); in mpc52xx_set_wakeup_gpio()
53 out_8(&gpiow->wkup_maste, 1); in mpc52xx_set_wakeup_gpio()
62 { .compatible = "fsl,mpc5200-immr", }, in mpc52xx_pm_prepare()
63 { .compatible = "fsl,mpc5200b-immr", }, in mpc52xx_pm_prepare()
70 /* map the whole register space */ in mpc52xx_pm_prepare()
76 return -ENOSYS; in mpc52xx_pm_prepare()
79 mbar = ioremap(res.start, 0xc000); /* we should map whole region including SRAM */ in mpc52xx_pm_prepare()
83 pr_err("mpc52xx_pm_prepare(): could not map registers\n"); in mpc52xx_pm_prepare()
84 return -ENOSYS; in mpc52xx_pm_prepare()
107 return -ENOSYS; in mpc52xx_pm_prepare()
120 char saved_0x500[0x600-0x500]; in mpc52xx_pm_enter()
123 return -ENOMEM; in mpc52xx_pm_enter()
126 intr_main_mask = in_be32(&intr->main_mask); in mpc52xx_pm_enter()
127 out_be32(&intr->main_mask, intr_main_mask | 0x1ffff); in mpc52xx_pm_enter()
138 out_8(&cdm->ccs_sleep_enable, 1); in mpc52xx_pm_enter()
139 out_8(&cdm->osc_sleep_enable, 1); in mpc52xx_pm_enter()
140 out_8(&cdm->ccs_qreq_test, 1); in mpc52xx_pm_enter()
143 clk_enables = in_be32(&cdm->clk_enables); in mpc52xx_pm_enter()
144 out_be32(&cdm->clk_enables, clk_enables & 0x00088000); in mpc52xx_pm_enter()
150 /* enable sleep mode, disable others */ in mpc52xx_pm_enter()
159 /* call low-level sleep code */ in mpc52xx_pm_enter()
171 out_be32(&cdm->clk_enables, clk_enables); in mpc52xx_pm_enter()
172 out_8(&cdm->ccs_sleep_enable, 0); in mpc52xx_pm_enter()
173 out_8(&cdm->osc_sleep_enable, 0); in mpc52xx_pm_enter()
179 out_be32(&intr->main_mask, intr_main_mask); in mpc52xx_pm_enter()