cd5c11d5 | 05-Oct-2023 |
Ken Lin <ken_lin5@hotmail.com> |
media: platform: cros-ec: Add Taranza to the match table
Taranza has two HDMI ports which support CEC: Port D is EC port 0 Port B is EC port 1
Signed-off-by: Ken Lin <ken_lin5@hotmail.com> Signed-o
media: platform: cros-ec: Add Taranza to the match table
Taranza has two HDMI ports which support CEC: Port D is EC port 0 Port B is EC port 1
Signed-off-by: Ken Lin <ken_lin5@hotmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
show more ...
|
beeefd75 | 18-Aug-2023 |
rasheed.hsueh <rasheed.hsueh@lcfc.corp-partner.google.com> |
media: platform: cros-ec: Add Boxy to the match table
The Google Boxy device uses the same approach as the Google Brask which enables the HDMI CEC via the cros-ec-cec driver.
Signed-off-by: rasheed
media: platform: cros-ec: Add Boxy to the match table
The Google Boxy device uses the same approach as the Google Brask which enables the HDMI CEC via the cros-ec-cec driver.
Signed-off-by: rasheed.hsueh <rasheed.hsueh@lcfc.corp-partner.google.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> [hverkuil: updated to the new multi-port datastructures]
show more ...
|
5bc2de5f | 16-Aug-2023 |
Stefan Adolfsson <sadolfsson@chromium.org> |
media: cros-ec-cec: Add Constitution to the match table
Constitution has two HDMI ports which support CEC: Port B is EC port 0 Port A is EC port 1
This patch depends on "media: cros-ec-cec:
media: cros-ec-cec: Add Constitution to the match table
Constitution has two HDMI ports which support CEC: Port B is EC port 0 Port A is EC port 1
This patch depends on "media: cros-ec-cec: Add Dibbi to the match table".
Signed-off-by: Stefan Adolfsson <sadolfsson@chromium.org> Reviewed-by: Guenter Roeck <groeck@chromium.org> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> [hverkuil: updated to the new multi-port datastructures]
show more ...
|
8d3e6030 | 25-Aug-2023 |
Reka Norman <rekanorman@chromium.org> |
media: cros-ec-cec: Add Dibbi to the match table
Dibbi has two HDMI ports which support CEC: Port D is EC port 0 Port B is EC port 1
Signed-off-by: Reka Norman <rekanorman@chromium.org> Signed-off-
media: cros-ec-cec: Add Dibbi to the match table
Dibbi has two HDMI ports which support CEC: Port D is EC port 0 Port B is EC port 1
Signed-off-by: Reka Norman <rekanorman@chromium.org> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
show more ...
|
5d227f02 | 25-Aug-2023 |
Reka Norman <rekanorman@chromium.org> |
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 <rekanorman@chromium.org> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
show more ...
|
e7885b9c | 25-Aug-2023 |
Reka Norman <rekanorman@chromium.org> |
media: cros-ec-cec: Allow specifying multiple HDMI connectors
Update the cec_dmi_match_table to allow specifying multiple HDMI connectors for each device.
Signed-off-by: Reka Norman <rekanorman@chr
media: cros-ec-cec: Allow specifying multiple HDMI connectors
Update the cec_dmi_match_table to allow specifying multiple HDMI connectors for each device.
Signed-off-by: Reka Norman <rekanorman@chromium.org> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
show more ...
|
425d2051 | 25-Aug-2023 |
Reka Norman <rekanorman@chromium.org> |
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 <rekanorman@chromium.org> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
show more ...
|
adbfc747 | 25-Aug-2023 |
Reka Norman <rekanorman@chromium.org> |
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 <rekanorman@chromium.org> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
show more ...
|
e90bd1fe | 25-Aug-2023 |
Reka Norman <rekanorman@chromium.org> |
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 <rekanorman@chromium.org> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
show more ...
|
4d0e179a | 25-Aug-2023 |
Reka Norman <rekanorman@chromium.org> |
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 <rekanorman@chromium.org> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
show more ...
|
45848b28 | 26-Mar-2023 |
Uwe Kleine-König <u.kleine-koenig@pengutronix.de> |
media: cros-ec-cec: Convert to platform remove callback returning void
The .remove() callback for a platform driver returns an int which makes many driver authors wrongly assume it's possible to do
media: cros-ec-cec: Convert to platform remove callback returning void
The .remove() callback for a platform driver returns an int which makes many driver authors wrongly assume it's possible to do error handling by returning an error code. However the value returned is (mostly) ignored and this typically results in resource leaks. To improve here there is a quest to make the remove callback return void. In the first step of this quest all drivers are converted to .remove_new() which already returns void.
Trivially convert this driver from always returning zero in the remove callback to the void returning variant.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Reviewed-by: Guenter Roeck <groeck@chromium.org> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
show more ...
|