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

mc34704.c File Reference

Detailed Description

This file contains MC34704 specific PMIC code.

Definition in file mc34704.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/i2c.h>
#include <linux/uaccess.h>
#include <linux/mfd/mc34704/core.h>
#include <linux/pmic_external.h>
#include <linux/pmic_status.h>
#include "pmic.h"

Go to the source code of this file.


#define IS_READONLY(r)   ((1 << ((r) % 32)) & mc34704_reg_readonly[(r) / 32])
#define MARK_WRITTEN(r)
#define MAX_MC34704_REG   0x59
#define WAS_WRITTEN(r)   ((1 << ((r) % 32)) & mc34704_reg_written[(r) / 32])


 DECLARE_DELAYED_WORK (pmic_ws, pmic_event_task)
 EXPORT_SYMBOL (pmic_get_version)
static int __devinit is_chip_onboard (struct i2c_client *client)
 MODULE_AUTHOR ("Freescale Semiconductor, Inc.")
 MODULE_DEVICE_TABLE (i2c, mc34704_id)
 module_exit (pmic_exit)
int pmic_event_mask (type_event event)
static void pmic_event_task (struct work_struct *work)
int pmic_event_unmask (type_event event)
static void __exit pmic_exit (void)
unsigned int pmic_get_active_events (unsigned int *active_events)
pmic_version_t pmic_get_version (void)
static int __init pmic_init (void)
int __devinit pmic_init_registers (void)
static int __devinit pmic_probe (struct i2c_client *client, const struct i2c_device_id *id)
int pmic_read (int reg_nr, unsigned int *reg_val)
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)
static void pmic_trigger_poll (void)
int pmic_write (int reg_nr, const unsigned int reg_val)
 subsys_initcall_sync (pmic_init)


unsigned int active_events [MAX_ACTIVE_EVENTS]
static unsigned int events_enabled
struct i2c_client * mc34704_client
static struct i2c_device_id mc34704_id []
static unsigned int mc34704_reg_readonly [MAX_MC34704_REG/32+1]
static unsigned int mc34704_reg_written [MAX_MC34704_REG/32+1]
static unsigned char mc34704_shadow_regs [MAX_MC34704_REG-1]
static pmic_version_t mxc_pmic_version
static struct i2c_driver pmic_driver

Generated by  Doxygen 1.6.0   Back to index