drm/i915/intel_i2c: gmbus disabled and reserved ports are invalid
authorDaniel Kurtz <djkurtz@chromium.org>
Tue, 27 Mar 2012 18:36:15 +0000 (02:36 +0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 28 Mar 2012 13:02:53 +0000 (15:02 +0200)
commit2ed06c93a1fce057808894d73167aae03c76deaf
tree163c39d4fffc678c507604a67fed8f1c778a9ec6
parent3bd7d90938f1fe77de5991dc4b727843c4980b2a
drm/i915/intel_i2c: gmbus disabled and reserved ports are invalid

There is no GMBUS "disabled" port 0, nor "reserved" port 7.
For the other 6 ports there is a fixed 1:1 mapping between pin pairs and
gmbus ports, which means every real gmbus port has a gpio pin.

Given these realizations, clean up gmbus initialization.

Tested on Sandybridge (gen 6, PCH == CougarPoint) hardware.

Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_i2c.c