From: Vincent Palatin Date: Tue, 15 May 2012 18:29:34 +0000 (-0700) Subject: CHROMIUM: mfd: chromeos_ec: add I2C pass-through and other firmware bits X-Git-Url: http://git.cascardo.eti.br/?a=commitdiff_plain;h=53a44da478f79c52c767c03fe0f48c29372b987f;p=cascardo%2Flinux.git CHROMIUM: mfd: chromeos_ec: add I2C pass-through and other firmware bits Add an I2C adapter acting as a pass-through to send firmware update EC commands from userspace (e.g. flashrom). Also add sysfs nodes to get firmware version and other EC info. Signed-off-by: Vincent Palatin BUG=chrome-os-partner:8865 TEST=on Daisy, run flashrom -p internal:bus=lpc -w ec.bin Change-Id: Ib58b183da0e6c79d17689e057b24aae961fdd128 Reviewed-on: https://gerrit-int.chromium.org/17856 Commit-Ready: Vincent Palatin Reviewed-by: Vincent Palatin Tested-by: Vincent Palatin --- diff --git a/drivers/mfd/chromeos_ec.c b/drivers/mfd/chromeos_ec.c index 66a61c0aace0..753da3590fd7 100644 --- a/drivers/mfd/chromeos_ec.c +++ b/drivers/mfd/chromeos_ec.c @@ -217,6 +217,14 @@ static struct mfd_cell cros_devs[] = { .name = "mkbp", .id = 1, }, + { + .name = "cros_ec-fw", + .id = 2, + }, + { + .name = "cros_ec-i2c", + .id = 3, + }, }; static int __devinit cros_ec_probe(struct i2c_client *client,