Release 4.7 arch/arm/mach-imx/pm-imx27.c
/*
* 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% |
static const struct platform_suspend_ops mx27_suspend_ops = {
.enter = mx27_suspend_enter,
.valid = suspend_valid_only_mem,
};
static int __init mx27_pm_init(void)
{
if (!cpu_is_mx27())
return 0;
suspend_set_ops(&mx27_suspend_ops);
return 0;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
eric benard | eric benard | 18 | 66.67% | 1 | 50.00% |
sascha hauer | sascha hauer | 9 | 33.33% | 1 | 50.00% |
| Total | 27 | 100.00% | 2 | 100.00% |
device_initcall(mx27_pm_init);
Overall Contributors
| Person | Tokens | Prop | Commits | CommitProp |
eric benard | eric benard | 108 | 88.52% | 1 | 16.67% |
sascha hauer | sascha hauer | 9 | 7.38% | 1 | 16.67% |
johannes berg | johannes berg | 2 | 1.64% | 1 | 16.67% |
shawn guo | shawn guo | 1 | 0.82% | 1 | 16.67% |
nicolas pitre | nicolas pitre | 1 | 0.82% | 1 | 16.67% |
lionel debroux | lionel debroux | 1 | 0.82% | 1 | 16.67% |
| Total | 122 | 100.00% | 6 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.