summaryrefslogtreecommitdiffstats
path: root/include/linux/mfd
diff options
context:
space:
mode:
authorPi-Hsun Shih2019-06-03 05:45:11 +0200
committerLee Jones2019-07-02 13:11:31 +0200
commit554e937ec8d75930bc711612208af27961e3dc61 (patch)
tree56ef6915ca6227498ee222cb82eb901c9dcd443f /include/linux/mfd
parentdt-bindings: Add binding for cros-ec-rpmsg (diff)
downloadkernel-qcow2-linux-554e937ec8d75930bc711612208af27961e3dc61.tar.gz
kernel-qcow2-linux-554e937ec8d75930bc711612208af27961e3dc61.tar.xz
kernel-qcow2-linux-554e937ec8d75930bc711612208af27961e3dc61.zip
mfd: cros_ec: differentiate SCP from EC by feature bit
System Companion Processor (SCP) is Cortex M4 co-processor on some MediaTek platform that can run EC-style firmware. Since a SCP and EC would both exist on a system, and use the cros_ec_dev driver, we need to differentiate between them for the userspace, or they would both be registered at /dev/cros_ec, causing a conflict. Signed-off-by: Pi-Hsun Shih <pihsun@chromium.org> Acked-by: Enric Balletbo i Serra <enric.balletbo@collabora.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'include/linux/mfd')
-rw-r--r--include/linux/mfd/cros_ec.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mfd/cros_ec.h b/include/linux/mfd/cros_ec.h
index cfa78bb4990f..751cb3756d49 100644
--- a/include/linux/mfd/cros_ec.h
+++ b/include/linux/mfd/cros_ec.h
@@ -27,6 +27,7 @@
#define CROS_EC_DEV_PD_NAME "cros_pd"
#define CROS_EC_DEV_TP_NAME "cros_tp"
#define CROS_EC_DEV_ISH_NAME "cros_ish"
+#define CROS_EC_DEV_SCP_NAME "cros_scp"
/*
* The EC is unresponsive for a time after a reboot command. Add a