search for: i2c_tabl

Displaying 2 results from an estimated 2 matches for "i2c_tabl".

Did you mean: i2c_table
2009 Nov 19
2
[RFC] nouveau: Add basic i2c sensor chip support
...int16_t dcbptr, i2ctabptr = 0; uint8_t *dcbtable; uint8_t headerlen = 0x4, entries = DCB_MAX_NUM_ENTRIES; @@ -5357,8 +5408,19 @@ static int parse_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_indi...
2012 Jan 18
1
[PATCH] drm/nouveau/i2c: Fix i2c initialization on cards with DCB older than 1.5
Signed-off-by: Viktor Novotny <noviktor at seznam.cz> --- Hi, I think I found a bug - my NV11 fails to init i2c ports and is then unable to read EDID. It's because while i2c_table in nouveau_i2c.c:324 returns null for this card, i2c is initialized anyway at line 341 and wrong i2c table format is then selected at line 350. This patch fixes the problem on NV11 and was tested also on NV25. I hope no cards but those with legacy i2c table have i2c table version set to 0. Regard...