Skip to content

Commit 26a1426

Browse files
rskadamEnric Balletbo i Serra
authored andcommitted
platform/chrome: Add ChromeOS EC ISHTP driver
This driver implements a slim layer to enable the ChromeOS EC kernel stack (cros_ec) to communicate with ChromeOS EC firmware running on the Intel Integrated Sensor Hub (ISH). The driver registers a ChromeOS EC MFD device to connect with cros_ec kernel stack (upper layer), and it registers a client with the ISH Transport Protocol bus (lower layer) to talk with the ISH firwmare. See description of the ISHTP protocol at Documentation/hid/intel-ish-hid.txt Signed-off-by: Rushikesh S Kadam <rushikesh.s.kadam@intel.com> Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Reviewed-by: Jett Rink <jettrink@chromium.org> Tested-by: Jett Rink <jettrink@chromium.org> Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
1 parent 75501d2 commit 26a1426

3 files changed

Lines changed: 777 additions & 0 deletions

File tree

‎drivers/platform/chrome/Kconfig‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,19 @@ config CROS_EC_RPMSG
7171
To compile this driver as a module, choose M here: the
7272
module will be called cros_ec_rpmsg.
7373

74+
config CROS_EC_ISHTP
75+
tristate "ChromeOS Embedded Controller (ISHTP)"
76+
depends on MFD_CROS_EC
77+
depends on INTEL_ISH_HID
78+
help
79+
If you say Y here, you get support for talking to the ChromeOS EC
80+
firmware running on Intel Integrated Sensor Hub (ISH), using the
81+
ISH Transport protocol (ISH-TP). This uses a simple byte-level
82+
protocol with a checksum.
83+
84+
To compile this driver as a module, choose M here: the
85+
module will be called cros_ec_ishtp.
86+
7487
config CROS_EC_SPI
7588
tristate "ChromeOS Embedded Controller (SPI)"
7689
depends on MFD_CROS_EC && SPI

‎drivers/platform/chrome/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ obj-$(CONFIG_CHROMEOS_LAPTOP) += chromeos_laptop.o
77
obj-$(CONFIG_CHROMEOS_PSTORE) += chromeos_pstore.o
88
obj-$(CONFIG_CHROMEOS_TBMC) += chromeos_tbmc.o
99
obj-$(CONFIG_CROS_EC_I2C) += cros_ec_i2c.o
10+
obj-$(CONFIG_CROS_EC_ISHTP) += cros_ec_ishtp.o
1011
obj-$(CONFIG_CROS_EC_RPMSG) += cros_ec_rpmsg.o
1112
obj-$(CONFIG_CROS_EC_SPI) += cros_ec_spi.o
1213
cros_ec_lpcs-objs := cros_ec_lpc.o cros_ec_lpc_reg.o

0 commit comments

Comments
 (0)