From 4fe167079eb4f244c901acfaeb229d9507da4823 Mon Sep 17 00:00:00 2001 From: sathya Date: Tue, 8 Nov 2011 13:23:44 -0800 Subject: [PATCH] Adding bypass path for PR2 I2c devices.I2c devices in bus 0 & 5 are handeled in blackbay_pr2.c. Change-Id: I46ba5a531e2e657871ac22edf0bea8fc36b5b559 Reviewed-on: http://android.intel.com:8080/23630 Reviewed-by: Gross, Mark Tested-by: Gross, Mark --- arch/x86/platform/mrst/mrst.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/x86/platform/mrst/mrst.c b/arch/x86/platform/mrst/mrst.c index fde0238..1fb4c0b 100644 --- a/arch/x86/platform/mrst/mrst.c +++ b/arch/x86/platform/mrst/mrst.c @@ -1047,6 +1047,14 @@ static int __init sfi_parse_devs(struct sfi_table_header *table) if (!strcmp(i2c_info.type, "mxt224")){ break; } + /* Ignore all sensors info for PR2 and PR3 */ + if (mfld_board_id() == MFLD_BID_PR2_PROTO || + mfld_board_id() == MFLD_BID_PR2_PNP || + mfld_board_id() == MFLD_BID_PR2_VOLUME || + mfld_board_id() == MFLD_BID_PR3) + if (bus == 5 || bus == 0) + break; + sfi_handle_i2c_dev(bus, &i2c_info); break; case SFI_DEV_TYPE_UART: -- 2.7.4