From f87ac330a7e3bd58f12d7b2eaef225e72b7d6d37 Mon Sep 17 00:00:00 2001 From: Sandor Yu Date: Mon, 5 Aug 2013 16:12:53 +0800 Subject: [PATCH] ENGR00273848-02 iMX6Q/DL HDMI: Enable HDMI function Add MX6Q/DL HDMI core and video driver source code. Add MXC edid data read and parse source code. Signed-off-by: Sandor Yu --- drivers/mfd/Kconfig | 8 + drivers/mfd/Makefile | 1 + drivers/mfd/mxc-hdmi-core.c | 785 ++++++++ drivers/video/mxc/Kconfig | 14 + drivers/video/mxc/Makefile | 2 + drivers/video/mxc/mxc_edid.c | 762 ++++++++ drivers/video/mxc/mxc_hdmi.c | 2971 +++++++++++++++++++++++++++++ include/linux/mfd/mxc-hdmi-core.h | 65 + include/video/mxc_edid.h | 105 + include/video/mxc_hdmi.h | 1095 +++++++++++ 10 files changed, 5808 insertions(+) create mode 100644 drivers/mfd/mxc-hdmi-core.c create mode 100644 drivers/video/mxc/mxc_edid.c create mode 100644 drivers/video/mxc/mxc_hdmi.c create mode 100644 include/linux/mfd/mxc-hdmi-core.h create mode 100755 include/video/mxc_edid.h create mode 100644 include/video/mxc_hdmi.h diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig index d54e985748b7..043901b09dca 100644 --- a/drivers/mfd/Kconfig +++ b/drivers/mfd/Kconfig @@ -1148,3 +1148,11 @@ config VEXPRESS_CONFIG help Platform configuration infrastructure for the ARM Ltd. Versatile Express. + +config MFD_MXC_HDMI + tristate "MXC HDMI Core" + select MFD_CORE + default y + help + This is the core driver for the i.MX on-chip HDMI. This MFD + driver connects with the video and audio drivers for HDMI. diff --git a/drivers/mfd/Makefile b/drivers/mfd/Makefile index 718e94a2a9a7..41ab2b45e188 100644 --- a/drivers/mfd/Makefile +++ b/drivers/mfd/Makefile @@ -155,3 +155,4 @@ obj-$(CONFIG_MFD_LM3533) += lm3533-core.o lm3533-ctrlbank.o obj-$(CONFIG_VEXPRESS_CONFIG) += vexpress-config.o vexpress-sysreg.o obj-$(CONFIG_MFD_RETU) += retu-mfd.o obj-$(CONFIG_MFD_AS3711) += as3711.o +obj-$(CONFIG_MFD_MXC_HDMI) += mxc-hdmi-core.o diff --git a/drivers/mfd/mxc-hdmi-core.c b/drivers/mfd/mxc-hdmi-core.c new file mode 100644 index 000000000000..7da0bf6d003e --- /dev/null +++ b/drivers/mfd/mxc-hdmi-core.c @@ -0,0 +1,785 @@ +/* + * Copyright (C) 2011-2013 Freescale Semiconductor, Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include + +#include