|
Revision tags: v6.15, v6.15-rc7, v6.15-rc6, v6.15-rc5, v6.15-rc4, v6.15-rc3, v6.15-rc2, v6.15-rc1, v6.14, v6.14-rc7, v6.14-rc6, v6.14-rc5, v6.14-rc4, v6.14-rc3, v6.14-rc2 |
|
| #
dcba6971 |
| 04-Feb-2025 |
Jameson Thies <[email protected]> |
platform/chrome: add PD_EVENT_INIT bit definition
Update cros_ec_commands.h to include a definition for PD_EVENT_INIT. On platforms supporting UCSI, this host event type is sent when the PPM initial
platform/chrome: add PD_EVENT_INIT bit definition
Update cros_ec_commands.h to include a definition for PD_EVENT_INIT. On platforms supporting UCSI, this host event type is sent when the PPM initializes.
Signed-off-by: Jameson Thies <[email protected]> Reviewed-by: Benson Leung <[email protected]> Acked-by: Tzung-Bi Shih <[email protected]> Reviewed-by: Łukasz Bartosik <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
show more ...
|
|
Revision tags: v6.14-rc1, v6.13, v6.13-rc7, v6.13-rc6 |
|
| #
401d07d5 |
| 31-Dec-2024 |
Pavan Holla <[email protected]> |
platform/chrome: Update ChromeOS EC header for UCSI
Add EC host commands for reading and writing UCSI structures in the EC. The corresponding kernel driver is cros-ec-ucsi.
Also update PD events su
platform/chrome: Update ChromeOS EC header for UCSI
Add EC host commands for reading and writing UCSI structures in the EC. The corresponding kernel driver is cros-ec-ucsi.
Also update PD events supported by the EC.
Acked-by: Tzung-Bi Shih <[email protected]> Signed-off-by: Pavan Holla <[email protected]> Signed-off-by: Łukasz Bartosik <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
show more ...
|
|
Revision tags: v6.13-rc5, v6.13-rc4, v6.13-rc3, v6.13-rc2, v6.13-rc1, v6.12, v6.12-rc7, v6.12-rc6, v6.12-rc5, v6.12-rc4, v6.12-rc3, v6.12-rc2, v6.12-rc1, v6.11 |
|
| #
2b627246 |
| 10-Sep-2024 |
Pavan Holla <[email protected]> |
platform/chrome: Update EC feature flags
Define EC_FEATURE_UCSI_PPM to enable usage of the cros_ec_ucsi driver. Also, add any feature flags that are implemented by the EC but are missing in the kern
platform/chrome: Update EC feature flags
Define EC_FEATURE_UCSI_PPM to enable usage of the cros_ec_ucsi driver. Also, add any feature flags that are implemented by the EC but are missing in the kernel header.
Signed-off-by: Pavan Holla <[email protected]> Signed-off-by: Łukasz Bartosik <[email protected]> Acked-by: Tzung-Bi Shih <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
show more ...
|
|
Revision tags: v6.11-rc7, v6.11-rc6, v6.11-rc5, v6.11-rc4, v6.11-rc3, v6.11-rc2, v6.11-rc1, v6.10, v6.10-rc7, v6.10-rc6 |
|
| #
c05cb5bd |
| 30-Jun-2024 |
Thomas Weißschuh <[email protected]> |
platform/chrome: Update binary interface for EC-based charge control
The charge-control command v2/v3 is more featureful than v1, it additionally supports charge thresholds.
The definitions were im
platform/chrome: Update binary interface for EC-based charge control
The charge-control command v2/v3 is more featureful than v1, it additionally supports charge thresholds.
The definitions were imported from ChromeOS EC commit 32870d602317 ("squirtle: modify motionsense rotation matrix")
Signed-off-by: Thomas Weißschuh <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Tzung-Bi Shih <[email protected]>
show more ...
|
|
Revision tags: v6.10-rc5, v6.10-rc4, v6.10-rc3 |
|
| #
ba098ed9 |
| 04-Jun-2024 |
Daisuke Nojiri <[email protected]> |
platform/chrome: Add struct ec_response_get_next_event_v3
Add struct ec_response_get_next_event_v3 to upgrade EC_CMD_GET_NEXT_EVENT to version 3.
Signed-off-by: Daisuke Nojiri <[email protected]
platform/chrome: Add struct ec_response_get_next_event_v3
Add struct ec_response_get_next_event_v3 to upgrade EC_CMD_GET_NEXT_EVENT to version 3.
Signed-off-by: Daisuke Nojiri <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Tzung-Bi Shih <[email protected]>
show more ...
|
|
Revision tags: v6.10-rc2, v6.10-rc1, v6.9, v6.9-rc7, v6.9-rc6, v6.9-rc5, v6.9-rc4, v6.9-rc3, v6.9-rc2, v6.9-rc1, v6.8, v6.8-rc7, v6.8-rc6, v6.8-rc5, v6.8-rc4, v6.8-rc3, v6.8-rc2 |
|
| #
4d2ff655 |
| 26-Jan-2024 |
Lukasz Majczak <[email protected]> |
platform/chrome: Update binary interface for EC-based watchdog
Update structures and defines related to EC_CMD_HANG_DETECT to allow usage of new EC-based watchdog.
Signed-off-by: Lukasz Majczak <lm
platform/chrome: Update binary interface for EC-based watchdog
Update structures and defines related to EC_CMD_HANG_DETECT to allow usage of new EC-based watchdog.
Signed-off-by: Lukasz Majczak <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Acked-by: Tzung-Bi Shih <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
show more ...
|
|
Revision tags: v6.8-rc1, v6.7, v6.7-rc8, v6.7-rc7, v6.7-rc6, v6.7-rc5, v6.7-rc4, v6.7-rc3, v6.7-rc2, v6.7-rc1, v6.6, v6.6-rc7, v6.6-rc6, v6.6-rc5, v6.6-rc4, v6.6-rc3, v6.6-rc2, v6.6-rc1, v6.5 |
|
| #
5d227f02 |
| 25-Aug-2023 |
Reka Norman <[email protected]> |
media: cros-ec-cec: Get number of CEC ports from EC
Add a new CEC port count host command and use it to query the number of CEC ports from the EC. If the host command is not supported then it must b
media: cros-ec-cec: Get number of CEC ports from EC
Add a new CEC port count host command and use it to query the number of CEC ports from the EC. If the host command is not supported then it must be old EC firmware which only supports one port, so fall back to assuming one port.
This patch completes support for multiple ports in cros-ec-cec.
Signed-off-by: Reka Norman <[email protected]> Signed-off-by: Hans Verkuil <[email protected]>
show more ...
|
| #
425d2051 |
| 25-Aug-2023 |
Reka Norman <[email protected]> |
media: cros-ec-cec: Support receiving messages from multiple ports
Currently, received messages are sent from the EC in the cec_message MKBP event. Since the size of ec_response_get_next_data_v1 is
media: cros-ec-cec: Support receiving messages from multiple ports
Currently, received messages are sent from the EC in the cec_message MKBP event. Since the size of ec_response_get_next_data_v1 is 16 bytes, which is also the maximum size of a CEC message, there is no space to add a port parameter. Increasing the size of ec_response_get_next_data_v1 is an option, but this would increase EC-kernel traffic for all MKBP event types.
Instead, use an event to notify that data is ready, and add a new read command to read the data.
For backwards compatibility with old EC firmware, continue to handle cec_message events as well.
Signed-off-by: Reka Norman <[email protected]> Signed-off-by: Hans Verkuil <[email protected]>
show more ...
|
| #
1cabf526 |
| 25-Aug-2023 |
Reka Norman <[email protected]> |
media: cros-ec-cec: Support multiple ports in MKBP cec_events
Use the top four bits of the cec_events MKBP event to store the port number.
Signed-off-by: Reka Norman <[email protected]> Signe
media: cros-ec-cec: Support multiple ports in MKBP cec_events
Use the top four bits of the cec_events MKBP event to store the port number.
Signed-off-by: Reka Norman <[email protected]> Signed-off-by: Hans Verkuil <[email protected]>
show more ...
|
| #
adbfc747 |
| 25-Aug-2023 |
Reka Norman <[email protected]> |
media: cros-ec-cec: Support multiple ports in write command
Add a v1 of the CEC write command which contains a port parameter. Check which versions of the write command the EC supports and use the h
media: cros-ec-cec: Support multiple ports in write command
Add a v1 of the CEC write command which contains a port parameter. Check which versions of the write command the EC supports and use the highest supported version. If it only supports v0, check that there is only one port. With v0, the EC will assume all write commands are for port 0.
Signed-off-by: Reka Norman <[email protected]> Signed-off-by: Hans Verkuil <[email protected]>
show more ...
|
| #
e90bd1fe |
| 25-Aug-2023 |
Reka Norman <[email protected]> |
media: cros-ec-cec: Support multiple ports in set/get host commands
Reuse the top four bits of the cmd field to specify the port number. The reason for doing this as opposed to adding a separate uin
media: cros-ec-cec: Support multiple ports in set/get host commands
Reuse the top four bits of the cmd field to specify the port number. The reason for doing this as opposed to adding a separate uint8_t field is it avoids the need to add new versions of these commands. The change is backwards compatible since these bits were previously always zero, so the default behaviour is to always operate on port 0.
Signed-off-by: Reka Norman <[email protected]> Signed-off-by: Hans Verkuil <[email protected]>
show more ...
|
| #
4d0e179a |
| 25-Aug-2023 |
Reka Norman <[email protected]> |
media: cros-ec-cec: Manage an array of ports
To support multiple CEC ports, change cros_ec_cec to contain an array of ports, each with their own CEC adapter, etc.
For now, only create a single port
media: cros-ec-cec: Manage an array of ports
To support multiple CEC ports, change cros_ec_cec to contain an array of ports, each with their own CEC adapter, etc.
For now, only create a single port and use that port everywhere, so there is no functional change. Support for multiple ports will be added in the following patches.
Signed-off-by: Reka Norman <[email protected]> Signed-off-by: Hans Verkuil <[email protected]>
show more ...
|
|
Revision tags: v6.5-rc7, v6.5-rc6, v6.5-rc5, v6.5-rc4, v6.5-rc3, v6.5-rc2, v6.5-rc1, v6.4, v6.4-rc7, v6.4-rc6, v6.4-rc5, v6.4-rc4, v6.4-rc3, v6.4-rc2, v6.4-rc1, v6.3, v6.3-rc7, v6.3-rc6, v6.3-rc5, v6.3-rc4, v6.3-rc3, v6.3-rc2 |
|
| #
32d2a15e |
| 06-Mar-2023 |
Gustavo A. R. Silva <[email protected]> |
platform/chrome: Replace fake flexible arrays with flexible-array member
Zero-length arrays as fake flexible arrays are deprecated and we are moving towards adopting C99 flexible-array members inste
platform/chrome: Replace fake flexible arrays with flexible-array member
Zero-length arrays as fake flexible arrays are deprecated and we are moving towards adopting C99 flexible-array members instead.
Use the DECLARE_FLEX_ARRAY() helper macro to transform zero-length arrays in unions with flexible-array members.
Address the following warning found with GCC-13 and -fstrict-flex-arrays=3 enabled: drivers/iio/accel/cros_ec_accel_legacy.c:66:46: warning: array subscript <unknown> is outside array bounds of ‘struct ec_response_motion_sensor_data[0]’ [-Warray-bounds=]
This helps with the ongoing efforts to tighten the FORTIFY_SOURCE routines on memcpy() and help us make progress towards globally enabling -fstrict-flex-arrays=3 [1].
Link: https://github.com/KSPP/linux/issues/21 Link: https://github.com/KSPP/linux/issues/193 Link: https://github.com/KSPP/linux/issues/262 Link: https://gcc.gnu.org/pipermail/gcc-patches/2022-October/602902.html [1] Signed-off-by: Gustavo A. R. Silva <[email protected]> Signed-off-by: Tzung-Bi Shih <[email protected]> Link: https://lore.kernel.org/r/ZAZUGBmSLc5wg7AK@work
show more ...
|
|
Revision tags: v6.3-rc1, v6.2, v6.2-rc8, v6.2-rc7, v6.2-rc6 |
|
| #
4b1936cd |
| 26-Jan-2023 |
Prashant Malani <[email protected]> |
platform/chrome: cros_ec: Add VDM attention headers
Incorporate updates to the EC headers to support the retrieval of VDM Attention messages from port partners. These headers are already present in
platform/chrome: cros_ec: Add VDM attention headers
Incorporate updates to the EC headers to support the retrieval of VDM Attention messages from port partners. These headers are already present in the ChromeOS EC codebase. [1]
[1] https://source.chromium.org/chromium/chromiumos/platform/ec/+/main:include/ec_commands.h
Signed-off-by: Prashant Malani <[email protected]> [pmalani: Removed extra tab in header #define] Reviewed-by: Benson Leung <[email protected]> Reviewed-by: Tzung-Bi Shih <[email protected]> Link: https://lore.kernel.org/r/[email protected]
show more ...
|
|
Revision tags: v6.2-rc5 |
|
| #
8aaec117 |
| 20-Jan-2023 |
joewu (吳仲振) <[email protected]> |
Input: cros_ec_keyb - add 3 buttons for monitor function
Add 3 extra buttons: 'brightness up', 'brightness down' and 'screen lock' to support monitor manipulating function.
Signed-off-by: Joe Wu <j
Input: cros_ec_keyb - add 3 buttons for monitor function
Add 3 extra buttons: 'brightness up', 'brightness down' and 'screen lock' to support monitor manipulating function.
Signed-off-by: Joe Wu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
show more ...
|
|
Revision tags: v6.2-rc4 |
|
| #
5fa1dd81 |
| 11-Jan-2023 |
Tzung-Bi Shih <[email protected]> |
platform/chrome: fix kernel-doc warnings for cros_ec_command
Fix the following kernel-doc warnings:
$ ./scripts/kernel-doc -none \ include/linux/platform_data/cros_ec_commands.h include/linux/plat
platform/chrome: fix kernel-doc warnings for cros_ec_command
Fix the following kernel-doc warnings:
$ ./scripts/kernel-doc -none \ include/linux/platform_data/cros_ec_commands.h include/linux/platform_data/cros_ec_commands.h:1092: warning: expecting prototype for struct ec_response_get_cmd_version. Prototype was for struct ec_response_get_cmd_versions instead include/linux/platform_data/cros_ec_commands.h:5485: warning: This comment starts with '/**', but isn't a kernel-doc comment. include/linux/platform_data/cros_ec_commands.h:5496: warning: This comment starts with '/**', but isn't a kernel-doc comment.
Signed-off-by: Tzung-Bi Shih <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Link: https://lore.kernel.org/r/[email protected]
show more ...
|
|
Revision tags: v6.2-rc3, v6.2-rc2 |
|
| #
0e0dba88 |
| 28-Dec-2022 |
Prashant Malani <[email protected]> |
platform_chrome: cros_ec: Add Type-C VDM defines
Add the EC header changes need to support USB Type-C VDM (Vendor Defined Messages) communication between the system and USB PD-enabled peripherals.
platform_chrome: cros_ec: Add Type-C VDM defines
Add the EC header changes need to support USB Type-C VDM (Vendor Defined Messages) communication between the system and USB PD-enabled peripherals.
The headers are already present in the EC code base, from which they've been ported [1].
[1] https://source.chromium.org/chromium/chromiumos/platform/ec/+/main:include/ec_commands.h
Signed-off-by: Prashant Malani <[email protected]> Reviewed-by: Benson Leung <[email protected]> Acked-by: Heikki Krogerus <[email protected]> Link: https://lore.kernel.org/r/[email protected]
show more ...
|
| #
0ac7200e |
| 28-Dec-2022 |
Prashant Malani <[email protected]> |
Revert "mfd: cros_ec: Add SCP Core-1 as a new CrOS EC MCU"
This reverts commit 66ee379d743c69c726b61d078119a34d5be96a35.
The feature flag introduced by Commit 66ee379d743c ("mfd: cros_ec: Add SCP C
Revert "mfd: cros_ec: Add SCP Core-1 as a new CrOS EC MCU"
This reverts commit 66ee379d743c69c726b61d078119a34d5be96a35.
The feature flag introduced by Commit 66ee379d743c ("mfd: cros_ec: Add SCP Core-1 as a new CrOS EC MCU") was not first added in the source EC code base[1]. This can lead to the possible misinterpration of an EC's supported feature set, as well as causes issues with all future feature flag updates.
[1] https://source.chromium.org/chromium/chromiumos/platform/ec/+/main:include/ec_commands.h
Signed-off-by: Prashant Malani <[email protected]> Acked-by: Lee Jones <[email protected]> Reviewed-by: Benson Leung <[email protected]> Acked-by: Heikki Krogerus <[email protected]> Link: https://lore.kernel.org/r/[email protected]
show more ...
|
|
Revision tags: v6.2-rc1, v6.1, v6.1-rc8, v6.1-rc7, v6.1-rc6, v6.1-rc5, v6.1-rc4, v6.1-rc3, v6.1-rc2, v6.1-rc1, v6.0, v6.0-rc7, v6.0-rc6, v6.0-rc5, v6.0-rc4, v6.0-rc3, v6.0-rc2 |
|
| #
77947238 |
| 16-Aug-2022 |
Prashant Malani <[email protected]> |
platform/chrome: Add Type-C mux set command definitions
Copy EC header definitions for the USB Type-C Mux control command from the EC code base. Also pull in "TBT_UFP_REPLY" definitions, since that
platform/chrome: Add Type-C mux set command definitions
Copy EC header definitions for the USB Type-C Mux control command from the EC code base. Also pull in "TBT_UFP_REPLY" definitions, since that is the prior entry in the enum.
These headers are already present in the EC code base. [1]
[1] https://chromium.googlesource.com/chromiumos/platform/ec/+/b80f85a94a423273c1638ef7b662c56931a138dd/include/ec_commands.h
Signed-off-by: Prashant Malani <[email protected]> Reviewed-by: Tzung-Bi Shih <[email protected]> Link: https://lore.kernel.org/r/[email protected]
show more ...
|
|
Revision tags: v6.0-rc1, v5.19, v5.19-rc8 |
|
| #
32f02a21 |
| 19-Jul-2022 |
Greg Kroah-Hartman <[email protected]> |
Revert "platform/chrome: Add Type-C mux set command definitions"
This reverts commit 28a6ed8e39f77f6ac613ec9b7461aa75e85fa79a.
The chrome platform driver changes need to come in through the platfor
Revert "platform/chrome: Add Type-C mux set command definitions"
This reverts commit 28a6ed8e39f77f6ac613ec9b7461aa75e85fa79a.
The chrome platform driver changes need to come in through the platform tree due to some api changes that showed up there that cause build errors in linux-next
Reported-by: Stephen Rothwell <[email protected]> Link: https://lore.kernel.org/r/[email protected] Cc: Prashant Malani <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
show more ...
|
|
Revision tags: v5.19-rc7, v5.19-rc6, v5.19-rc5, v5.19-rc4, v5.19-rc3, v5.19-rc2, v5.19-rc1 |
|
| #
66ee379d |
| 01-Jun-2022 |
Tinghan Shen <[email protected]> |
mfd: cros_ec: Add SCP Core-1 as a new CrOS EC MCU
MT8195 System Companion Processors(SCP) is a dual-core RISC-V MCU. Add a new CrOS feature ID to represent the SCP's 2nd core.
The 1st core is refer
mfd: cros_ec: Add SCP Core-1 as a new CrOS EC MCU
MT8195 System Companion Processors(SCP) is a dual-core RISC-V MCU. Add a new CrOS feature ID to represent the SCP's 2nd core.
The 1st core is referred to as 'core 0', and the 2nd core is referred to as 'core 1'.
Signed-off-by: Tinghan Shen <[email protected]> Signed-off-by: Lee Jones <[email protected]> Link: https://lore.kernel.org/r/[email protected]
show more ...
|
| #
28a6ed8e |
| 11-Jul-2022 |
Prashant Malani <[email protected]> |
platform/chrome: Add Type-C mux set command definitions
Copy EC header definitions for the USB Type-C Mux control command from the EC code base. Also pull in "TBT_UFP_REPLY" definitions, since that
platform/chrome: Add Type-C mux set command definitions
Copy EC header definitions for the USB Type-C Mux control command from the EC code base. Also pull in "TBT_UFP_REPLY" definitions, since that is the prior entry in the enum.
These headers are already present in the EC code base. [1]
[1] https://chromium.googlesource.com/chromiumos/platform/ec/+/b80f85a94a423273c1638ef7b662c56931a138dd/include/ec_commands.h
Signed-off-by: Prashant Malani <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
show more ...
|
| #
ea7f0f77 |
| 09-Jun-2022 |
Tzung-Bi Shih <[email protected]> |
platform/chrome: cros_ec_commands: fix compile errors
Fix compile errors when including cros_ec_commands.h solely.
1. cros_ec_commands.h:587:9: error: unknown type name 'uint8_t' 587 | ui
platform/chrome: cros_ec_commands: fix compile errors
Fix compile errors when including cros_ec_commands.h solely.
1. cros_ec_commands.h:587:9: error: unknown type name 'uint8_t' 587 | uint8_t flags; | ^~~~~~~
2. cros_ec_commands.h:1105:43: error: implicit declaration of function 'BIT' 1105 | EC_COMMS_STATUS_PROCESSING = BIT(0), | ^~~
Reviewed-by: Guenter Roeck <[email protected]> Signed-off-by: Tzung-Bi Shih <[email protected]> Link: https://lore.kernel.org/r/[email protected]
show more ...
|
| #
8d597608 |
| 06-Jun-2022 |
Xiang wangx <[email protected]> |
platform/chrome: cros_ec_commands: Fix syntax errors in comments
Delete the redundant word 'using'.
Signed-off-by: Xiang wangx <[email protected]> Reviewed-by: Tzung-Bi Shih <[email protected]>
platform/chrome: cros_ec_commands: Fix syntax errors in comments
Delete the redundant word 'using'.
Signed-off-by: Xiang wangx <[email protected]> Reviewed-by: Tzung-Bi Shih <[email protected]> Signed-off-by: Tzung-Bi Shih <[email protected]> Link: https://lore.kernel.org/r/[email protected]
show more ...
|
|
Revision tags: v5.18, v5.18-rc7, v5.18-rc6, v5.18-rc5, v5.18-rc4, v5.18-rc3, v5.18-rc2, v5.18-rc1, v5.17, v5.17-rc8, v5.17-rc7, v5.17-rc6, v5.17-rc5 |
|
| #
c9bc1a0e |
| 17-Feb-2022 |
Dustin L. Howett <[email protected]> |
platform/chrome: cros_ec_lpcs: reserve the MEC LPC I/O ports first
Some ChromeOS EC devices (such as the Framework Laptop) only map I/O ports 0x800-0x807. Making the larger reservation required by t
platform/chrome: cros_ec_lpcs: reserve the MEC LPC I/O ports first
Some ChromeOS EC devices (such as the Framework Laptop) only map I/O ports 0x800-0x807. Making the larger reservation required by the non-MEC LPC (the 0xFF ports for the memory map, and the 0xFF ports for the parameter region) is non-viable on these devices.
Since we probe the MEC EC first, we can get away with a smaller reservation that covers the MEC EC ports. If we fall back to classic LPC, we can grow the reservation to cover the memory map and the parameter region.
cros_ec_lpc_probe also interacted with I/O ports 0x800-0x807 without a reservation. Restructuring the code to request the MEC LPC region first obviates the need to do so.
Signed-off-by: Dustin L. Howett <[email protected]> Signed-off-by: Tzung-Bi Shih <[email protected]> Link: https://lore.kernel.org/r/[email protected]
show more ...
|