Logo Search packages:      
Sourcecode: linux-fsl-imx51 version File versions  Download package

mxc_pm.c File Reference


Detailed Description

This file provides all the kernel level and user level API definitions for the CRM_MCU and DPLL in mx3.

Definition in file mxc_pm.c.

#include <linux/module.h>
#include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/io.h>
#include <linux/clk.h>
#include <mach/hardware.h>
#include <mach/system.h>
#include <mach/mxc_pm.h>
#include <asm/cacheflush.h>
#include <asm/irq.h>
#include <mach/common.h>
#include <asm/hardware/cache-l2x0.h>
#include "crm_regs.h"

Go to the source code of this file.

Defines

#define FREQ_COMP_TOLERANCE   200
#define MCU_PLL_MAX_FREQ   600000000
#define MCU_PLL_MIN_FREQ   160000000
#define NFC_MAX_FREQ   20000000
#define PRE_DIV_MIN_FREQ   10000000

Functions

static int cal_pdr0_value (unsigned long mcu_main_clk, long arm_freq, long max_freq, long ip_freq, unsigned long *mask, unsigned long *value)
static DEFINE_SPINLOCK (mxc_crm_lock)
 EXPORT_SYMBOL (mxc_pm_lowpower)
 EXPORT_SYMBOL (mxc_pm_pllscale)
 EXPORT_SYMBOL (mxc_pm_intscale)
static int freq_equal (unsigned long freq1, unsigned long freq2)
 MODULE_AUTHOR ("Freescale Semiconductor, Inc.")
 MODULE_DESCRIPTION ("MX3 Low-level Power Management Driver")
 module_exit (mxc_pm_cleanup_module)
 module_init (mxc_pm_init_module)
 MODULE_LICENSE ("GPL")
void mxc_ccm_modify_reg (void *reg_offset, unsigned int mask, unsigned int data)
static void __exit mxc_pm_cleanup_module (void)
static int __init mxc_pm_init_module (void)
int mxc_pm_intscale (long arm_freq, long max_freq, long ip_freq)
void mxc_pm_lowpower (int mode)
int mxc_pm_pllscale (long arm_freq, long max_freq, long ip_freq)

Variables

static struct clk * ahb_clk
static struct clk * cpu_clk
static struct clk * ipg_clk
static struct clk * mcu_pll_clk


Generated by  Doxygen 1.6.0   Back to index