board-redridge.c: Enable compass
authorLaurent FERT <laurentx.fert@intel.com>
Wed, 21 Mar 2012 17:15:09 +0000 (18:15 +0100)
committerbuildbot <buildbot@intel.com>
Wed, 21 Mar 2012 22:47:00 +0000 (15:47 -0700)
BZ: 28474

Align board-redridge.c with board-blackbay.c to enable compass.

Change-Id: I9fe253ea7aface76e7990a1529a5b1c2d6bc9ef8
Signed-off-by: Laurent FERT <laurentx.fert@intel.com>
Reviewed-on: http://android.intel.com:8080/40007
Reviewed-by: Continente, Christophe <christophe.continente@intel.com>
Reviewed-by: Wood, Brian J <brian.j.wood@intel.com>
Reviewed-by: Chotard, Celine <celine.chotard@intel.com>
Tested-by: Chotard, Celine <celine.chotard@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
arch/x86/platform/intel-mid/board-redridge.c

index 1ec174e..b6dce27 100644 (file)
@@ -1417,6 +1417,14 @@ void *ms5607_platform_data_init(void *info)
        return &baro_pdata;
 };
 
+void *compass_pdata_init(void *info)
+{
+       struct i2c_board_info *i2c_info = (struct i2c_board_info *)info;
+
+       i2c_info->irq = 0xff;
+       return NULL;
+}
+
 void *gyro_pdata_init(void *info)
 {
        struct i2c_board_info *i2c_info = (struct i2c_board_info *)info;
@@ -1790,6 +1798,7 @@ struct devs_id __initconst device_ids[] = {
        {"audience_es305", SFI_DEV_TYPE_I2C, 0, &audience_platform_data_init,
                                                NULL},
        {"accel", SFI_DEV_TYPE_I2C, 0, &lis3dh_pdata_init, NULL},
+       {"compass", SFI_DEV_TYPE_I2C, 0, &compass_pdata_init, NULL},
        {"gyro", SFI_DEV_TYPE_I2C, 0, &gyro_pdata_init, NULL},
        {"baro", SFI_DEV_TYPE_I2C, 0, &bara_pdata_init, NULL},
        {"als", SFI_DEV_TYPE_I2C, 0, &als_pdata_init, NULL},