Revert "intel-mid: remove WA for smb347 charger"
authorKappel, LaurentX <laurentx.kappel@intel.com>
Thu, 29 Mar 2012 15:53:15 +0000 (08:53 -0700)
committerbuildbot <buildbot@intel.com>
Tue, 3 Apr 2012 19:04:43 +0000 (12:04 -0700)
BZ: 29047

This patch removes the WA for adding device entry
in intel-mid.c as the latest IFWI support device entry
for smb347 charger.

Old-Change-Id: Ic6ee390ae82c181dc51e1e6080a1a790bf1a4232
Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
This reverts commit b23a47438facee19378fb3db4c95a995e4f0b471

Change-Id: Ic3d8c963d3cfa11c3035fe8bd92adb6273b902af
Signed-off-by: Laurent Kappel <laurentx.kappel@intel.com>
Reviewed-on: http://android.intel.com:8080/41677
Reviewed-by: Lebouc, Christophe <christophe.lebouc@intel.com>
Tested-by: Lebouc, Christophe <christophe.lebouc@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
arch/x86/platform/intel-mid/intel-mid.c

index 04b623a..11ecb55 100644 (file)
@@ -757,6 +757,14 @@ static int __init sfi_parse_devs(struct sfi_table_header *table)
                }
        }
 
+#if CONFIG_CHARGER_SMB347      /* WA untill SFI entry for smb347 gets added */
+       strncpy(pentry->name, "smb347", SFI_NAME_LEN);
+       pentry->type = SFI_DEV_TYPE_I2C;
+       pentry->addr = 0x6;
+       pentry->host_num = 1;
+       dev = get_device_id(pentry->type, "smb347");
+       sfi_handle_i2c_dev(pentry, dev);
+#endif
        return 0;
 }