Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/C/Linux/arch/arm/mach-imx/   (Open Source Betriebssystem Version 6.17.9©)  Datei vom 24.10.2025 mit Größe 1 kB image not shown  

Quelle  pm-imx27.c   Sprache: 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/of_address.h>
#include <linux/kernel.h>
#include <linux/suspend.h>
#include <linux/io.h>

#include "common.h"
#include "hardware.h"

static int mx27_suspend_enter(suspend_state_t state)
{
 void __iomem *ccm_base;
 struct device_node *np;
 u32 cscr;

 np = of_find_compatible_node(NULL, NULL, "fsl,imx27-ccm");
 ccm_base = of_iomap(np, 0);
 BUG_ON(!ccm_base);

 switch (state) {
 case PM_SUSPEND_MEM:
  /* Clear MPEN and SPEN to disable MPLL/SPLL */
  cscr = imx_readl(ccm_base);
  cscr &= 0xFFFFFFFC;
  imx_writel(cscr, ccm_base);
  /* Executes WFI */
  cpu_do_idle();
  break;

 default:
  return -EINVAL;
 }
 return 0;
}

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);
}

Messung V0.5
C=95 H=92 G=93

¤ Dauer der Verarbeitung: 0.2 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.