[PATCHv3 0/4] dw-hdmi CEC support
Hans Verkuil
hverkuil at xs4all.nl
Wed Aug 2 18:41:04 UTC 2017
From: Hans Verkuil <hans.verkuil at cisco.com>
Russell's v2 cover letter:
------------------
Hi,
This series adds dw-hdmi CEC support. This is done in four stages:
1. Add cec-notifier support
2. Fix up the clkdis register support, as this register contains a
clock disable bit for the CEC module.
3. Add the driver.
4. Remove definitions that are not required from dw-hdmi.h
The CEC driver has been updated to use the register accessors in the
main driver - it would be nice if it was possible to use the regmap
support directly, but there's some knowledge private to the main
driver that's required to correctly access the registers. (I don't
understand why the register stride isn't part of regmap.)
drivers/gpu/drm/bridge/synopsys/Kconfig | 10 +
drivers/gpu/drm/bridge/synopsys/Makefile | 1 +
drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c | 326 ++++++++++++++++++++++++++
drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.h | 19 ++
drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 93 +++++++-
drivers/gpu/drm/bridge/synopsys/dw-hdmi.h | 46 +---
6 files changed, 437 insertions(+), 58 deletions(-)
v2 - fix selection of CEC_NOTIFIER in Kconfig
------------------
Changes in this v3:
- add missing cec_notifier_put to remove()
- some checkpatch unsigned -> unsigned int changes
- cec_transmit_done is replaced by the newer cec_transmit_attempt_done
- added missing CEC_CAP_PASSTHROUGH
Regards,
Hans
Russell King (4):
drm/bridge: dw-hdmi: add cec notifier support
drm/bridge: dw-hdmi: add better clock disable control
drm/bridge: dw-hdmi: add cec driver
drm/bridge: dw-hdmi: remove CEC engine register definitions
drivers/gpu/drm/bridge/synopsys/Kconfig | 10 +
drivers/gpu/drm/bridge/synopsys/Makefile | 1 +
drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c | 327 ++++++++++++++++++++++++++
drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.h | 19 ++
drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 96 +++++++-
drivers/gpu/drm/bridge/synopsys/dw-hdmi.h | 46 +---
6 files changed, 441 insertions(+), 58 deletions(-)
create mode 100644 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c
create mode 100644 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.h
--
2.13.2
More information about the dri-devel
mailing list