- 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 26 次提交
-
-
由 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>
-
由 Gwendal Grignou 提交于
Add API for fan control. 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 提交于
Added for supporting larger embedded controller flash. 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 提交于
Empty structure size is different between C and C++. To prevent clang warning when compiling this include file in C++ programs, remove empty structures. 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 提交于
Move near the end of file. 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 more fields and improve API when EC presents data through ACPI memory space. 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 提交于
Replace (1 << ...) with BIT(). 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 提交于
This change is required for compilation of embedded controller firmware to work properly (See CONFIG_HOSTCMD_SECTION_SORTED). 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>
-