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 <rekanorman@chromium.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
This commit is contained in:
Reka Norman
2023-08-25 12:43:55 +10:00
committed by Hans Verkuil
parent afca12e35e
commit 4d0e179a42
2 changed files with 110 additions and 39 deletions

View File

@@ -4436,6 +4436,8 @@ struct ec_response_i2c_passthru_protect {
* These commands are for sending and receiving message via HDMI CEC
*/
#define EC_CEC_MAX_PORTS 16
#define MAX_CEC_MSG_LEN 16
/* CEC message from the AP to be written on the CEC bus */