Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions
i2c.h File Reference
#include <linux/i2c.h>
#include <linux/i2c-omap.h>

Go to the source code of this file.

Data Structures

struct  omap_i2c_dev_attr
 

Functions

void __init omap1_i2c_mux_pins (int bus_id)
 
void __init omap2_i2c_mux_pins (int bus_id)
 
int omap_i2c_reset (struct omap_hwmod *oh)
 

Function Documentation

void __init omap1_i2c_mux_pins ( int  bus_id)

Definition at line 26 of file i2c.c.

void __init omap2_i2c_mux_pins ( int  bus_id)

Definition at line 36 of file i2c.c.

int omap_i2c_reset ( struct omap_hwmod oh)

omap_i2c_reset - reset the omap i2c module. : struct omap_hwmod *

The i2c moudle in omap2, omap3 had a special sequence to reset. The sequence is:

  • Disable the I2C.
  • Write to SOFTRESET bit.
  • Enable the I2C.
  • Poll on the RESETDONE bit. The sequence is implemented in below function. This is called for 2420, 2430 and omap3.

Definition at line 63 of file i2c.c.