summaryrefslogtreecommitdiff
path: root/drivers/media
diff options
context:
space:
mode:
authorSandor Yu <Sandor.yu@nxp.com>2018-05-21 10:48:03 +0800
committerLeonard Crestez <leonard.crestez@nxp.com>2018-08-24 12:41:33 +0300
commit3178bc9b6087e56f40e1c4e7764815cb4dbeb606 (patch)
treef101c6a88d6fa24c44b89925312d1d18f59c7c70 /drivers/media
parentedb5ec0e1ba2361eb540ba8caf2c0d4c7324943f (diff)
MLK-18355-7: hdmi_rx: Enable HDMI RX CEC clock
Enable HDMI RX CEC clock when hdmi rx driver initialized. Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/platform/imx8/hdmi/mxc-hdmi-hw.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/media/platform/imx8/hdmi/mxc-hdmi-hw.c b/drivers/media/platform/imx8/hdmi/mxc-hdmi-hw.c
index 0e1526522550..672a5a4c8800 100644
--- a/drivers/media/platform/imx8/hdmi/mxc-hdmi-hw.c
+++ b/drivers/media/platform/imx8/hdmi/mxc-hdmi-hw.c
@@ -422,5 +422,11 @@ int hdmirx_startup(state_struct *state)
CDN_API_HDMIRX_Init_blocking(state);
dev_dbg(&hdmi_rx->pdev->dev,
"CDN_API_HDMIRX_Init_blocking() complete.\n");
+
+ /* Initialize HDMI RX CEC */
+ CDN_API_General_Write_Register_blocking(state,
+ ADDR_SINK_CAR + (SINK_CEC_CAR << 2),
+ F_SINK_CEC_SYS_CLK_EN(1) |
+ F_SINK_CEC_SYS_CLK_RSTN_EN(1));
return 0;
}