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

pmic_core_i2c.c File Reference

Detailed Description

This is the main file for the PMIC Core/Protocol driver. i2c should be providing the interface between the PMIC and the MCU.

Definition in file pmic_core_i2c.c.

#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/platform_device.h>
#include <linux/interrupt.h>
#include <linux/irq.h>
#include <linux/i2c.h>
#include <linux/mfd/mc13892/core.h>
#include <linux/pmic_external.h>
#include <linux/pmic_status.h>
#include <asm/uaccess.h>
#include "pmic.h"

Go to the source code of this file.


#define MC13892_GEN_ID_VALUE   0x7
#define MC13892_GENERATION_ID_LSH   6
#define MC13892_GENERATION_ID_WID   3
#define MC13892_IC_ID_LSH   13
#define MC13892_IC_ID_VALUE   1
#define MC13892_IC_ID_WID   6


static int __devinit is_chip_onboard (struct i2c_client *client)
static ssize_t mc13892_show (struct device *dev, struct device_attribute *attr, char *buf)
static ssize_t mc13892_store (struct device *dev, struct device_attribute *attr, const char *buf, size_t count)
 MODULE_AUTHOR ("Freescale Semiconductor, Inc.")
 MODULE_DESCRIPTION ("Core/Protocol driver for PMIC")
 MODULE_DEVICE_TABLE (i2c, mc13892_id)
 module_exit (pmic_exit)
static void __exit pmic_exit (void)
static int __init pmic_init (void)
irqreturn_t pmic_irq_handler (int irq, void *dev_id)
static void pmic_pdev_register (struct device *dev)
static void pmic_pdev_unregister (void)
static int __devinit pmic_probe (struct i2c_client *client, const struct i2c_device_id *id)
static int pmic_remove (struct i2c_client *client)
static int pmic_resume (struct i2c_client *client)
static int pmic_suspend (struct i2c_client *client, pm_message_t state)
 subsys_initcall_sync (pmic_init)


static struct platform_device adc_ldm
static struct platform_device battery_ldm
static struct platform_device bleds_ldm
static struct platform_device gleds_ldm
static struct platform_device light_ldm
struct i2c_client * mc13892_client
static struct device_attribute mc13892_dev_attr
static struct i2c_device_id mc13892_id []
pmic_version_t mxc_pmic_version
static struct i2c_driver pmic_driver
static struct platform_device power_ldm
static struct platform_device rleds_ldm
static struct platform_device rtc_ldm

Generated by  Doxygen 1.6.0   Back to index