From: Sathya Prakash M R Subject: [PATCH 1/2] OMAPDSS: Add Sil9022 DPI-HDMI Encoder Driver Date: Tue, 18 Mar 2014 15:37:56 +0530 Message-ID: <1395137278-5065-2-git-send-email-sathyap@ti.com> References: <1395137278-5065-1-git-send-email-sathyap@ti.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: In-Reply-To: <1395137278-5065-1-git-send-email-sathyap@ti.com> Sender: linux-omap-owner@vger.kernel.org To: tony@atomide.com, tomi.valkeinen@ti.com, devicetree@vger.kernel.org, linux-omap@vger.kernel.org, pawel.moll@arm.com, paul@pwsan.com Cc: Sathya Prakash M R List-Id: devicetree@vger.kernel.org Sil9022 DPI to HDMI Encoder driver is part of AM43xx SOC. Adding the basic Sil9022 driver HPD and Audio support is not present yet. Signed-off-by: Sathya Prakash M R --- drivers/video/omap2/displays-new/Kconfig | 8 + drivers/video/omap2/displays-new/Makefile | 1 + drivers/video/omap2/displays-new/encoder-sil9022.c | 748 ++++++++++++++++++++ drivers/video/omap2/displays-new/encoder-sil9022.h | 105 +++ 4 files changed, 862 insertions(+) create mode 100644 drivers/video/omap2/displays-new/encoder-sil9022.c create mode 100644 drivers/video/omap2/displays-new/encoder-sil9022.h diff --git a/drivers/video/omap2/displays-new/Kconfig b/drivers/video/omap2/displays-new/Kconfig index e6cfc38..9243dd7 100644 --- a/drivers/video/omap2/displays-new/Kconfig +++ b/drivers/video/omap2/displays-new/Kconfig @@ -12,6 +12,14 @@ config DISPLAY_ENCODER_TPD12S015 Driver for TPD12S015, which offers HDMI ESD protection and level shifting. +config DISPLAY_ENCODER_SIL9022 + tristate "Sil9022 DPI to HDMI Encoder" + depends on I2C + help + Driver for Silicon Image Sil9022 DPI to HDMI encoder and + a brief about Sil9022 can be found here: + http://www.semiconductorstore.com/pdf/newsite/siliconimage/SiI9022a_pb.pdf + config DISPLAY_CONNECTOR_DVI tristate "DVI Connector" depends on I2C diff --git a/drivers/video/omap2/displays-new/Makefile b/drivers/video/omap2/displays-new/Makefile index 0323a8a..f3c8997 100644 --- a/drivers/video/omap2/displays-new/Makefile +++ b/drivers/video/omap2/displays-new/Makefile @@ -1,5 +1,6 @@ obj-$(CONFIG_DISPLAY_ENCODER_TFP410) += encoder-tfp410.o obj-$(CONFIG_DISPLAY_ENCODER_TPD12S015) += encoder-tpd12s015.o +obj-$(CONFIG_DISPLAY_ENCODER_SIL9022) += encoder-sil9022.o obj-$(CONFIG_DISPLAY_CONNECTOR_DVI) += connector-dvi.o obj-$(CONFIG_DISPLAY_CONNECTOR_HDMI) += connector-hdmi.o obj-$(CONFIG_DISPLAY_CONNECTOR_ANALOG_TV) += connector-analog-tv.o diff --git a/drivers/video/omap2/displays-new/encoder-sil9022.c b/drivers/video/omap2/displays-new/encoder-sil9022.c new file mode 100644 index 0000000..411867b --- /dev/null +++ b/drivers/video/omap2/displays-new/encoder-sil9022.c @@ -0,0 +1,748 @@ +/* + * Silicon image Sil9022 DPI-to-HDMI encoder driver + * + * Copyright (C) 2013 Texas Instruments + * Author: Sathya Prakash M R + * + * This file is licensed under the terms of the GNU General Public License + * version 2. This program is licensed "as is" without any warranty of any + * kind, whether express or implied. + * + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include