Lines Matching +full:suspend +full:- +full:address
1 // SPDX-License-Identifier: GPL-2.0-only
3 * Suspend/resume support. Currently supporting Armada XP only.
7 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
17 #include <linux/suspend.h>
20 #include <asm/suspend.h>
61 /* Prepare to go to self-refresh */ in mvebu_pm_powerdown()
78 * base, which is why we hardcode the 0xd0000000 base address, the one
92 np = of_find_node_by_name(NULL, "internal-regs"); in mvebu_internal_reg_base()
96 * Ask the DT what is the internal register address on this in mvebu_internal_reg_base()
97 * platform. In the mvebu-mbus DT binding, 0xf0010000 in mvebu_internal_reg_base()
114 * value (BOOT_MAGIC_WORD), followed by the address of the in mvebu_pm_store_armadaxp_bootinfo()
116 * (address, value) pairs, which can be used to restore the in mvebu_pm_store_armadaxp_bootinfo()
125 * Some platforms remap their internal register base address in mvebu_pm_store_armadaxp_bootinfo()
134 * Set the internal register base address to the value in mvebu_pm_store_armadaxp_bootinfo()
141 * Ask the mvebu-mbus driver to store the SDRAM window in mvebu_pm_store_armadaxp_bootinfo()
143 * before re-entering the kernel on resume. in mvebu_pm_store_armadaxp_bootinfo()
159 return -ENODEV; in mvebu_pm_store_bootinfo()
193 pr_warn("Entering suspend to RAM. Only special wake-up sources will resume the system\n"); in mvebu_pm_enter()
196 return -EINVAL; in mvebu_pm_enter()
223 return -ENODEV; in mvebu_pm_init()
240 "marvell,armada-xp-sdram-controller"); in mvebu_pm_suspend_init()
242 return -ENODEV; in mvebu_pm_suspend_init()
246 return -ENODEV; in mvebu_pm_suspend_init()
250 np->full_name)) { in mvebu_pm_suspend_init()
252 return -EBUSY; in mvebu_pm_suspend_init()
259 return -ENOMEM; in mvebu_pm_suspend_init()