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

mc13892.c File Reference


Detailed Description

This file contains MC13892 specific PMIC code. This implementaion may differ for each PMIC chip.

Definition in file mc13892.c.

#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/device.h>
#include <linux/spi/spi.h>
#include <linux/i2c.h>
#include <linux/delay.h>
#include <linux/pmic_external.h>
#include <linux/pmic_status.h>
#include <linux/mfd/mc13892/core.h>
#include <asm/mach-types.h>
#include <asm/uaccess.h>
#include "pmic.h"

Go to the source code of this file.

Defines

#define EVENT_MASK_0   0x387fff
#define EVENT_MASK_1   0x1177eb
#define MC13892_I2C_RETRY_TIMES   10
#define MXC_PMIC_FRAME_MASK   0x00FFFFFF
#define MXC_PMIC_MAX_REG_NUM   0x3F
#define MXC_PMIC_REG_NUM_SHIFT   0x19
#define MXC_PMIC_WRITE_BIT_SHIFT   31

Functions

void mc13892_power_off (void)
void * pmic_alloc_data (struct device *dev)
int pmic_event_mask (type_event event)
int pmic_event_unmask (type_event event)
unsigned int pmic_get_active_events (unsigned int *active_events)
void pmic_get_revision (pmic_version_t *ver)
int pmic_i2c_24bit_read (struct i2c_client *client, unsigned int reg_num, unsigned int *value)
int pmic_i2c_24bit_write (struct i2c_client *client, unsigned int reg_num, unsigned int reg_val)
int pmic_init_registers (void)
int pmic_read (int reg_num, unsigned int *reg_val)
int pmic_spi_setup (struct spi_device *spi)
int pmic_write (int reg_num, const unsigned int reg_val)

Variables

static unsigned int events_enabled0
static unsigned int events_enabled1
struct i2c_client * mc13892_client
static struct mxc_pmic pmic_drv_data


Generated by  Doxygen 1.6.0   Back to index