summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Cox <alan@linux.jf.intel.com>2011-04-05 15:55:26 (GMT)
committerGreg Kroah-Hartman <gregkh@suse.de>2011-04-05 18:41:13 (GMT)
commit8a789f8c306b5e3fe6ef71bb5412055075d8c87f (patch)
treef08cb6ca5601245357ca679e4d5b5afd61410c78
parentcb048d558690ba1468e6bb26b82594b4330fb21c (diff)
downloadlinux-8a789f8c306b5e3fe6ef71bb5412055075d8c87f.tar.xz
staging: gma500: Add oaktrail
Oaktrail needs a couple of slight plumbing tweaks Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/staging/gma500/Kconfig2
-rw-r--r--drivers/staging/gma500/mrst_lvds.c11
2 files changed, 11 insertions, 2 deletions
diff --git a/drivers/staging/gma500/Kconfig b/drivers/staging/gma500/Kconfig
index 5501eb9..ce8beda 100644
--- a/drivers/staging/gma500/Kconfig
+++ b/drivers/staging/gma500/Kconfig
@@ -1,6 +1,6 @@
config DRM_PSB
tristate "Intel GMA500 KMS Framebuffer"
- depends on DRM && PCI
+ depends on DRM && PCI && X86
select FB_CFB_COPYAREA
select FB_CFB_FILLRECT
select FB_CFB_IMAGEBLIT
diff --git a/drivers/staging/gma500/mrst_lvds.c b/drivers/staging/gma500/mrst_lvds.c
index 21b9056..4a08b74 100644
--- a/drivers/staging/gma500/mrst_lvds.c
+++ b/drivers/staging/gma500/mrst_lvds.c
@@ -22,6 +22,7 @@
#include <linux/i2c.h>
#include <drm/drmP.h>
+#include <asm/mrst.h>
#include "psb_intel_bios.h"
#include "psb_drv.h"
@@ -300,7 +301,15 @@ void mrst_lvds_init(struct drm_device *dev,
* 4) make sure lid is open
* if closed, act like it's not there for now
*/
- i2c_adap = i2c_get_adapter(2);
+
+ /* This ifdef can go once the cpu ident stuff is cleaned up in arch */
+#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)
printk(KERN_ALERT "No ddc adapter available!\n");
/*