platform/chrome: Add new driver for Wilco EC
authorNick Crews <ncrews@chromium.org>
Sat, 9 Feb 2019 00:37:17 +0000 (17:37 -0700)
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>
Thu, 21 Feb 2019 20:35:59 +0000 (21:35 +0100)
commit7b3d4f44abf0e7a1ba762c8a9c99a8b39ee0c8b1
tree59ed497376f624fad1530a06870f43d86cabce33
parent6b7cb2227d4d833aaccb3e98214015f2162d5bb0
platform/chrome: Add new driver for Wilco EC

This EC is an incompatible variant of the typical Chrome OS embedded
controller.  It uses the same low-level communication and a similar
protocol with some significant differences.  The EC firmware does
not support the same mailbox commands so it is not registered as a
cros_ec device type.  This commit exports the wilco_ec_mailbox()
function so that other modules can use it to communicate with the EC.

Signed-off-by: Duncan Laurie <dlaurie@google.com>
Signed-off-by: Nick Crews <ncrews@chromium.org>
[Fix the sparse warning: symbol 'wilco_ec_transfer' was not declared]
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
[Fix Kconfig dependencies for wilco_ec]
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
drivers/platform/chrome/Kconfig
drivers/platform/chrome/Makefile
drivers/platform/chrome/wilco_ec/Kconfig [new file with mode: 0644]
drivers/platform/chrome/wilco_ec/Makefile [new file with mode: 0644]
drivers/platform/chrome/wilco_ec/core.c [new file with mode: 0644]
drivers/platform/chrome/wilco_ec/mailbox.c [new file with mode: 0644]
include/linux/platform_data/wilco-ec.h [new file with mode: 0644]