From 61e758ebe375838aaf219914d75e955e607f4b9e Mon Sep 17 00:00:00 2001 From: Sandor Yu Date: Wed, 14 Aug 2013 16:39:57 +0800 Subject: [PATCH] ENGR00276224-01 MX6 HDMI CEC: Enable HDMI CEC function - Add hdmi cec source code. - Remove dead code from hdmi driver. Signed-off-by: Sandor Yu --- drivers/mxc/Kconfig | 1 + drivers/mxc/Makefile | 1 + drivers/mxc/hdmi-cec/Kconfig | 11 + drivers/mxc/hdmi-cec/Makefile | 1 + drivers/mxc/hdmi-cec/mxc_hdmi-cec.c | 664 ++++++++++++++++++++++++++++ drivers/mxc/hdmi-cec/mxc_hdmi-cec.h | 38 ++ drivers/video/mxc/mxc_hdmi.c | 2 - 7 files changed, 716 insertions(+), 2 deletions(-) create mode 100644 drivers/mxc/hdmi-cec/Kconfig create mode 100644 drivers/mxc/hdmi-cec/Makefile create mode 100644 drivers/mxc/hdmi-cec/mxc_hdmi-cec.c create mode 100644 drivers/mxc/hdmi-cec/mxc_hdmi-cec.h diff --git a/drivers/mxc/Kconfig b/drivers/mxc/Kconfig index 8aa5640059fd..839b1aeed0f0 100644 --- a/drivers/mxc/Kconfig +++ b/drivers/mxc/Kconfig @@ -15,6 +15,7 @@ source "drivers/mxc/gpu-viv/Kconfig" source "drivers/mxc/ipu3/Kconfig" source "drivers/mxc/asrc/Kconfig" source "drivers/mxc/vpu/Kconfig" +source "drivers/mxc/hdmi-cec/Kconfig" endmenu diff --git a/drivers/mxc/Makefile b/drivers/mxc/Makefile index e18b67adb9e7..ac854470d280 100644 --- a/drivers/mxc/Makefile +++ b/drivers/mxc/Makefile @@ -2,3 +2,4 @@ obj-$(CONFIG_MXC_GPU_VIV) += gpu-viv/ obj-$(CONFIG_MXC_IPU_V3) += ipu3/ obj-$(CONFIG_MXC_ASRC) += asrc/ obj-$(CONFIG_MXC_VPU) += vpu/ +obj-$(CONFIG_MXC_HDMI_CEC) += hdmi-cec/ diff --git a/drivers/mxc/hdmi-cec/Kconfig b/drivers/mxc/hdmi-cec/Kconfig new file mode 100644 index 000000000000..c0be06854e27 --- /dev/null +++ b/drivers/mxc/hdmi-cec/Kconfig @@ -0,0 +1,11 @@ + +menu "MXC HDMI CEC (Consumer Electronics Control) support" + +config MXC_HDMI_CEC + tristate "Support for MXC HDMI CEC (Consumer Electronics Control)" + depends on MFD_MXC_HDMI + depends on FB_MXC_HDMI + help + The HDMI CEC device implement low level protocol on i.MX6x platforms. + +endmenu diff --git a/drivers/mxc/hdmi-cec/Makefile b/drivers/mxc/hdmi-cec/Makefile new file mode 100644 index 000000000000..07248b25b033 --- /dev/null +++ b/drivers/mxc/hdmi-cec/Makefile @@ -0,0 +1 @@ +obj-$(CONFIG_MXC_HDMI_CEC) += mxc_hdmi-cec.o diff --git a/drivers/mxc/hdmi-cec/mxc_hdmi-cec.c b/drivers/mxc/hdmi-cec/mxc_hdmi-cec.c new file mode 100644 index 000000000000..d0113eee23d1 --- /dev/null +++ b/drivers/mxc/hdmi-cec/mxc_hdmi-cec.c @@ -0,0 +1,664 @@ +/* + * Copyright (C) 2012-2013 Freescale Semiconductor, Inc. All Rights Reserved. + */ + +/* + * The code contained herein is licensed under the GNU General Public + * License. You may obtain a copy of the GNU General Public License + * Version 2 or later at the following locations: + * + * http://www.opensource.org/licenses/gpl-license.html + * http://www.gnu.org/copyleft/gpl.html + */ + +/*! + * @file mxc_hdmi-cec.c + * + * @brief HDMI CEC system initialization and file operation implementation + * + * @ingroup HDMI + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include + +#include