History

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.

Reka Norman committed 3 years ago

Commit 5d227f01 parent e7885b92 files · +46 −5Browse files

Showing the changes to include/linux/platform_data (1 of 2 files). Show all

Unified · Split

include/linux/platform_data/cros_ec_commands.h+11−0
@@ -4536,6 +4536,17 @@ struct ec_response_cec_get { · 4535 unmodified lines
4536 uint8_t val;4536 uint8_t val;
4537} __ec_align1;4537} __ec_align1;
4538 4538
4539/* Get the number of CEC ports */
4540#define EC_CMD_CEC_PORT_COUNT 0x00C1
4541
4542/**
4543 * struct ec_response_cec_port_count - CEC port count response
4544 * @port_count: number of CEC ports
4545 */
4546struct ec_response_cec_port_count {
4547 uint8_t port_count;
4548} __ec_align1;
4549
4539/* CEC parameters command */4550/* CEC parameters command */
4540enum cec_command {4551enum cec_command {
4541 /* CEC reading, writing and events enable */4552 /* CEC reading, writing and events enable */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t