/* * i.MX27 Power Management Routines * * Based on Freescale's BSP * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License. */ #include <linux/kernel.h> #include <linux/suspend.h> #include <linux/io.h> #include "hardware.h"
static int mx27_suspend_enter(suspend_state_t state) { u32 cscr; switch (state) { case PM_SUSPEND_MEM: /* Clear MPEN and SPEN to disable MPLL/SPLL */ cscr = imx_readl(MX27_IO_ADDRESS(MX27_CCM_BASE_ADDR)); cscr &= 0xFFFFFFFC; imx_writel(cscr, MX27_IO_ADDRESS(MX27_CCM_BASE_ADDR)); /* Executes WFI */ cpu_do_idle(); break; default: return -EINVAL; } return 0; }Contributors
Person | Tokens | Prop | Commits | CommitProp | |
eric benard | eric benard | 56 | 94.92% | 1 | 33.33% |
johannes berg | johannes berg | 2 | 3.39% | 1 | 33.33% |
nicolas pitre | nicolas pitre | 1 | 1.69% | 1 | 33.33% |
Total | 59 | 100.00% | 3 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
eric benard | eric benard | 12 | 85.71% | 1 | 50.00% |
arnd bergmann | arnd bergmann | 2 | 14.29% | 1 | 50.00% |
Total | 14 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
eric benard | eric benard | 97 | 93.27% | 1 | 16.67% |
johannes berg | johannes berg | 2 | 1.92% | 1 | 16.67% |
arnd bergmann | arnd bergmann | 2 | 1.92% | 1 | 16.67% |
nicolas pitre | nicolas pitre | 1 | 0.96% | 1 | 16.67% |
shawn guo | shawn guo | 1 | 0.96% | 1 | 16.67% |
lionel debroux | lionel debroux | 1 | 0.96% | 1 | 16.67% |
Total | 104 | 100.00% | 6 | 100.00% |