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

mc13783.c File Reference


Detailed Description

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

Definition in file mc13783.c.

#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/device.h>
#include <linux/pmic_external.h>
#include <linux/pmic_status.h>
#include <linux/spi/spi.h>
#include <linux/mfd/mc13783/core.h>
#include <asm/uaccess.h>
#include "pmic.h"

Go to the source code of this file.

Defines

#define EVENT_MASK_0   0x697fdf
#define EVENT_MASK_1   0x3efffb
#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

 EXPORT_SYMBOL (pmic_get_sensors)
 EXPORT_SYMBOL (pmic_check_sensor)
void * pmic_alloc_data (struct device *dev)
bool pmic_check_sensor (t_sensor sensor)
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)
PMIC_STATUS pmic_get_sensors (t_sensor_bits *sensor_bits)
int pmic_init_registers (void)
int pmic_read (unsigned 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 = 0
static unsigned int events_enabled1 = 0
struct mxc_pmic pmic_drv_data


Generated by  Doxygen 1.6.0   Back to index