提交 1e18d178 编写于 作者: A Alan Cox 提交者: Greg Kroah-Hartman

gma500: wire up the mrst i2c bus from chip_info

We did the groundwork earlier now we can use it
Signed-off-by: NAlan Cox <alan@linux.intel.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 c6036854
...@@ -347,16 +347,10 @@ void mrst_lvds_init(struct drm_device *dev, ...@@ -347,16 +347,10 @@ void mrst_lvds_init(struct drm_device *dev,
* if closed, act like it's not there for now * if closed, act like it's not there for now
*/ */
/* This ifdef can go once the cpu ident stuff is cleaned up in arch */ i2c_adap = i2c_get_adapter(dev_priv->ops->i2c_bus);
#if defined(CONFIG_X86_MRST)
if (mrst_identify_cpu())
i2c_adap = i2c_get_adapter(2);
else /* Oaktrail uses I2C 1 */
#endif
i2c_adap = i2c_get_adapter(1);
if (i2c_adap == NULL) if (i2c_adap == NULL)
printk(KERN_ALERT "No ddc adapter available!\n"); dev_err(dev->dev, "No ddc adapter available!\n");
/* /*
* Attempt to get the fixed panel mode from DDC. Assume that the * Attempt to get the fixed panel mode from DDC. Assume that the
* preferred mode is the right one. * preferred mode is the right one.
...@@ -378,7 +372,6 @@ void mrst_lvds_init(struct drm_device *dev, ...@@ -378,7 +372,6 @@ void mrst_lvds_init(struct drm_device *dev,
} }
} }
} }
/* /*
* If we didn't get EDID, try geting panel timing * If we didn't get EDID, try geting panel timing
* from configuration data * from configuration data
...@@ -386,8 +379,7 @@ void mrst_lvds_init(struct drm_device *dev, ...@@ -386,8 +379,7 @@ void mrst_lvds_init(struct drm_device *dev,
mode_dev->panel_fixed_mode = mrst_lvds_get_configuration_mode(dev); mode_dev->panel_fixed_mode = mrst_lvds_get_configuration_mode(dev);
if (mode_dev->panel_fixed_mode) { if (mode_dev->panel_fixed_mode) {
mode_dev->panel_fixed_mode->type |= mode_dev->panel_fixed_mode->type |= DRM_MODE_TYPE_PREFERRED;
DRM_MODE_TYPE_PREFERRED;
goto out; /* FIXME: check for quirks */ goto out; /* FIXME: check for quirks */
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册