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

sdram_autogating.c File Reference

Detailed Description

Enable auto clock gating of the EMI_FAST clock using M4IF.

The APIs are for enabling and disabling automatic clock gating of EMI_FAST.

Definition in file sdram_autogating.c.

#include <asm/io.h>
#include <linux/proc_fs.h>
#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/platform_device.h>
#include <linux/regulator/consumer.h>
#include <mach/hardware.h>
#include <mach/clock.h>
#include <mach/sdram_autogating.h>
#include "crm_regs.h"

Go to the source code of this file.


#define M4IF_CNTL_REG0   0x8c
#define M4IF_CNTL_REG1   0x90


static DEVICE_ATTR (enable, 0644, sdram_autogating_enable_show, sdram_autogating_enable_store)
static void disable (void)
static void enable (void)
 MODULE_AUTHOR ("Freescale Semiconductor, Inc.")
 MODULE_DESCRIPTION ("sdram_autogating driver")
 module_exit (sdram_autogating_cleanup)
 module_init (sdram_autogating_init)
int sdram_autogating_active (void)
static void __exit sdram_autogating_cleanup (void)
static ssize_t sdram_autogating_enable_show (struct device *dev, struct device_attribute *attr, char *buf)
static ssize_t sdram_autogating_enable_store (struct device *dev, struct device_attribute *attr, const char *buf, size_t size)
static int __init sdram_autogating_init (void)
static int __devinit sdram_autogating_probe (struct platform_device *pdev)
void start_sdram_autogating (void)
void stop_sdram_autogating (void)


static struct device * sdram_autogating_dev
static struct platform_driver sdram_autogating_driver
static int sdram_autogating_is_active
static int sdram_autogating_paused

Generated by  Doxygen 1.6.0   Back to index