cregit-Linux how code gets into the kernel

Release 4.17 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

PersonTokensPropCommitsCommitProp
Eric Bénard5694.92%133.33%
Johannes Berg23.39%133.33%
Nico Pitre11.69%133.33%
Total59100.00%3100.00%

static const struct platform_suspend_ops mx27_suspend_ops = { .enter = mx27_suspend_enter, .valid = suspend_valid_only_mem, };
void __init imx27_pm_init(void) { suspend_set_ops(&mx27_suspend_ops); }

Contributors

PersonTokensPropCommitsCommitProp
Eric Bénard1285.71%150.00%
Arnd Bergmann214.29%150.00%
Total14100.00%2100.00%


Overall Contributors

PersonTokensPropCommitsCommitProp
Eric Bénard9793.27%116.67%
Johannes Berg21.92%116.67%
Arnd Bergmann21.92%116.67%
Nico Pitre10.96%116.67%
Lionel Debroux10.96%116.67%
Shawn Guo10.96%116.67%
Total104100.00%6100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.