CHROMIUM: mfd: chromeos_ec: add I2C pass-through and other firmware bits
authorVincent Palatin <vpalatin@chromium.org>
Tue, 15 May 2012 18:29:34 +0000 (11:29 -0700)
committerOlof Johansson <olofj@chromium.org>
Wed, 20 Jun 2012 19:07:53 +0000 (12:07 -0700)
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 <vpalatin@chromium.org>
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 <vpalatin@chromium.org>
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Tested-by: Vincent Palatin <vpalatin@chromium.org>
drivers/mfd/chromeos_ec.c

index 66a61c0..753da35 100644 (file)
@@ -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,