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)
commit53a44da478f79c52c767c03fe0f48c29372b987f
treeecc8679da21648cff5e385db955fd8243b3a9c84
parent8db4524b6f4e168e16d01374ef618c5249104e9a
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 <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