search for: i2c_default_indices

Displaying 1 result from an estimated 1 matches for "i2c_default_indices".

2009 Nov 19
2
[RFC] nouveau: Add basic i2c sensor chip support
..._dcb_table(struct drm_device *dev, struct nvbios *bios, bool two NV_WARN(dev, "No pointer to DCB I2C port table\n"); else { bdcb->i2c_table = &bios->data[i2ctabptr]; - if (bdcb->version >= 0x30) + if (bdcb->version >= 0x30) { + int address; + bdcb->i2c_default_indices = bdcb->i2c_table[4]; + + if (dev_priv->card_type < NV_50) + address = 0x2; + else + address = bdcb->i2c_default_indices & 0xf; + + read_dcb_i2c_entry(dev, bdcb->version, bdcb->i2c_table, + address, &bdcb->management_i2c); + } } if (entries &gt...