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

mxc_i2c.c File Reference


Detailed Description

Driver for the Freescale Semiconductor MXC I2C buses.

Based on i2c driver algorithm for PCF8584 adapters

Definition in file mxc_i2c.c.

#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/device.h>
#include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/platform_device.h>
#include <linux/i2c.h>
#include <linux/clk.h>
#include <asm/irq.h>
#include <asm/io.h>
#include <mach/hardware.h>
#include "mxc_i2c_reg.h"

Go to the source code of this file.

Classes

struct  clk_div_table
struct  mxc_i2c_device

Functions

void gpio_i2c_active (int i2c_num)
void gpio_i2c_inactive (int i2c_num)
 MODULE_AUTHOR ("Freescale Semiconductor, Inc.")
 MODULE_DESCRIPTION ("MXC I2C driver")
 module_exit (mxc_i2c_exit)
 MODULE_LICENSE ("GPL")
static void __exit mxc_i2c_exit (void)
static u32 mxc_i2c_func (struct i2c_adapter *adap)
static irqreturn_t mxc_i2c_handler (int irq, void *dev_id)
static int __init mxc_i2c_init (void)
static void mxc_i2c_module_dis (mxc_i2c_device *dev)
static void mxc_i2c_module_en (mxc_i2c_device *dev, int trans_flag)
static int mxc_i2c_readbytes (mxc_i2c_device *dev, struct i2c_msg *msg, int last, int addr_comp)
static int mxc_i2c_repstart (mxc_i2c_device *dev, struct i2c_msg *msg)
static int mxc_i2c_start (mxc_i2c_device *dev, struct i2c_msg *msg)
static void mxc_i2c_stop (mxc_i2c_device *dev)
static int mxc_i2c_wait_for_tc (mxc_i2c_device *dev, int trans_flag)
static int mxc_i2c_writebytes (mxc_i2c_device *dev, struct i2c_msg *msg, int last)
static int mxc_i2c_xfer (struct i2c_adapter *adap, struct i2c_msg msgs[], int num)
static int mxci2c_probe (struct platform_device *pdev)
static int mxci2c_remove (struct platform_device *pdev)
static int mxci2c_resume (struct platform_device *pdev)
static int mxci2c_suspend (struct platform_device *pdev, pm_message_t state)
 subsys_initcall (mxc_i2c_init)

Variables

static struct clk_div_table i2c_clk_table []
static struct i2c_algorithm mxc_i2c_algorithm
static struct platform_driver mxci2c_driver


Generated by  Doxygen 1.6.0   Back to index