Lines Matching +full:suspend +full:- +full:mode
1 // SPDX-License-Identifier: GPL-2.0-only
3 * arch/arm/mach-lpc32xx/pm.c
15 * direct-run, and halt modes. When switching between halt and run modes,
16 * the CPU transistions through direct-run mode. For Linux, direct-run
17 * mode is not used in normal operation. Halt mode is used when the
20 * Run mode:
23 * the HCLK_PLL rate. Linux runs in this mode.
25 * Direct-run mode:
28 * source or the frequency of the main oscillator. In this mode, the
31 * Halt mode:
36 * wake the system up back into direct-run mode.
41 * SDRAM will still be accessible in direct-run mode. In DDR based systems,
42 * a transition to direct-run mode will stop all DDR accesses (no clocks).
44 * and exit DRAM self-refresh modes must not be executed in DRAM. A small
47 * Suspend is handled with the following logic:
48 * Backup a small area of IRAM used for the suspend code
49 * Copy suspend code to IRAM
51 * Places DRAMs in self-refresh mode
52 * Enter direct-run mode
55 * Enter halt mode - CPU and buses will stop
56 * System enters direct-run mode when an enabled event occurs
58 * Run mode is entered
59 * DRAMS are placed back into normal mode
61 * IRAM code are used for suspend is restored
62 * Suspend mode is exited
65 #include <linux/suspend.h>
77 * Both STANDBY and MEM suspend states are handled the same with no
89 return -ENOMEM; in lpc32xx_pm_enter()
92 * Copy code to suspend system into IRAM. The suspend code in lpc32xx_pm_enter()
101 /* Transfer to suspend code in IRAM */ in lpc32xx_pm_enter()
126 * Setup SDRAM self-refresh clock to automatically disable o in lpc32xx_pm_init()
127 * start of self-refresh. This only needs to be done once. in lpc32xx_pm_init()