#include <linux/i2c.h>
#include <drm/drmP.h>
+#include <asm/mrst.h>
#include "psb_intel_bios.h"
#include "psb_drv.h"
* 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");
/*