- 16 7月, 2021 1 次提交
-
-
由 Daisuke Nojiri 提交于
This patch adds a driver for PCHG (Peripheral CHarGer). PCHG is a framework managing power supplies for peripheral devices. This driver creates a sysfs node for each peripheral charge port: /sys/class/power_supply/peripheral<n> where <n> is the index of a charge port. For example, when a stylus is connected to a NFC/WLC port, the node returns: /sys/class/power_supply/peripheral0/ capacity=50 charge_type=Standard scope=Device status=Charging type=Battery Signed-off-by: NDaisuke Nojiri <dnojiri@chromium.org> Signed-off-by: NSebastian Reichel <sebastian.reichel@collabora.com>
-
- 21 4月, 2021 1 次提交
-
-
由 Prashant Malani 提交于
Update the EC command header to include the new event bit. This bit is included in the latest version of the Chrome EC headers[1]. [1] https://chromium.googlesource.com/chromiumos/platform/ec/+/refs/heads/main/include/ec_commands.hSigned-off-by: NPrashant Malani <pmalani@chromium.org> Signed-off-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Link: https://lore.kernel.org/r/20210420171617.3830902-1-pmalani@chromium.org
-
- 26 3月, 2021 1 次提交
-
-
由 Stephen Boyd 提交于
Some cros ECs support a front proximity MKBP event via 'EC_MKBP_FRONT_PROXIMITY'. Add this define so it can be used in a future patch. Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com> Cc: Benson Leung <bleung@chromium.org> Cc: Guenter Roeck <groeck@chromium.org> Cc: Douglas Anderson <dianders@chromium.org> Cc: Gwendal Grignou <gwendal@chromium.org> Acked-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Signed-off-by: NStephen Boyd <swboyd@chromium.org> Link: https://lore.kernel.org/r/20210211024601.1963379-2-swboyd@chromium.orgSigned-off-by: NJonathan Cameron <Jonathan.Cameron@huawei.com>
-
- 05 2月, 2021 1 次提交
-
-
由 Prashant Malani 提交于
This command is used to communicate with the Chrome Embedded Controller (EC) regarding USB Type C events and state. These header updates are included in the latest Chrome OS EC headers [1] [1] https://chromium.googlesource.com/chromiumos/platform/ec/+/refs/heads/main/include/ec_commands.hSigned-off-by: NPrashant Malani <pmalani@chromium.org> Link: https://lore.kernel.org/r/20210203021539.745239-1-pmalani@chromium.orgSigned-off-by: NBenson Leung <bleung@chromium.org>
-
- 20 1月, 2021 1 次提交
-
-
由 Pi-Hsun Shih 提交于
Add command to EC_CMD_REBOOT_EC to reset EC but don't boot AP. Signed-off-by: NPi-Hsun Shih <pihsun@chromium.org> Signed-off-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Link: https://lore.kernel.org/r/20201221041231.14516-1-pihsun@chromium.org
-
- 19 1月, 2021 1 次提交
-
-
由 Yu-Hsuan Hsu 提交于
Add the new command EC_CODEC_I2S_RX_RESET in ec_codec_i2s_rx_subcmd, which is used for resetting the EC codec. Signed-off-by: NYu-Hsuan Hsu <yuhsuan@chromium.org> Acked-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Link: https://lore.kernel.org/r/20210115075301.47995-1-yuhsuan@chromium.orgSigned-off-by: NMark Brown <broonie@kernel.org>
-
- 06 1月, 2021 1 次提交
-
-
由 Utkarsh Patel 提交于
In some corner cases downgrade of the superspeed typec device(e.g. Dell typec Dock, apple dongle) was seen because before the SOC mux configuration finishes, EC starts configuring the next mux state. With this change, once the SOC mux is configured, kernel will send an acknowledgment to EC via Host command EC_CMD_USB_PD_MUX_ACK [1]. After sending the host event EC will wait for the acknowledgment from kernel before starting the PD negotiation for the next mux state. This helps to have a framework to build better error handling along with the synchronization of timing sensitive mux states. This change also brings in corresponding EC header updates from the EC code base [1]. [1]: https://chromium.googlesource.com/chromiumos/platform/ec/+/refs/heads/master/include/ec_commands.hSigned-off-by: NUtkarsh Patel <utkarsh.h.patel@intel.com> Reviewed-by: NPrashant Malani <pmalani@chromium.org> Signed-off-by: NBenson Leung <bleung@chromium.org> Link: https://lore.kernel.org/r/20201210060903.2205-3-utkarsh.h.patel@intel.com
-
- 13 11月, 2020 1 次提交
-
-
由 Prashant Malani 提交于
Import the EC_CMD_TYPEC_STATUS and EC_CMD_TYPEC_DISCOVERY Chrome OS EC host commands from the EC code base [1]. These commands can be used by the application processor to query Power Delivery (PD) discovery information concerning connected Type C peripherals. Also add the EC_FEATURE_TYPEC_CMD feature flag, which is used to determine whether these commands are supported by the EC. [1]: https://chromium.googlesource.com/chromiumos/platform/ec/+/refs/heads/master/include/ec_commands.hSigned-off-by: NPrashant Malani <pmalani@chromium.org> Signed-off-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Link: https://lore.kernel.org/r/20201029222738.482366-5-pmalani@chromium.org
-
- 30 10月, 2020 1 次提交
-
-
由 Gustavo A. R. Silva 提交于
There is a regular need in the kernel to provide a way to declare having a dynamically sized set of trailing elements in a structure. Kernel code should always use “flexible array members”[1] for these cases. The older style of one-element or zero-length arrays should no longer be used[2]. [1] https://en.wikipedia.org/wiki/Flexible_array_member [2] https://www.kernel.org/doc/html/v5.9-rc1/process/deprecated.html#zero-length-and-one-element-arraysSigned-off-by: NGustavo A. R. Silva <gustavoars@kernel.org>
-
- 27 7月, 2020 1 次提交
-
-
由 Pi-Hsun Shih 提交于
Since the host command number 0x012B conflicts with other EC host command, add one to all regulator control related host command. Also fix a wrong alignment on struct and sync the comment with the one in ChromeOS EC codebase. Fixes: dff08caf ("platform/chrome: cros_ec: Add command for regulator control.") Signed-off-by: NPi-Hsun Shih <pihsun@chromium.org> Acked-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Link: https://lore.kernel.org/r/20200724080358.619245-1-pihsun@chromium.orgSigned-off-by: NMark Brown <broonie@kernel.org>
-
- 25 6月, 2020 1 次提交
-
-
由 Prashant Malani 提交于
To support Thunderbolt compatibility mode, synchronize ec_response_usb_pd_control_v2 with the Chrome EC version, so that we get the Thunderbolt related control fields and macros. Signed-off-by: NPrashant Malani <pmalani@chromium.org> Signed-off-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com>
-
- 20 6月, 2020 1 次提交
-
-
由 Prashant Malani 提交于
Sync the EC_CMD_USB_PD_MUX_INFO mux state bit fields with the Chrome EC code base. The newly added bit fields will be used for cros-ec-typec mux control. Signed-off-by: NPrashant Malani <pmalani@chromium.org> Signed-off-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com>
-
- 16 6月, 2020 1 次提交
-
-
由 Pi-Hsun Shih 提交于
Add host commands for voltage regulator control through ChromeOS EC. Signed-off-by: NPi-Hsun Shih <pihsun@chromium.org> Reviewed-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Link: https://lore.kernel.org/r/20200612040526.192878-3-pihsun@chromium.orgSigned-off-by: NMark Brown <broonie@kernel.org>
-
- 21 10月, 2019 1 次提交
-
-
由 Tzung-Bi Shih 提交于
1. Get EC codec's capabilities. 2. Get and set SHM address if any. 3. Transmit language model to EC codec if needed. 4. Start to read audio data from EC codec if receives host event. Signed-off-by: NTzung-Bi Shih <tzungbi@google.com> Acked-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Link: https://lore.kernel.org/r/20191019143504.1.I5388b69a7a9c551078fed216a77440cee6dedf49@changeidSigned-off-by: NMark Brown <broonie@kernel.org>
-
- 19 10月, 2019 5 次提交
-
-
由 Tzung-Bi Shih 提交于
Read max DMIC gain from EC codec instead of DTS. Also removes the dt-binding of max-dmic-gain. Acked-by: NRob Herring <robh@kernel.org> Acked-by: NBenson Leung <bleung@chromium.org> Signed-off-by: NTzung-Bi Shih <tzungbi@google.com> Link: https://lore.kernel.org/r/20191017213539.05.Id4657c864d544634f2b5c1c9b34fa8232ecba44d@changeidSigned-off-by: NMark Brown <broonie@kernel.org>
-
由 Tzung-Bi Shih 提交于
Add the following common commands: - GET_CAPABILITIES - GET_SHM_ADDR - SET_SHM_ADDR Acked-by: NBenson Leung <bleung@chromium.org> Signed-off-by: NTzung-Bi Shih <tzungbi@google.com> Link: https://lore.kernel.org/r/20191017213539.04.Idc3c6e1cd94b70bf010249928d4a93c6c90495b7@changeidSigned-off-by: NMark Brown <broonie@kernel.org>
-
由 Tzung-Bi Shih 提交于
Extract DMIC EC command from I2S RX. Setting and getting microphone gains is common features. Signed-off-by: NTzung-Bi Shih <tzungbi@google.com> Acked-By: NBenson Leung <bleung@chromium.org> Link: https://lore.kernel.org/r/20191014180059.03.I93d9c65964f3c30f85a36d228e31150ff1917706@changeidSigned-off-by: NMark Brown <broonie@kernel.org>
-
由 Tzung-Bi Shih 提交于
Refactor by the following items: - reformat copyright declaration - use more specific name "i2s rx" - use verbose symbol names to separate namespaces - make some short functions inline - remove unused TDM-related code Signed-off-by: NTzung-Bi Shih <tzungbi@google.com> Acked-By: NBenson Leung <bleung@chromium.org> Link: https://lore.kernel.org/r/20191014180059.02.I43373b9a66dbb70196b3f216b3aa86111c410836@changeidSigned-off-by: NMark Brown <broonie@kernel.org>
-
由 Tzung-Bi Shih 提交于
Remove unused EC_FEATURE_AUDIO_CODEC. Signed-off-by: NTzung-Bi Shih <tzungbi@google.com> Acked-By: NBenson Leung <bleung@chromium.org> Link: https://lore.kernel.org/r/20191014180059.01.I374c311eaca0d47944a37b07acbe48fdb74f734d@changeidSigned-off-by: NMark Brown <broonie@kernel.org>
-
- 02 9月, 2019 1 次提交
-
-
由 Enric Balletbo i Serra 提交于
There is a bit of mess between cros-ec mfd includes and platform includes. For example, we have a linux/mfd/cros_ec.h include that exports the interface implemented in platform/chrome/cros_ec_proto.c. Or we have a linux/mfd/cros_ec_commands.h file that is non related to the multifunction device (in the sense that is not exporting any function of the mfd device). This causes crossed includes between mfd and platform/chrome subsystems and makes the code difficult to read, apart from creating 'curious' situations where a platform/chrome driver includes a linux/mfd/cros_ec.h file just to get the exported functions that are implemented in another platform/chrome driver. In order to have a better separation on what the cros-ec multifunction driver does and what the cros-ec core provides move and rework the affected includes doing: - Move cros_ec_commands.h to include/linux/platform_data/cros_ec_commands.h - Get rid of the parts that are implemented in the platform/chrome/cros_ec_proto.c driver from include/linux/mfd/cros_ec.h to a new file include/linux/platform_data/cros_ec_proto.h - Update all the drivers with the new includes, so - Drivers that only need to know about the protocol include - linux/platform_data/cros_ec_proto.h - linux/platform_data/cros_ec_commands.h - Drivers that need to know about the cros-ec mfd device also include - linux/mfd/cros_ec.h Signed-off-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Acked-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by: NMark Brown <broonie@kernel.org> Acked-by: NWolfram Sang <wsa@the-dreams.de> Acked-by: NNeil Armstrong <narmstrong@baylibre.com> Acked-by: NAlexandre Belloni <alexandre.belloni@bootlin.com> Acked-by: NJonathan Cameron <Jonathan.Cameron@huawei.com> Acked-by: NBenjamin Tissoires <benjamin.tissoires@redhat.com> Acked-by: NDmitry Torokhov <dmitry.torokhov@gmail.com> Acked-by: NSebastian Reichel <sebastian.reichel@collabora.com> Acked-by: NChanwoo Choi <cw00.choi@samsung.com> Reviewed-by: NGwendal Grignou <gwendal@chromium.org> Tested-by: NGwendal Grignou <gwendal@chromium.org> Series changes: 3 - Fix dereferencing pointer to incomplete type 'struct cros_ec_dev' (lkp) Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
- 12 8月, 2019 1 次提交
-
-
由 Yicheng Li 提交于
Update cros_ec_commands.h to match the fingerprint MCU section in the current ec_commands.h Signed-off-by: NYicheng Li <yichengli@chromium.org> Reviewed-by: NGwendal Grignou <gwendal@chromium.org> Reviewed-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
- 10 6月, 2019 19 次提交
-
-
由 Gwendal Grignou 提交于
Improve I2S API. Rename ec_response_codec_gain into ec_codec_i2s_gain, update caller accordlingly. Signed-off-by: NGwendal Grignou <gwendal@chromium.org> Acked-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Acked-by: NBenson Leung <bleung@chromium.org> Reviewed-by: NFabien Lahoudere <fabien.lahoudere@collabora.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Gwendal Grignou 提交于
Add commands for test and management. Add command space for future development. Signed-off-by: NGwendal Grignou <gwendal@chromium.org> Acked-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Acked-by: NBenson Leung <bleung@chromium.org> Reviewed-by: NFabien Lahoudere <fabien.lahoudere@collabora.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Gwendal Grignou 提交于
Add API to store SKU, Cros board information in EC flash memory. Add API to store security data in EC. Signed-off-by: NGwendal Grignou <gwendal@chromium.org> Acked-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Acked-by: NBenson Leung <bleung@chromium.org> Reviewed-by: NFabien Lahoudere <fabien.lahoudere@collabora.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Gwendal Grignou 提交于
Add command to retrieve signature of image stored in the RW memory slot(s). Signed-off-by: NGwendal Grignou <gwendal@chromium.org> Acked-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Acked-by: NBenson Leung <bleung@chromium.org> Reviewed-by: NFabien Lahoudere <fabien.lahoudere@collabora.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Gwendal Grignou 提交于
Add API for fingerprint sensor presented by embedded controller. Signed-off-by: NGwendal Grignou <gwendal@chromium.org> Acked-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Acked-by: NBenson Leung <bleung@chromium.org> Reviewed-by: NFabien Lahoudere <fabien.lahoudere@collabora.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Gwendal Grignou 提交于
Add API to control touchpad presented by Embedded Controller. Signed-off-by: NGwendal Grignou <gwendal@chromium.org> Acked-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Acked-by: NBenson Leung <bleung@chromium.org> Reviewed-by: NFabien Lahoudere <fabien.lahoudere@collabora.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Gwendal Grignou 提交于
Allow EC to talk to other ECs that are not presented to the host. Neeed when EC are present in detachable keyboard. Signed-off-by: NGwendal Grignou <gwendal@chromium.org> Acked-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Acked-by: NBenson Leung <bleung@chromium.org> Reviewed-by: NFabien Lahoudere <fabien.lahoudere@collabora.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Gwendal Grignou 提交于
Prevent direct i2c access to device behind EC when not in development mode. Signed-off-by: NGwendal Grignou <gwendal@chromium.org> Acked-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Acked-by: NBenson Leung <bleung@chromium.org> Reviewed-by: NFabien Lahoudere <fabien.lahoudere@collabora.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Gwendal Grignou 提交于
Add API to update battery firmware. Signed-off-by: NGwendal Grignou <gwendal@chromium.org> Acked-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Acked-by: NBenson Leung <bleung@chromium.org> Reviewed-by: NFabien Lahoudere <fabien.lahoudere@collabora.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Gwendal Grignou 提交于
Add support for controlling hibernation of the Embedded Controller. Signed-off-by: NGwendal Grignou <gwendal@chromium.org> Acked-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Acked-by: NBenson Leung <bleung@chromium.org> Reviewed-by: NFabien Lahoudere <fabien.lahoudere@collabora.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Gwendal Grignou 提交于
Add command to allow keyboard testing in factory. Signed-off-by: NGwendal Grignou <gwendal@chromium.org> Acked-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Acked-by: NBenson Leung <bleung@chromium.org> Reviewed-by: NFabien Lahoudere <fabien.lahoudere@collabora.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Gwendal Grignou 提交于
Improve API for USB Powe delivery and power management. Signed-off-by: NGwendal Grignou <gwendal@chromium.org> Acked-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Acked-by: NBenson Leung <bleung@chromium.org> Reviewed-by: NFabien Lahoudere <fabien.lahoudere@collabora.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Gwendal Grignou 提交于
Improve API to retrieve temperature information. Signed-off-by: NGwendal Grignou <gwendal@chromium.org> Acked-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Acked-by: NBenson Leung <bleung@chromium.org> Reviewed-by: NFabien Lahoudere <fabien.lahoudere@collabora.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Gwendal Grignou 提交于
Add support for fingerprint sensors managed by embedded controller. Signed-off-by: NGwendal Grignou <gwendal@chromium.org> Acked-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Acked-by: NBenson Leung <bleung@chromium.org> Reviewed-by: NFabien Lahoudere <fabien.lahoudere@collabora.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Gwendal Grignou 提交于
Improve API between EC and Host to report events. Signed-off-by: NGwendal Grignou <gwendal@chromium.org> Acked-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Acked-by: NBenson Leung <bleung@chromium.org> Reviewed-by: NFabien Lahoudere <fabien.lahoudere@collabora.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Gwendal Grignou 提交于
Add new command for batched mode, add support for more sensors. Signed-off-by: NGwendal Grignou <gwendal@chromium.org> Acked-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Acked-by: NBenson Leung <bleung@chromium.org> Reviewed-by: NFabien Lahoudere <fabien.lahoudere@collabora.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Gwendal Grignou 提交于
Introduce a new transport procotol between EC and host. Signed-off-by: NGwendal Grignou <gwendal@chromium.org> Acked-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Acked-by: NBenson Leung <bleung@chromium.org> Reviewed-by: NFabien Lahoudere <fabien.lahoudere@collabora.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Gwendal Grignou 提交于
Improve API to verify EC image signature. Signed-off-by: NGwendal Grignou <gwendal@chromium.org> Acked-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Acked-by: NBenson Leung <bleung@chromium.org> Reviewed-by: NFabien Lahoudere <fabien.lahoudere@collabora.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Gwendal Grignou 提交于
New API split commands, improve EC command latency. Signed-off-by: NGwendal Grignou <gwendal@chromium.org> Acked-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Acked-by: NBenson Leung <bleung@chromium.org> Reviewed-by: NFabien Lahoudere <fabien.lahoudere@collabora.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-