/* In register I2C_CON, Bit 15 is the I2C enable bit */ #define I2C_EN BIT(15) #define OMAP2_I2C_CON_OFFSET 0x24 #define OMAP4_I2C_CON_OFFSET 0xA4
#define MAX_OMAP_I2C_HWMOD_NAME_LEN 16
/** * omap_i2c_reset - reset the omap i2c module. * @oh: 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.
*/ int omap_i2c_reset(struct omap_hwmod *oh)
{
u32 v;
u16 i2c_con; int c = 0;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.