drm/nouveau: Add some generic I2C gadget detection code.