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
45364536 uint8_t val;
45374537 } __ec_align1;
45384538
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+ */
4546+struct ec_response_cec_port_count {
4547+ uint8_t port_count;
4548+} __ec_align1;
4549+
45394550 /* CEC parameters command */
45404551 enum cec_command {
45414552 /* 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